// Deletes the specified organization config rule and all of its evaluation results
// from all member accounts in that organization. Only a master account and a
// delegated administrator account can delete an organization config rule. When
// calling this API with a delegated administrator, you must ensure AWS
// Organizations ListDelegatedAdministrator permissions are added. AWS Config sets
// the state of a rule to DELETE_IN_PROGRESS until the deletion is complete. You
// cannot update a rule while it is in this state.
Deletes the specified organization config rule and all of its evaluation results
from all member accounts in that organization. Only a master account and a
delegated administrator account can delete an organization config rule. When
calling this API with a delegated administrator, you must ensure AWS
Organizations ListDelegatedAdministrator permissions are added. AWS Config sets
the state of a rule to DELETE_IN_PROGRESS until the deletion is complete. You
cannot update a rule while it is in this state.
// Deletes the specified organization config rule and all of its evaluation results // from all member accounts in that organization . Only a master account and a // delegated administrator account can delete an organization config rule . When // calling this API with a delegated administrator you must ensure AWS // Organizations ListDelegatedAdministrator permissions are added . AWS Config sets // the state of a rule to DELETE_IN_PROGRESS until the deletion is complete . You // cannot update a rule while it is in this state .
func (c *Client) DeleteOrganizationConfigRule(ctx context.Context, params *DeleteOrganizationConfigRuleInput, optFns ...func(*Options)) (*DeleteOrganizationConfigRuleOutput, error) {
	if params == nil {
		params = &DeleteOrganizationConfigRuleInput{}
	}
	result, metadata, err := c.invokeOperation(ctx, "DeleteOrganizationConfigRule", params, optFns, addOperationDeleteOrganizationConfigRuleMiddlewares)
	if err != nil {
		return nil, err
	}
	out := result.(*DeleteOrganizationConfigRuleOutput)
	out.ResultMetadata = metadata
	return out, nil
}
func ( c * Client ) DeleteOrganizationConfigRule ( ctx context . Context , params * DeleteOrganizationConfigRuleInput , optFns ... func ( * Options ) ) ( * DeleteOrganizationConfigRuleOutput , error ) { if params == nil { params = & DeleteOrganizationConfigRuleInput { } } result , metadata , err := c . invokeOperation ( ctx , " " , params , optFns , addOperationDeleteOrganizationConfigRuleMiddlewares ) if err != nil { return nil , err } out := result . ( * DeleteOrganizationConfigRuleOutput ) out . ResultMetadata = metadata return out , nil }
Deletes the specified organization config rule and all of its evaluation results
from all member accounts in that organization.
Deletes the specified organization config rule and all of its evaluation results from all member accounts in that organization .