OrganizationCustomPolicyRule constructor

OrganizationCustomPolicyRule(
  1. String name, {
  2. OrganizationCustomPolicyRuleArgs? args,
  3. CustomResourceOptions? options,
})

Creates a new OrganizationCustomPolicyRule. name The Pulumi resource name. args Arguments used to configure this OrganizationCustomPolicyRule. The set of arguments for OrganizationCustomPolicyRule. options Resource options controlling this resource's behavior.

Implementation

OrganizationCustomPolicyRule(
  String name, {
  OrganizationCustomPolicyRuleArgs? args,
  pulumi.CustomResourceOptions? options,
}) : super(
        'aws:cfg/organizationCustomPolicyRule:OrganizationCustomPolicyRule',
        name,
        pulumi.Input.mapToInputs(args?.toMap() ?? const {}),
        pulumi.CustomResourceOptions(version: '7.44.0').merge(options),
      ) {
  arn = registerOutput<String>('arn');
  debugLogDeliveryAccounts = registerOutput<List<String>?>('debugLogDeliveryAccounts', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return (guardedValue as List).cast<String>(); });
  description = registerOutput<String?>('description');
  excludedAccounts = registerOutput<List<String>?>('excludedAccounts', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return (guardedValue as List).cast<String>(); });
  inputParameters = registerOutput<String?>('inputParameters');
  maximumExecutionFrequency = registerOutput<String?>('maximumExecutionFrequency');
  this.name = registerOutput<String>('name');
  policyRuntime = registerOutput<String>('policyRuntime');
  policyText = registerOutput<String>('policyText');
  region = registerOutput<String>('region');
  resourceIdScope = registerOutput<String?>('resourceIdScope');
  resourceTypesScopes = registerOutput<List<String>?>('resourceTypesScopes', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return (guardedValue as List).cast<String>(); });
  tagKeyScope = registerOutput<String?>('tagKeyScope');
  tagValueScope = registerOutput<String?>('tagValueScope');
  triggerTypes = registerOutput<List<String>>('triggerTypes', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return (guardedValue as List).cast<String>(); });
}