Interface PolicyIdentifier.Builder

  • Method Details

    • policyType

      PolicyIdentifier.Builder policyType(String policyType)

      The policy type to identify. All policies of the specified type are matched.

      Parameters:
      policyType - The policy type to identify. All policies of the specified type are matched.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • policyType

      The policy type to identify. All policies of the specified type are matched.

      Parameters:
      policyType - The policy type to identify. All policies of the specified type are matched.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • policyArn

      PolicyIdentifier.Builder policyArn(String policyArn)

      The Amazon Resource Name (ARN) of an Amazon Web Services managed policy or a customer managed policy that is attached to an IAM user, group, or role. Wildcard characters are supported in the resource name portion of the ARN to match multiple managed policies: use at most one * (matches any sequence of characters, including none), and any number of ? (each matches exactly one character).

      For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference.

      Parameters:
      policyArn - The Amazon Resource Name (ARN) of an Amazon Web Services managed policy or a customer managed policy that is attached to an IAM user, group, or role. Wildcard characters are supported in the resource name portion of the ARN to match multiple managed policies: use at most one * (matches any sequence of characters, including none), and any number of ? (each matches exactly one character).

      For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference.

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

      PolicyIdentifier.Builder inlinePolicyIdentifier(InlinePolicyIdentifierType inlinePolicyIdentifier)

      An inline policy identifier consisting of a policy name and the entity it is attached to. Wildcard characters (* and ?) in the entity name can match multiple entities.

      Parameters:
      inlinePolicyIdentifier - An inline policy identifier consisting of a policy name and the entity it is attached to. Wildcard characters (* and ?) in the entity name can match multiple entities.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • inlinePolicyIdentifier

      default PolicyIdentifier.Builder inlinePolicyIdentifier(Consumer<InlinePolicyIdentifierType.Builder> inlinePolicyIdentifier)

      An inline policy identifier consisting of a policy name and the entity it is attached to. Wildcard characters (* and ?) in the entity name can match multiple entities.

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

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

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