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{}= No additional options.#
Additional options to pass to STS when assuming the role.
  • 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= No external ID#
External ID to use when assuming the bootstrap role.
bootstrapStackVersionSsmParameterstringbootstrap_stack_version_ssm_parameterstrbootstrapStackVersionSsmParameterStringBootstrapStackVersionSsmParameterstringBootstrapStackVersionSsmParameter*string= Discover SSM parameter by readin…#
Name of SSM parameter with bootstrap stack version.
default

Default: Discover SSM parameter by reading stack

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