OrganizationCustomRule constructor

OrganizationCustomRule(
  1. String name, {
  2. OrganizationCustomRuleArgs? args,
  3. CustomResourceOptions? options,
})

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

Implementation

OrganizationCustomRule(
  String name, {
  OrganizationCustomRuleArgs? args,
  pulumi.CustomResourceOptions? options,
}) : super(
        'aws:cfg/organizationCustomRule:OrganizationCustomRule',
        name,
        pulumi.Input.mapToInputs(args?.toMap() ?? const {}),
        pulumi.CustomResourceOptions(version: '7.44.0').merge(options),
      ) {
  arn = registerOutput<String>('arn');
  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');
  lambdaFunctionArn = registerOutput<String>('lambdaFunctionArn');
  maximumExecutionFrequency = registerOutput<String?>('maximumExecutionFrequency');
  this.name = registerOutput<String>('name');
  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>(); });
}