Skip to content
v2.274.0

BootstrapRole Struct ​

Information needed to access an IAM role created as part of the bootstrap process.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { cloud_assembly_schema } from 'aws-cdk-lib';

declare const assumeRoleAdditionalOptions: any;
const bootstrapRole: cloud_assembly_schema.BootstrapRole = {
  arn: 'arn',

  // the properties below are optional
  assumeRoleAdditionalOptions: {
    assumeRoleAdditionalOptionsKey: assumeRoleAdditionalOptions,
  },
  assumeRoleExternalId: 'assumeRoleExternalId',
  bootstrapStackVersionSsmParameter: 'bootstrapStackVersionSsmParameter',
  requiresBootstrapStackVersion: 123,
};

Properties ​

arnstringarnstrarnStringArnstringArn*stringrequired#
The ARN of the IAM role created as part of bootrapping e.g. lookupRoleArn.
assumeRoleAdditionalOptions{ [key: string]: any }assume_role_additional_optionstyping.Mapping[str, Any]assumeRoleAdditionalOptionsMap<String, Object>AssumeRoleAdditionalOptionsIDictionary<string, object>AssumeRoleAdditionalOptions*map[string]interface{}#
Additional options to pass to STS when assuming the role.

Default: No additional options.

  • RoleArn should not be used. Use the dedicated arn property instead.
  • ExternalId should not be used. Use the dedicated assumeRoleExternalId instead.
assumeRoleExternalIdstringassume_role_external_idstrassumeRoleExternalIdStringAssumeRoleExternalIdstringAssumeRoleExternalId*string#
External ID to use when assuming the bootstrap role.

Default: No external ID

bootstrapStackVersionSsmParameterstringbootstrap_stack_version_ssm_parameterstrbootstrapStackVersionSsmParameterStringBootstrapStackVersionSsmParameterstringBootstrapStackVersionSsmParameter*string#
Name of SSM parameter with bootstrap stack version.

Default: Discover SSM parameter by reading stack

requiresBootstrapStackVersionnumberrequires_bootstrap_stack_versionint | floatrequiresBootstrapStackVersionNumberRequiresBootstrapStackVersiondoubleRequiresBootstrapStackVersion*float64#
Version of bootstrap stack required to use this role.

Default: No bootstrap stack required