Interface RoleTemplateVersion.Builder

  • Method Details

    • templateArn

      RoleTemplateVersion.Builder templateArn(String templateArn)

      The Amazon Resource Name (ARN) that identifies the role template.

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

      Parameters:
      templateArn - The Amazon Resource Name (ARN) that identifies the role template.

      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.
    • templateName

      RoleTemplateVersion.Builder templateName(String templateName)

      The friendly name that identifies the role template.

      Parameters:
      templateName - The friendly name that identifies the role template.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • templateVersionId

      RoleTemplateVersion.Builder templateVersionId(String templateVersionId)

      The identifier of the role template version.

      Parameters:
      templateVersionId - The identifier of the role template version.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • description

      RoleTemplateVersion.Builder description(String description)

      The description of the role template.

      Parameters:
      description - The description of the role template.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • majorVersion

      RoleTemplateVersion.Builder majorVersion(Integer majorVersion)

      The major version number of the role template.

      Parameters:
      majorVersion - The major version number of the role template.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • defaultMinorVersion

      RoleTemplateVersion.Builder defaultMinorVersion(Integer defaultMinorVersion)

      The minor version that the service uses by default when you create a role from this template without specifying a minor version.

      Parameters:
      defaultMinorVersion - The minor version that the service uses by default when you create a role from this template without specifying a minor version.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • managedByType

      RoleTemplateVersion.Builder managedByType(String managedByType)

      Indicates that the role template is managed by an Amazon Web Services service.

      Parameters:
      managedByType - Indicates that the role template is managed by an Amazon Web Services service.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • managedByType

      RoleTemplateVersion.Builder managedByType(ManagedByTypeType managedByType)

      Indicates that the role template is managed by an Amazon Web Services service.

      Parameters:
      managedByType - Indicates that the role template is managed by an Amazon Web Services service.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • managedByValue

      RoleTemplateVersion.Builder managedByValue(String managedByValue)

      The identifier of the Amazon Web Services service that manages the role template.

      Parameters:
      managedByValue - The identifier of the Amazon Web Services service that manages the role template.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • enabled

      Specifies whether the role template is enabled. When a template is disabled, you cannot create roles from it.

      Parameters:
      enabled - Specifies whether the role template is enabled. When a template is disabled, you cannot create roles from it.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • minorVersion

      RoleTemplateVersion.Builder minorVersion(Integer minorVersion)

      The minor version number of this role template version.

      Parameters:
      minorVersion - The minor version number of this role template version.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • roleNamePattern

      RoleTemplateVersion.Builder roleNamePattern(String roleNamePattern)

      The pattern that is used to generate the name of a role that is created from this template. The pattern can include @{parameter} placeholders that are replaced with the values you supply in the ReplacementValues parameter of AcquireRole.

      Parameters:
      roleNamePattern - The pattern that is used to generate the name of a role that is created from this template. The pattern can include @{parameter} placeholders that are replaced with the values you supply in the ReplacementValues parameter of AcquireRole.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • rolePathPattern

      RoleTemplateVersion.Builder rolePathPattern(String rolePathPattern)

      The pattern that is used to generate the path of a role that is created from this template.

      Parameters:
      rolePathPattern - The pattern that is used to generate the path of a role that is created from this template.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • roleDescriptionPattern

      RoleTemplateVersion.Builder roleDescriptionPattern(String roleDescriptionPattern)

      The pattern that is used to generate the description of a role that is created from this template.

      Parameters:
      roleDescriptionPattern - The pattern that is used to generate the description of a role that is created from this template.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • assumeRolePolicyDocumentTemplate

      RoleTemplateVersion.Builder assumeRolePolicyDocumentTemplate(String assumeRolePolicyDocumentTemplate)

      The trust policy template that grants an entity permission to assume roles that you create from this template.

      Parameters:
      assumeRolePolicyDocumentTemplate - The trust policy template that grants an entity permission to assume roles that you create from this template.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • inlinePolicyTemplates

      RoleTemplateVersion.Builder inlinePolicyTemplates(Collection<InlinePolicy> inlinePolicyTemplates)

      A list of inline policy templates that the service embeds in roles that you create from this template.

      Parameters:
      inlinePolicyTemplates - A list of inline policy templates that the service embeds in roles that you create from this template.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • inlinePolicyTemplates

      RoleTemplateVersion.Builder inlinePolicyTemplates(InlinePolicy... inlinePolicyTemplates)

      A list of inline policy templates that the service embeds in roles that you create from this template.

      Parameters:
      inlinePolicyTemplates - A list of inline policy templates that the service embeds in roles that you create from this template.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • inlinePolicyTemplates

      RoleTemplateVersion.Builder inlinePolicyTemplates(Consumer<InlinePolicy.Builder>... inlinePolicyTemplates)

      A list of inline policy templates that the service embeds in roles that you create from this template.

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

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

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

      RoleTemplateVersion.Builder managedPolicyArns(Collection<String> managedPolicyArns)

      A list of the ARNs of the managed policies that the service attaches to roles that you create from this template.

      Parameters:
      managedPolicyArns - A list of the ARNs of the managed policies that the service attaches to roles that you create from this template.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • managedPolicyArns

      RoleTemplateVersion.Builder managedPolicyArns(String... managedPolicyArns)

      A list of the ARNs of the managed policies that the service attaches to roles that you create from this template.

      Parameters:
      managedPolicyArns - A list of the ARNs of the managed policies that the service attaches to roles that you create from this template.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • permissionBoundaryArn

      RoleTemplateVersion.Builder permissionBoundaryArn(String permissionBoundaryArn)

      The ARN of the policy that sets the permissions boundary for roles that you create from this template.

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

      Parameters:
      permissionBoundaryArn - The ARN of the policy that sets the permissions boundary for roles that you create from this template.

      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.
    • parametersDefinition

      RoleTemplateVersion.Builder parametersDefinition(Collection<ParameterDefinition> parametersDefinition)

      A list of the parameters that are defined for this role template version. You supply values for these parameters when you create a role with AcquireRole.

      Parameters:
      parametersDefinition - A list of the parameters that are defined for this role template version. You supply values for these parameters when you create a role with AcquireRole.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • parametersDefinition

      RoleTemplateVersion.Builder parametersDefinition(ParameterDefinition... parametersDefinition)

      A list of the parameters that are defined for this role template version. You supply values for these parameters when you create a role with AcquireRole.

      Parameters:
      parametersDefinition - A list of the parameters that are defined for this role template version. You supply values for these parameters when you create a role with AcquireRole.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • parametersDefinition

      RoleTemplateVersion.Builder parametersDefinition(Consumer<ParameterDefinition.Builder>... parametersDefinition)

      A list of the parameters that are defined for this role template version. You supply values for these parameters when you create a role with AcquireRole.

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

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

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

      RoleTemplateVersion.Builder roleTagsTemplate(Collection<TagTemplate> roleTagsTemplate)

      A list of tag templates that are applied to roles that are created from this template.

      Parameters:
      roleTagsTemplate - A list of tag templates that are applied to roles that are created from this template.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • roleTagsTemplate

      RoleTemplateVersion.Builder roleTagsTemplate(TagTemplate... roleTagsTemplate)

      A list of tag templates that are applied to roles that are created from this template.

      Parameters:
      roleTagsTemplate - A list of tag templates that are applied to roles that are created from this template.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • roleTagsTemplate

      RoleTemplateVersion.Builder roleTagsTemplate(Consumer<TagTemplate.Builder>... roleTagsTemplate)

      A list of tag templates that are applied to roles that are created from this template.

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

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

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

      RoleTemplateVersion.Builder maxSessionDuration(Integer maxSessionDuration)

      The maximum session duration (in seconds) for roles that are created from this template.

      Parameters:
      maxSessionDuration - The maximum session duration (in seconds) for roles that are created from this template.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • versionEnabled

      RoleTemplateVersion.Builder versionEnabled(Boolean versionEnabled)

      Specifies whether this specific minor version of the role template is enabled.

      Parameters:
      versionEnabled - Specifies whether this specific minor version of the role template is enabled.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • createTimestamp

      RoleTemplateVersion.Builder createTimestamp(Instant createTimestamp)

      The date and time, in ISO 8601 date-time format, when the role template version was created.

      Parameters:
      createTimestamp - The date and time, in ISO 8601 date-time format, when the role template version was created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • updateTimestamp

      RoleTemplateVersion.Builder updateTimestamp(Instant updateTimestamp)

      The date and time, in ISO 8601 date-time format, when the role template version was last updated.

      Parameters:
      updateTimestamp - The date and time, in ISO 8601 date-time format, when the role template version was last updated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.