@@ -270,6 +270,11 @@ import {
270270 GetConformancePackComplianceSummaryCommandInput ,
271271 GetConformancePackComplianceSummaryCommandOutput ,
272272} from "./commands/GetConformancePackComplianceSummaryCommand" ;
273+ import {
274+ GetCustomRulePolicyCommand ,
275+ GetCustomRulePolicyCommandInput ,
276+ GetCustomRulePolicyCommandOutput ,
277+ } from "./commands/GetCustomRulePolicyCommand" ;
273278import {
274279 GetDiscoveredResourceCountsCommand ,
275280 GetDiscoveredResourceCountsCommandInput ,
@@ -285,6 +290,11 @@ import {
285290 GetOrganizationConformancePackDetailedStatusCommandInput ,
286291 GetOrganizationConformancePackDetailedStatusCommandOutput ,
287292} from "./commands/GetOrganizationConformancePackDetailedStatusCommand" ;
293+ import {
294+ GetOrganizationCustomRulePolicyCommand ,
295+ GetOrganizationCustomRulePolicyCommandInput ,
296+ GetOrganizationCustomRulePolicyCommandOutput ,
297+ } from "./commands/GetOrganizationCustomRulePolicyCommand" ;
288298import {
289299 GetResourceConfigHistoryCommand ,
290300 GetResourceConfigHistoryCommandInput ,
@@ -800,8 +810,8 @@ export class ConfigService extends ConfigServiceClient {
800810 }
801811
802812 /**
803- * <p>Deletes the specified organization config rule and all of its evaluation results from all member accounts in that organization. </p>
804- * <p>Only a master account and a delegated administrator account can delete an organization config rule.
813+ * <p>Deletes the specified organization Config rule and all of its evaluation results from all member accounts in that organization. </p>
814+ * <p>Only a master account and a delegated administrator account can delete an organization Config rule.
805815 * When calling this API with a delegated administrator, you must ensure Organizations
806816 * <code>ListDelegatedAdministrator</code> permissions are added.</p>
807817 * <p>Config sets the state of a rule to DELETE_IN_PROGRESS until the deletion is complete.
@@ -837,7 +847,7 @@ export class ConfigService extends ConfigServiceClient {
837847 }
838848
839849 /**
840- * <p>Deletes the specified organization conformance pack and all of the config rules and remediation actions from
850+ * <p>Deletes the specified organization conformance pack and all of the Config rules and remediation actions from
841851 * all member accounts in that organization. </p>
842852 * <p> Only a master account or a delegated administrator account can delete an organization conformance pack.
843853 * When calling this API with a delegated administrator, you must ensure Organizations
@@ -1753,12 +1763,12 @@ export class ConfigService extends ConfigServiceClient {
17531763 }
17541764
17551765 /**
1756- * <p>Returns a list of organization config rules. </p>
1766+ * <p>Returns a list of organization Config rules. </p>
17571767 *
17581768 * <note>
17591769 * <p>When you specify the limit and the next token, you receive a paginated response.
1760- * Limit and next token are not applicable if you specify organization config rule names.
1761- * It is only applicable, when you request all the organization config rules.</p>
1770+ * Limit and next token are not applicable if you specify organization Config rule names.
1771+ * It is only applicable, when you request all the organization Config rules.</p>
17621772 * </note>
17631773 */
17641774 public describeOrganizationConfigRules (
@@ -1791,14 +1801,14 @@ export class ConfigService extends ConfigServiceClient {
17911801 }
17921802
17931803 /**
1794- * <p>Provides organization config rule deployment status for an organization.</p>
1804+ * <p>Provides organization Config rule deployment status for an organization.</p>
17951805 *
17961806 * <note>
1797- * <p>The status is not considered successful until organization config rule is successfully deployed in all the member
1807+ * <p>The status is not considered successful until organization Config rule is successfully deployed in all the member
17981808 * accounts with an exception of excluded accounts.</p>
17991809 * <p>When you specify the limit and the next token, you receive a paginated response.
1800- * Limit and next token are not applicable if you specify organization config rule names.
1801- * It is only applicable, when you request all the organization config rules.</p>
1810+ * Limit and next token are not applicable if you specify organization Config rule names.
1811+ * It is only applicable, when you request all the organization Config rules.</p>
18021812 * </note>
18031813 */
18041814 public describeOrganizationConfigRuleStatuses (
@@ -2472,6 +2482,38 @@ export class ConfigService extends ConfigServiceClient {
24722482 }
24732483 }
24742484
2485+ /**
2486+ * <p>Returns the policy definition containing the logic for your Config Custom Policy rule.</p>
2487+ */
2488+ public getCustomRulePolicy (
2489+ args : GetCustomRulePolicyCommandInput ,
2490+ options ?: __HttpHandlerOptions
2491+ ) : Promise < GetCustomRulePolicyCommandOutput > ;
2492+ public getCustomRulePolicy (
2493+ args : GetCustomRulePolicyCommandInput ,
2494+ cb : ( err : any , data ?: GetCustomRulePolicyCommandOutput ) => void
2495+ ) : void ;
2496+ public getCustomRulePolicy (
2497+ args : GetCustomRulePolicyCommandInput ,
2498+ options : __HttpHandlerOptions ,
2499+ cb : ( err : any , data ?: GetCustomRulePolicyCommandOutput ) => void
2500+ ) : void ;
2501+ public getCustomRulePolicy (
2502+ args : GetCustomRulePolicyCommandInput ,
2503+ optionsOrCb ?: __HttpHandlerOptions | ( ( err : any , data ?: GetCustomRulePolicyCommandOutput ) => void ) ,
2504+ cb ?: ( err : any , data ?: GetCustomRulePolicyCommandOutput ) => void
2505+ ) : Promise < GetCustomRulePolicyCommandOutput > | void {
2506+ const command = new GetCustomRulePolicyCommand ( args ) ;
2507+ if ( typeof optionsOrCb === "function" ) {
2508+ this . send ( command , optionsOrCb ) ;
2509+ } else if ( typeof cb === "function" ) {
2510+ if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
2511+ this . send ( command , optionsOrCb || { } , cb ) ;
2512+ } else {
2513+ return this . send ( command , optionsOrCb ) ;
2514+ }
2515+ }
2516+
24752517 /**
24762518 * <p>Returns the resource types, the number of each resource type,
24772519 * and the total number of resources that Config is recording in
@@ -2568,7 +2610,7 @@ export class ConfigService extends ConfigServiceClient {
25682610 }
25692611
25702612 /**
2571- * <p>Returns detailed status for each member account within an organization for a given organization config rule.</p>
2613+ * <p>Returns detailed status for each member account within an organization for a given organization Config rule.</p>
25722614 */
25732615 public getOrganizationConfigRuleDetailedStatus (
25742616 args : GetOrganizationConfigRuleDetailedStatusCommandInput ,
@@ -2635,6 +2677,38 @@ export class ConfigService extends ConfigServiceClient {
26352677 }
26362678 }
26372679
2680+ /**
2681+ * <p>Returns the policy definition containing the logic for your organization Config Custom Policy rule.</p>
2682+ */
2683+ public getOrganizationCustomRulePolicy (
2684+ args : GetOrganizationCustomRulePolicyCommandInput ,
2685+ options ?: __HttpHandlerOptions
2686+ ) : Promise < GetOrganizationCustomRulePolicyCommandOutput > ;
2687+ public getOrganizationCustomRulePolicy (
2688+ args : GetOrganizationCustomRulePolicyCommandInput ,
2689+ cb : ( err : any , data ?: GetOrganizationCustomRulePolicyCommandOutput ) => void
2690+ ) : void ;
2691+ public getOrganizationCustomRulePolicy (
2692+ args : GetOrganizationCustomRulePolicyCommandInput ,
2693+ options : __HttpHandlerOptions ,
2694+ cb : ( err : any , data ?: GetOrganizationCustomRulePolicyCommandOutput ) => void
2695+ ) : void ;
2696+ public getOrganizationCustomRulePolicy (
2697+ args : GetOrganizationCustomRulePolicyCommandInput ,
2698+ optionsOrCb ?: __HttpHandlerOptions | ( ( err : any , data ?: GetOrganizationCustomRulePolicyCommandOutput ) => void ) ,
2699+ cb ?: ( err : any , data ?: GetOrganizationCustomRulePolicyCommandOutput ) => void
2700+ ) : Promise < GetOrganizationCustomRulePolicyCommandOutput > | void {
2701+ const command = new GetOrganizationCustomRulePolicyCommand ( args ) ;
2702+ if ( typeof optionsOrCb === "function" ) {
2703+ this . send ( command , optionsOrCb ) ;
2704+ } else if ( typeof cb === "function" ) {
2705+ if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
2706+ this . send ( command , optionsOrCb || { } , cb ) ;
2707+ } else {
2708+ return this . send ( command , optionsOrCb ) ;
2709+ }
2710+ }
2711+
26382712 /**
26392713 * <p>Returns a list of <code>ConfigurationItems</code> for the specified resource.
26402714 * The list contains details about each state of the resource
@@ -3210,9 +3284,9 @@ export class ConfigService extends ConfigServiceClient {
32103284 }
32113285
32123286 /**
3213- * <p>Adds or updates organization config rule for your entire organization evaluating whether your Amazon Web Services resources comply with your
3287+ * <p>Adds or updates organization Config rule for your entire organization evaluating whether your Amazon Web Services resources comply with your
32143288 * desired configurations.</p>
3215- * <p> Only a master account and a delegated administrator can create or update an organization config rule.
3289+ * <p> Only a master account and a delegated administrator can create or update an organization Config rule.
32163290 * When calling this API with a delegated administrator, you must ensure Organizations
32173291 * <code>ListDelegatedAdministrator</code> permissions are added. </p>
32183292 * <p>This API enables organization service access through the <code>EnableAWSServiceAccess</code> action and creates a service linked
@@ -3227,7 +3301,7 @@ export class ConfigService extends ConfigServiceClient {
32273301 * When you use the <code>PutOrganizationConfigRule</code> action to add the rule to Config, you must
32283302 * specify the Amazon Resource Name (ARN) that Lambda assigns to the function.
32293303 * If you are adding an Config managed rule, specify the rule's identifier for the <code>RuleIdentifier</code> key.</p>
3230- * <p>The maximum number of organization config rules that Config supports is 150 and 3 delegated administrator per organization. </p>
3304+ * <p>The maximum number of organization Config rules that Config supports is 150 and 3 delegated administrator per organization. </p>
32313305 * <note>
32323306 * <p>Prerequisite: Ensure you call <code>EnableAllFeatures</code> API to enable all features in an organization.</p>
32333307 * <p>Specify either <code>OrganizationCustomRuleMetadata</code> or <code>OrganizationManagedRuleMetadata</code>.</p>
0 commit comments