Skip to main content

role_template_versions

Creates, updates, deletes, gets or lists a role_template_versions resource.

Overview

Namerole_template_versions
TypeResource
Idaws.iam.role_template_versions

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
assume_role_policy_document_templatestringThe trust policy template that grants an entity permission to assume roles that you create from this template.
create_timestampstringThe date and time, in ISO 8601 date-time format, when the role template version was created.
default_minor_versionintegerThe minor version that the service uses by default when you create a role from this template without specifying a minor version.
descriptionstringThe description of the role template.
enabledbooleanSpecifies whether the role template is enabled. When a template is disabled, you cannot create roles from it.
inline_policy_templatesstringA list of inline policy templates that the service embeds in roles that you create from this template.
major_versionintegerThe major version number of the role template.
managed_by_typestringIndicates that the role template is managed by an Amazon Web Services service.
managed_by_valuestringThe identifier of the Amazon Web Services service that manages the role template.
managed_policy_arnsstringA list of the ARNs of the managed policies that the service attaches to roles that you create from this template.
max_session_durationintegerThe maximum session duration (in seconds) for roles that are created from this template.
minor_versionintegerThe minor version number of this role template version.
parameters_definitionstringA 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.
permission_boundary_arnstringThe 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.
role_description_patternstringThe pattern that is used to generate the description of a role that is created from this template.
role_name_patternstringThe 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.
role_path_patternstringThe pattern that is used to generate the path of a role that is created from this template.
role_tags_templatestringA list of tag templates that are applied to roles that are created from this template.
template_arnstringThe 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.
template_namestringThe friendly name that identifies the role template.
template_version_idstringThe identifier of the role template version.
update_timestampstringThe date and time, in ISO 8601 date-time format, when the role template version was last updated.
version_enabledbooleanSpecifies whether this specific minor version of the role template is enabled.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_role_template_versionselectTemplateArn, regionMinorVersionRetrieves information about a version of the specified role template. Role templates define a reusable configuration—including role name and path patterns, trust policy, inline and managed policies, permissions boundary, tags, and maximum session duration—that you use to create IAM roles with AcquireRole. If you do not specify a minor version, the service returns the template's default minor version.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
TemplateArnstringThe Amazon Resource Name (ARN) of the role template whose version you want to retrieve. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference.
regionstringAWS region (default: us-east-1)
MinorVersionintegerThe minor version of the role template to retrieve. If you do not specify a minor version, the service returns the template's default minor version.

SELECT examples

Retrieves information about a version of the specified role template. Role templates define a reusable configuration—including role name and path patterns, trust policy, inline and managed policies, permissions boundary, tags, and maximum session duration—that you use to create IAM roles with AcquireRole. If you do not specify a minor version, the service returns the template's default minor version.

SELECT
assume_role_policy_document_template,
create_timestamp,
default_minor_version,
description,
enabled,
inline_policy_templates,
major_version,
managed_by_type,
managed_by_value,
managed_policy_arns,
max_session_duration,
minor_version,
parameters_definition,
permission_boundary_arn,
role_description_pattern,
role_name_pattern,
role_path_pattern,
role_tags_template,
template_arn,
template_name,
template_version_id,
update_timestamp,
version_enabled
FROM aws.iam.role_template_versions
WHERE TemplateArn = '{{ TemplateArn }}' -- required
AND region = '{{ region }}' -- required
AND MinorVersion = '{{ MinorVersion }}'
;