Interface ScopeConfiguration.Builder

  • Method Details

    • accountFilter

      ScopeConfiguration.Builder accountFilter(AccountFilter accountFilter)

      The account filter that determines which accounts are in scope. When set, exactly one of includeAll, include, or exclude is set.

      Organization administrators must include an account filter in every scope configuration. Single-account administrators must omit it: a scope without an account filter applies only to the administrator's own account. The presence of an account filter is fixed when the scope is created: an update can't add an account filter to a scope that was created without one, or remove the account filter from a scope that was created with one.

      Parameters:
      accountFilter - The account filter that determines which accounts are in scope. When set, exactly one of includeAll, include, or exclude is set.

      Organization administrators must include an account filter in every scope configuration. Single-account administrators must omit it: a scope without an account filter applies only to the administrator's own account. The presence of an account filter is fixed when the scope is created: an update can't add an account filter to a scope that was created without one, or remove the account filter from a scope that was created with one.

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

      default ScopeConfiguration.Builder accountFilter(Consumer<AccountFilter.Builder> accountFilter)

      The account filter that determines which accounts are in scope. When set, exactly one of includeAll, include, or exclude is set.

      Organization administrators must include an account filter in every scope configuration. Single-account administrators must omit it: a scope without an account filter applies only to the administrator's own account. The presence of an account filter is fixed when the scope is created: an update can't add an account filter to a scope that was created without one, or remove the account filter from a scope that was created with one.

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

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

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

      ScopeConfiguration.Builder resourceScopesWithStrings(Map<String,ResourceScope> resourceScopes)

      The resource-level scoping configuration, keyed by resource type, that defines which resources within the selected accounts are in scope.

      Parameters:
      resourceScopes - The resource-level scoping configuration, keyed by resource type, that defines which resources within the selected accounts are in scope.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • resourceScopes

      The resource-level scoping configuration, keyed by resource type, that defines which resources within the selected accounts are in scope.

      Parameters:
      resourceScopes - The resource-level scoping configuration, keyed by resource type, that defines which resources within the selected accounts are in scope.
      Returns:
      Returns a reference to this object so that method calls can be chained together.