Interface CreateProfileRequest.Builder

    • Method Detail

      • acceptRoleSessionName

        CreateProfileRequest.Builder acceptRoleSessionName​(Boolean acceptRoleSessionName)

        Used to determine if a custom role session name will be accepted in a temporary credential request.

        Parameters:
        acceptRoleSessionName - Used to determine if a custom role session name will be accepted in a temporary credential request.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • durationSeconds

        CreateProfileRequest.Builder durationSeconds​(Integer durationSeconds)

        Used to determine how long sessions vended using this profile are valid for. See the Expiration section of the CreateSession API documentation page for more details. In requests, if this value is not provided, the default value will be 3600.

        Parameters:
        durationSeconds - Used to determine how long sessions vended using this profile are valid for. See the Expiration section of the CreateSession API documentation page for more details. In requests, if this value is not provided, the default value will be 3600.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • enabled

        CreateProfileRequest.Builder enabled​(Boolean enabled)

        Specifies whether the profile is enabled.

        Parameters:
        enabled - Specifies whether the profile is enabled.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • managedPolicyArns

        CreateProfileRequest.Builder managedPolicyArns​(Collection<String> managedPolicyArns)

        A list of managed policy ARNs that apply to the vended session credentials.

        Parameters:
        managedPolicyArns - A list of managed policy ARNs that apply to the vended session credentials.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • managedPolicyArns

        CreateProfileRequest.Builder managedPolicyArns​(String... managedPolicyArns)

        A list of managed policy ARNs that apply to the vended session credentials.

        Parameters:
        managedPolicyArns - A list of managed policy ARNs that apply to the vended session credentials.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • name

        CreateProfileRequest.Builder name​(String name)

        The name of the profile.

        Parameters:
        name - The name of the profile.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • requireInstanceProperties

        CreateProfileRequest.Builder requireInstanceProperties​(Boolean requireInstanceProperties)

        Specifies whether instance properties are required in temporary credential requests with this profile.

        Parameters:
        requireInstanceProperties - Specifies whether instance properties are required in temporary credential requests with this profile.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • roleArns

        CreateProfileRequest.Builder roleArns​(Collection<String> roleArns)

        A list of IAM roles that this profile can assume in a temporary credential request.

        Parameters:
        roleArns - A list of IAM roles that this profile can assume in a temporary credential request.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • roleArns

        CreateProfileRequest.Builder roleArns​(String... roleArns)

        A list of IAM roles that this profile can assume in a temporary credential request.

        Parameters:
        roleArns - A list of IAM roles that this profile can assume in a temporary credential request.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • sessionPolicy

        CreateProfileRequest.Builder sessionPolicy​(String sessionPolicy)

        A session policy that applies to the trust boundary of the vended session credentials.

        Parameters:
        sessionPolicy - A session policy that applies to the trust boundary of the vended session credentials.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tags

        CreateProfileRequest.Builder tags​(Collection<Tag> tags)

        The tags to attach to the profile.

        Parameters:
        tags - The tags to attach to the profile.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tags

        CreateProfileRequest.Builder tags​(Tag... tags)

        The tags to attach to the profile.

        Parameters:
        tags - The tags to attach to the profile.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tags

        CreateProfileRequest.Builder tags​(Consumer<Tag.Builder>... tags)

        The tags to attach to the profile.

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

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #tags(List).

        Parameters:
        tags - a consumer that will call methods on Tag.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #tags(java.util.Collection)