Class RoleTemplateVersion
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<RoleTemplateVersion.Builder,RoleTemplateVersion>
Contains information about a version of an IAM role template, including the configuration that is used to create roles with AcquireRole. This structure is returned as a response element by the GetRoleTemplateVersion operation.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal StringThe trust policy template that grants an entity permission to assume roles that you create from this template.static RoleTemplateVersion.Builderbuilder()final InstantThe date and time, in ISO 8601 date-time format, when the role template version was created.final IntegerThe minor version that the service uses by default when you create a role from this template without specifying a minor version.final StringThe description of the role template.final Booleanenabled()Specifies whether the role template is enabled.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final booleanFor responses, this returns true if the service returned a value for the InlinePolicyTemplates property.final booleanFor responses, this returns true if the service returned a value for the ManagedPolicyArns property.final booleanFor responses, this returns true if the service returned a value for the ParametersDefinition property.final booleanFor responses, this returns true if the service returned a value for the RoleTagsTemplate property.final List<InlinePolicy> A list of inline policy templates that the service embeds in roles that you create from this template.final IntegerThe major version number of the role template.final ManagedByTypeTypeIndicates that the role template is managed by an Amazon Web Services service.final StringIndicates that the role template is managed by an Amazon Web Services service.final StringThe identifier of the Amazon Web Services service that manages the role template.A list of the ARNs of the managed policies that the service attaches to roles that you create from this template.final IntegerThe maximum session duration (in seconds) for roles that are created from this template.final IntegerThe minor version number of this role template version.final List<ParameterDefinition> A list of the parameters that are defined for this role template version.final StringThe ARN of the policy that sets the permissions boundary for roles that you create from this template.final StringThe pattern that is used to generate the description of a role that is created from this template.final StringThe pattern that is used to generate the name of a role that is created from this template.final StringThe pattern that is used to generate the path of a role that is created from this template.final List<TagTemplate> A list of tag templates that are applied to roles that are created from this template.static Class<? extends RoleTemplateVersion.Builder> final StringThe Amazon Resource Name (ARN) that identifies the role template.final StringThe friendly name that identifies the role template.final StringThe identifier of the role template version.Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.final InstantThe date and time, in ISO 8601 date-time format, when the role template version was last updated.final BooleanSpecifies whether this specific minor version of the role template is enabled.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
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.
- Returns:
- 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.
-
templateName
The friendly name that identifies the role template.
- Returns:
- The friendly name that identifies the role template.
-
templateVersionId
The identifier of the role template version.
- Returns:
- The identifier of the role template version.
-
description
The description of the role template.
- Returns:
- The description of the role template.
-
majorVersion
The major version number of the role template.
- Returns:
- The major version number of the role template.
-
defaultMinorVersion
The minor version that the service uses by default when you create a role from this template without specifying a minor version.
- Returns:
- The minor version that the service uses by default when you create a role from this template without specifying a minor version.
-
managedByType
Indicates that the role template is managed by an Amazon Web Services service.
If the service returns an enum value that is not available in the current SDK version,
managedByTypewill returnManagedByTypeType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frommanagedByTypeAsString().- Returns:
- Indicates that the role template is managed by an Amazon Web Services service.
- See Also:
-
managedByTypeAsString
Indicates that the role template is managed by an Amazon Web Services service.
If the service returns an enum value that is not available in the current SDK version,
managedByTypewill returnManagedByTypeType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frommanagedByTypeAsString().- Returns:
- Indicates that the role template is managed by an Amazon Web Services service.
- See Also:
-
managedByValue
The identifier of the Amazon Web Services service that manages the role template.
- Returns:
- The identifier of the Amazon Web Services service that manages the role template.
-
enabled
Specifies whether the role template is enabled. When a template is disabled, you cannot create roles from it.
- Returns:
- Specifies whether the role template is enabled. When a template is disabled, you cannot create roles from it.
-
minorVersion
The minor version number of this role template version.
- Returns:
- The minor version number of this role template version.
-
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:
- 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.
-
rolePathPattern
The pattern that is used to generate the path of a role that is created from this template.
- Returns:
- The pattern that is used to generate the path of a role that is created from this template.
-
roleDescriptionPattern
The pattern that is used to generate the description of a role that is created from this template.
- Returns:
- The pattern that is used to generate the description of a role that is created from this template.
-
assumeRolePolicyDocumentTemplate
The trust policy template that grants an entity permission to assume roles that you create from this template.
- Returns:
- The trust policy template that grants an entity permission to assume roles that you create from this template.
-
hasInlinePolicyTemplates
public final boolean hasInlinePolicyTemplates()For responses, this returns true if the service returned a value for the InlinePolicyTemplates property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
inlinePolicyTemplates
A list of inline policy templates that the service embeds in roles that you create from this template.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasInlinePolicyTemplates()method.- Returns:
- A list of inline policy templates that the service embeds in roles that you create from this template.
-
hasManagedPolicyArns
public final boolean hasManagedPolicyArns()For responses, this returns true if the service returned a value for the ManagedPolicyArns property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
managedPolicyArns
A list of the ARNs of the managed policies that the service attaches to roles that you create from this template.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasManagedPolicyArns()method.- Returns:
- A list of the ARNs of the managed policies that the service attaches to roles that you create from this template.
-
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:
- 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.
-
hasParametersDefinition
public final boolean hasParametersDefinition()For responses, this returns true if the service returned a value for the ParametersDefinition property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
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.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasParametersDefinition()method.- Returns:
- 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.
-
hasRoleTagsTemplate
public final boolean hasRoleTagsTemplate()For responses, this returns true if the service returned a value for the RoleTagsTemplate property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
roleTagsTemplate
A list of tag templates that are applied to roles that are created from this template.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasRoleTagsTemplate()method.- Returns:
- A list of tag templates that are applied to roles that are created from this template.
-
maxSessionDuration
The maximum session duration (in seconds) for roles that are created from this template.
- Returns:
- The maximum session duration (in seconds) for roles that are created from this template.
-
versionEnabled
Specifies whether this specific minor version of the role template is enabled.
- Returns:
- Specifies whether this specific minor version of the role template is enabled.
-
createTimestamp
The date and time, in ISO 8601 date-time format, when the role template version was created.
- Returns:
- The date and time, in ISO 8601 date-time format, when the role template version was created.
-
updateTimestamp
The date and time, in ISO 8601 date-time format, when the role template version was last updated.
- Returns:
- The date and time, in ISO 8601 date-time format, when the role template version was last updated.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<RoleTemplateVersion.Builder,RoleTemplateVersion> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-