Class RuleSourceArgs.Builder

  • Enclosing class:
    RuleSourceArgs

    public static final class RuleSourceArgs.Builder
    extends java.lang.Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • customPolicyDetails

        public RuleSourceArgs.Builder customPolicyDetails​(@Nullable
                                                          com.pulumi.core.Output<RuleSourceCustomPolicyDetailsArgs> customPolicyDetails)
        Parameters:
        customPolicyDetails - Provides the runtime system, policy definition, and whether debug logging is enabled. Required when owner is set to `CUSTOM_POLICY`. See Custom Policy Details Below.
        Returns:
        builder
      • customPolicyDetails

        public RuleSourceArgs.Builder customPolicyDetails​(RuleSourceCustomPolicyDetailsArgs customPolicyDetails)
        Parameters:
        customPolicyDetails - Provides the runtime system, policy definition, and whether debug logging is enabled. Required when owner is set to `CUSTOM_POLICY`. See Custom Policy Details Below.
        Returns:
        builder
      • owner

        public RuleSourceArgs.Builder owner​(com.pulumi.core.Output<java.lang.String> owner)
        Parameters:
        owner - Indicates whether AWS or the customer owns and manages the AWS Config rule. Valid values are `AWS`, `CUSTOM_LAMBDA` or `CUSTOM_POLICY`. For more information about managed rules, see the [AWS Config Managed Rules documentation](https://docs.aws.amazon.com/config/latest/developerguide/evaluate-config_use-managed-rules.html). For more information about custom rules, see the [AWS Config Custom Rules documentation](https://docs.aws.amazon.com/config/latest/developerguide/evaluate-config_develop-rules.html). Custom Lambda Functions require permissions to allow the AWS Config service to invoke them, e.g., via the `aws.lambda.Permission` resource.
        Returns:
        builder
      • owner

        public RuleSourceArgs.Builder owner​(java.lang.String owner)
        Parameters:
        owner - Indicates whether AWS or the customer owns and manages the AWS Config rule. Valid values are `AWS`, `CUSTOM_LAMBDA` or `CUSTOM_POLICY`. For more information about managed rules, see the [AWS Config Managed Rules documentation](https://docs.aws.amazon.com/config/latest/developerguide/evaluate-config_use-managed-rules.html). For more information about custom rules, see the [AWS Config Custom Rules documentation](https://docs.aws.amazon.com/config/latest/developerguide/evaluate-config_develop-rules.html). Custom Lambda Functions require permissions to allow the AWS Config service to invoke them, e.g., via the `aws.lambda.Permission` resource.
        Returns:
        builder
      • sourceDetails

        public RuleSourceArgs.Builder sourceDetails​(@Nullable
                                                    com.pulumi.core.Output<java.util.List<RuleSourceSourceDetailArgs>> sourceDetails)
        Parameters:
        sourceDetails - Provides the source and type of the event that causes AWS Config to evaluate your AWS resources. Only valid if `owner` is `CUSTOM_LAMBDA` or `CUSTOM_POLICY`. See Source Detail Below.
        Returns:
        builder
      • sourceDetails

        public RuleSourceArgs.Builder sourceDetails​(java.util.List<RuleSourceSourceDetailArgs> sourceDetails)
        Parameters:
        sourceDetails - Provides the source and type of the event that causes AWS Config to evaluate your AWS resources. Only valid if `owner` is `CUSTOM_LAMBDA` or `CUSTOM_POLICY`. See Source Detail Below.
        Returns:
        builder
      • sourceDetails

        public RuleSourceArgs.Builder sourceDetails​(RuleSourceSourceDetailArgs... sourceDetails)
        Parameters:
        sourceDetails - Provides the source and type of the event that causes AWS Config to evaluate your AWS resources. Only valid if `owner` is `CUSTOM_LAMBDA` or `CUSTOM_POLICY`. See Source Detail Below.
        Returns:
        builder
      • sourceIdentifier

        public RuleSourceArgs.Builder sourceIdentifier​(@Nullable
                                                       com.pulumi.core.Output<java.lang.String> sourceIdentifier)
        Parameters:
        sourceIdentifier - For AWS Config managed rules, a predefined identifier, e.g `IAM_PASSWORD_POLICY`. For custom Lambda rules, the identifier is the ARN of the Lambda Function, such as `arn:aws:lambda:us-east-1:123456789012:function:custom_rule_name` or the `arn` attribute of the `aws.lambda.Function` resource.
        Returns:
        builder
      • sourceIdentifier

        public RuleSourceArgs.Builder sourceIdentifier​(java.lang.String sourceIdentifier)
        Parameters:
        sourceIdentifier - For AWS Config managed rules, a predefined identifier, e.g `IAM_PASSWORD_POLICY`. For custom Lambda rules, the identifier is the ARN of the Lambda Function, such as `arn:aws:lambda:us-east-1:123456789012:function:custom_rule_name` or the `arn` attribute of the `aws.lambda.Function` resource.
        Returns:
        builder