Interface Source.Builder

All Superinterfaces:
Buildable, CopyableBuilder<Source.Builder,Source>, SdkBuilder<Source.Builder,Source>, SdkPojo
Enclosing class:
Source

public static interface Source.Builder extends SdkPojo, CopyableBuilder<Source.Builder,Source>
  • Method Details

    • owner

      Source.Builder owner(String owner)

      Indicates whether Amazon Web Services or the customer owns and manages the Config rule.

      Config Managed Rules are predefined rules owned by Amazon Web Services. For more information, see Config Managed Rules in the Config developer guide.

      Config Custom Rules are rules that you can develop either with Guard (CUSTOM_POLICY) or Lambda ( CUSTOM_LAMBDA). For more information, see Config Custom Rules in the Config developer guide.

      Parameters:
      owner - Indicates whether Amazon Web Services or the customer owns and manages the Config rule.

      Config Managed Rules are predefined rules owned by Amazon Web Services. For more information, see Config Managed Rules in the Config developer guide.

      Config Custom Rules are rules that you can develop either with Guard (CUSTOM_POLICY) or Lambda (CUSTOM_LAMBDA). For more information, see Config Custom Rules in the Config developer guide.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • owner

      Source.Builder owner(Owner owner)

      Indicates whether Amazon Web Services or the customer owns and manages the Config rule.

      Config Managed Rules are predefined rules owned by Amazon Web Services. For more information, see Config Managed Rules in the Config developer guide.

      Config Custom Rules are rules that you can develop either with Guard (CUSTOM_POLICY) or Lambda ( CUSTOM_LAMBDA). For more information, see Config Custom Rules in the Config developer guide.

      Parameters:
      owner - Indicates whether Amazon Web Services or the customer owns and manages the Config rule.

      Config Managed Rules are predefined rules owned by Amazon Web Services. For more information, see Config Managed Rules in the Config developer guide.

      Config Custom Rules are rules that you can develop either with Guard (CUSTOM_POLICY) or Lambda (CUSTOM_LAMBDA). For more information, see Config Custom Rules in the Config developer guide.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • sourceIdentifier

      Source.Builder sourceIdentifier(String sourceIdentifier)

      For Config Managed rules, a predefined identifier from a list. For example, IAM_PASSWORD_POLICY is a managed rule. To reference a managed rule, see List of Config Managed Rules.

      For Config Custom Lambda rules, the identifier is the Amazon Resource Name (ARN) of the rule's Lambda function, such as arn:aws:lambda:us-east-2:123456789012:function:custom_rule_name.

      For Config Custom Policy rules, this field will be ignored.

      Parameters:
      sourceIdentifier - For Config Managed rules, a predefined identifier from a list. For example, IAM_PASSWORD_POLICY is a managed rule. To reference a managed rule, see List of Config Managed Rules.

      For Config Custom Lambda rules, the identifier is the Amazon Resource Name (ARN) of the rule's Lambda function, such as arn:aws:lambda:us-east-2:123456789012:function:custom_rule_name.

      For Config Custom Policy rules, this field will be ignored.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sourceDetails

      Source.Builder sourceDetails(Collection<SourceDetail> sourceDetails)

      Provides the source and the message types that cause Config to evaluate your Amazon Web Services resources against a rule. It also provides the frequency with which you want Config to run evaluations for the rule if the trigger type is periodic.

      If the owner is set to CUSTOM_POLICY, the only acceptable values for the Config rule trigger message type are ConfigurationItemChangeNotification and OversizedConfigurationItemChangeNotification.

      Parameters:
      sourceDetails - Provides the source and the message types that cause Config to evaluate your Amazon Web Services resources against a rule. It also provides the frequency with which you want Config to run evaluations for the rule if the trigger type is periodic.

      If the owner is set to CUSTOM_POLICY, the only acceptable values for the Config rule trigger message type are ConfigurationItemChangeNotification and OversizedConfigurationItemChangeNotification.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sourceDetails

      Source.Builder sourceDetails(SourceDetail... sourceDetails)

      Provides the source and the message types that cause Config to evaluate your Amazon Web Services resources against a rule. It also provides the frequency with which you want Config to run evaluations for the rule if the trigger type is periodic.

      If the owner is set to CUSTOM_POLICY, the only acceptable values for the Config rule trigger message type are ConfigurationItemChangeNotification and OversizedConfigurationItemChangeNotification.

      Parameters:
      sourceDetails - Provides the source and the message types that cause Config to evaluate your Amazon Web Services resources against a rule. It also provides the frequency with which you want Config to run evaluations for the rule if the trigger type is periodic.

      If the owner is set to CUSTOM_POLICY, the only acceptable values for the Config rule trigger message type are ConfigurationItemChangeNotification and OversizedConfigurationItemChangeNotification.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sourceDetails

      Source.Builder sourceDetails(Consumer<SourceDetail.Builder>... sourceDetails)

      Provides the source and the message types that cause Config to evaluate your Amazon Web Services resources against a rule. It also provides the frequency with which you want Config to run evaluations for the rule if the trigger type is periodic.

      If the owner is set to CUSTOM_POLICY, the only acceptable values for the Config rule trigger message type are ConfigurationItemChangeNotification and OversizedConfigurationItemChangeNotification.

      This is a convenience method that creates an instance of the SourceDetail.Builder avoiding the need to create one manually via SourceDetail.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to sourceDetails(List<SourceDetail>).

      Parameters:
      sourceDetails - a consumer that will call methods on SourceDetail.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • customPolicyDetails

      Source.Builder customPolicyDetails(CustomPolicyDetails customPolicyDetails)

      Provides the runtime system, policy definition, and whether debug logging is enabled. Required when owner is set to CUSTOM_POLICY.

      Parameters:
      customPolicyDetails - Provides the runtime system, policy definition, and whether debug logging is enabled. Required when owner is set to CUSTOM_POLICY.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • customPolicyDetails

      default Source.Builder customPolicyDetails(Consumer<CustomPolicyDetails.Builder> customPolicyDetails)

      Provides the runtime system, policy definition, and whether debug logging is enabled. Required when owner is set to CUSTOM_POLICY.

      This is a convenience method that creates an instance of the CustomPolicyDetails.Builder avoiding the need to create one manually via CustomPolicyDetails.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to customPolicyDetails(CustomPolicyDetails).

      Parameters:
      customPolicyDetails - a consumer that will call methods on CustomPolicyDetails.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: