Interface RoleTemplateVersion.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<RoleTemplateVersion.Builder,,RoleTemplateVersion> SdkBuilder<RoleTemplateVersion.Builder,,RoleTemplateVersion> SdkPojo
- Enclosing class:
RoleTemplateVersion
-
Method Summary
Modifier and TypeMethodDescriptionassumeRolePolicyDocumentTemplate(String assumeRolePolicyDocumentTemplate) The trust policy template that grants an entity permission to assume roles that you create from this template.createTimestamp(Instant createTimestamp) The date and time, in ISO 8601 date-time format, when the role template version was created.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.description(String description) The description of the role template.Specifies whether the role template is enabled.inlinePolicyTemplates(Collection<InlinePolicy> inlinePolicyTemplates) A list of inline policy templates that the service embeds in roles that you create from this template.inlinePolicyTemplates(Consumer<InlinePolicy.Builder>... inlinePolicyTemplates) A list of inline policy templates that the service embeds in roles that you create from this template.inlinePolicyTemplates(InlinePolicy... inlinePolicyTemplates) A list of inline policy templates that the service embeds in roles that you create from this template.majorVersion(Integer majorVersion) The major version number of the role template.managedByType(String managedByType) Indicates that the role template is managed by an Amazon Web Services service.managedByType(ManagedByTypeType managedByType) Indicates that the role template is managed by an Amazon Web Services service.managedByValue(String managedByValue) The identifier of the Amazon Web Services service that manages the role template.managedPolicyArns(String... managedPolicyArns) A list of the ARNs of the managed policies that the service attaches to roles that you create from this template.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.maxSessionDuration(Integer maxSessionDuration) The maximum session duration (in seconds) for roles that are created from this template.minorVersion(Integer minorVersion) The minor version number of this role template version.parametersDefinition(Collection<ParameterDefinition> parametersDefinition) A list of the parameters that are defined for this role template version.parametersDefinition(Consumer<ParameterDefinition.Builder>... parametersDefinition) A list of the parameters that are defined for this role template version.parametersDefinition(ParameterDefinition... parametersDefinition) A list of the parameters that are defined for this role template version.permissionBoundaryArn(String permissionBoundaryArn) The ARN of the policy that sets the permissions boundary for roles that you create from this template.roleDescriptionPattern(String roleDescriptionPattern) The pattern that is used to generate the description of a role that is created from this template.roleNamePattern(String roleNamePattern) The pattern that is used to generate the name of a role that is created from this template.rolePathPattern(String rolePathPattern) The pattern that is used to generate the path of a role that is created from this template.roleTagsTemplate(Collection<TagTemplate> roleTagsTemplate) A list of tag templates that are applied to roles that are created from this template.roleTagsTemplate(Consumer<TagTemplate.Builder>... roleTagsTemplate) A list of tag templates that are applied to roles that are created from this template.roleTagsTemplate(TagTemplate... roleTagsTemplate) A list of tag templates that are applied to roles that are created from this template.templateArn(String templateArn) The Amazon Resource Name (ARN) that identifies the role template.templateName(String templateName) The friendly name that identifies the role template.templateVersionId(String templateVersionId) The identifier of the role template version.updateTimestamp(Instant updateTimestamp) The date and time, in ISO 8601 date-time format, when the role template version was last updated.versionEnabled(Boolean versionEnabled) Specifies whether this specific minor version of the role template is enabled.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
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
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
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
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
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
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
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
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
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
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
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 theReplacementValuesparameter 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 theReplacementValuesparameter of AcquireRole.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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
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
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
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 theInlinePolicy.Builderavoiding the need to create one manually viaInlinePolicy.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toinlinePolicyTemplates(List<InlinePolicy>).- Parameters:
inlinePolicyTemplates- a consumer that will call methods onInlinePolicy.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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
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
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
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 theParameterDefinition.Builderavoiding the need to create one manually viaParameterDefinition.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toparametersDefinition(List<ParameterDefinition>).- Parameters:
parametersDefinition- a consumer that will call methods onParameterDefinition.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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
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
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 theTagTemplate.Builderavoiding the need to create one manually viaTagTemplate.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toroleTagsTemplate(List<TagTemplate>).- Parameters:
roleTagsTemplate- a consumer that will call methods onTagTemplate.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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
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
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
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.
-