Documentation
¶
Overview ¶
Version 2 of the AWS Cloud Development Kit library
Index ¶
- func App_IsApp(obj interface{}) *bool
- func App_IsConstruct(x interface{}) *bool
- func App_IsStage(x interface{}) *bool
- func Arn_ExtractResourceName(arn *string, resourceType *string) *string
- func Arn_Format(components *ArnComponents, stack Stack) *string
- func AssetStaging_BUNDLING_INPUT_DIR() *string
- func AssetStaging_BUNDLING_OUTPUT_DIR() *string
- func AssetStaging_ClearAssetHashCache()
- func AssetStaging_IsConstruct(x interface{}) *bool
- func Aws_ACCOUNT_ID() *string
- func Aws_NOTIFICATION_ARNS() *[]*string
- func Aws_NO_VALUE() *string
- func Aws_PARTITION() *string
- func Aws_REGION() *string
- func Aws_STACK_ID() *string
- func Aws_STACK_NAME() *string
- func Aws_URL_SUFFIX() *string
- func BootstraplessSynthesizer_DEFAULT_BOOTSTRAP_STACK_VERSION_SSM_PARAMETER() *string
- func BootstraplessSynthesizer_DEFAULT_CLOUDFORMATION_ROLE_ARN() *string
- func BootstraplessSynthesizer_DEFAULT_DEPLOY_ROLE_ARN() *string
- func BootstraplessSynthesizer_DEFAULT_DOCKER_ASSET_PREFIX() *string
- func BootstraplessSynthesizer_DEFAULT_FILE_ASSETS_BUCKET_NAME() *string
- func BootstraplessSynthesizer_DEFAULT_FILE_ASSET_KEY_ARN_EXPORT_NAME() *string
- func BootstraplessSynthesizer_DEFAULT_FILE_ASSET_PREFIX() *string
- func BootstraplessSynthesizer_DEFAULT_FILE_ASSET_PUBLISHING_ROLE_ARN() *string
- func BootstraplessSynthesizer_DEFAULT_IMAGE_ASSETS_REPOSITORY_NAME() *string
- func BootstraplessSynthesizer_DEFAULT_IMAGE_ASSET_PUBLISHING_ROLE_ARN() *string
- func BootstraplessSynthesizer_DEFAULT_LOOKUP_ROLE_ARN() *string
- func BootstraplessSynthesizer_DEFAULT_QUALIFIER() *string
- func CfnCodeDeployBlueGreenHook_IsCfnElement(x interface{}) *bool
- func CfnCodeDeployBlueGreenHook_IsConstruct(x interface{}) *bool
- func CfnCondition_IsCfnElement(x interface{}) *bool
- func CfnCondition_IsConstruct(x interface{}) *bool
- func CfnCustomResource_CFN_RESOURCE_TYPE_NAME() *string
- func CfnCustomResource_IsCfnElement(x interface{}) *bool
- func CfnCustomResource_IsCfnResource(construct constructs.IConstruct) *bool
- func CfnCustomResource_IsConstruct(x interface{}) *bool
- func CfnElement_IsCfnElement(x interface{}) *bool
- func CfnElement_IsConstruct(x interface{}) *bool
- func CfnHookDefaultVersion_CFN_RESOURCE_TYPE_NAME() *string
- func CfnHookDefaultVersion_IsCfnElement(x interface{}) *bool
- func CfnHookDefaultVersion_IsCfnResource(construct constructs.IConstruct) *bool
- func CfnHookDefaultVersion_IsConstruct(x interface{}) *bool
- func CfnHookTypeConfig_CFN_RESOURCE_TYPE_NAME() *string
- func CfnHookTypeConfig_IsCfnElement(x interface{}) *bool
- func CfnHookTypeConfig_IsCfnResource(construct constructs.IConstruct) *bool
- func CfnHookTypeConfig_IsConstruct(x interface{}) *bool
- func CfnHookVersion_CFN_RESOURCE_TYPE_NAME() *string
- func CfnHookVersion_IsCfnElement(x interface{}) *bool
- func CfnHookVersion_IsCfnResource(construct constructs.IConstruct) *bool
- func CfnHookVersion_IsConstruct(x interface{}) *bool
- func CfnHook_IsCfnElement(x interface{}) *bool
- func CfnHook_IsConstruct(x interface{}) *bool
- func CfnJson_IsConstruct(x interface{}) *bool
- func CfnMacro_CFN_RESOURCE_TYPE_NAME() *string
- func CfnMacro_IsCfnElement(x interface{}) *bool
- func CfnMacro_IsCfnResource(construct constructs.IConstruct) *bool
- func CfnMacro_IsConstruct(x interface{}) *bool
- func CfnMapping_IsCfnElement(x interface{}) *bool
- func CfnMapping_IsConstruct(x interface{}) *bool
- func CfnModuleDefaultVersion_CFN_RESOURCE_TYPE_NAME() *string
- func CfnModuleDefaultVersion_IsCfnElement(x interface{}) *bool
- func CfnModuleDefaultVersion_IsCfnResource(construct constructs.IConstruct) *bool
- func CfnModuleDefaultVersion_IsConstruct(x interface{}) *bool
- func CfnModuleVersion_CFN_RESOURCE_TYPE_NAME() *string
- func CfnModuleVersion_IsCfnElement(x interface{}) *bool
- func CfnModuleVersion_IsCfnResource(construct constructs.IConstruct) *bool
- func CfnModuleVersion_IsConstruct(x interface{}) *bool
- func CfnOutput_IsCfnElement(x interface{}) *bool
- func CfnOutput_IsConstruct(x interface{}) *bool
- func CfnParameter_IsCfnElement(x interface{}) *bool
- func CfnParameter_IsConstruct(x interface{}) *bool
- func CfnPublicTypeVersion_CFN_RESOURCE_TYPE_NAME() *string
- func CfnPublicTypeVersion_IsCfnElement(x interface{}) *bool
- func CfnPublicTypeVersion_IsCfnResource(construct constructs.IConstruct) *bool
- func CfnPublicTypeVersion_IsConstruct(x interface{}) *bool
- func CfnPublisher_CFN_RESOURCE_TYPE_NAME() *string
- func CfnPublisher_IsCfnElement(x interface{}) *bool
- func CfnPublisher_IsCfnResource(construct constructs.IConstruct) *bool
- func CfnPublisher_IsConstruct(x interface{}) *bool
- func CfnRefElement_IsCfnElement(x interface{}) *bool
- func CfnRefElement_IsConstruct(x interface{}) *bool
- func CfnResourceDefaultVersion_CFN_RESOURCE_TYPE_NAME() *string
- func CfnResourceDefaultVersion_IsCfnElement(x interface{}) *bool
- func CfnResourceDefaultVersion_IsCfnResource(construct constructs.IConstruct) *bool
- func CfnResourceDefaultVersion_IsConstruct(x interface{}) *bool
- func CfnResourceVersion_CFN_RESOURCE_TYPE_NAME() *string
- func CfnResourceVersion_IsCfnElement(x interface{}) *bool
- func CfnResourceVersion_IsCfnResource(construct constructs.IConstruct) *bool
- func CfnResourceVersion_IsConstruct(x interface{}) *bool
- func CfnResource_IsCfnElement(x interface{}) *bool
- func CfnResource_IsCfnResource(construct constructs.IConstruct) *bool
- func CfnResource_IsConstruct(x interface{}) *bool
- func CfnRule_IsCfnElement(x interface{}) *bool
- func CfnRule_IsConstruct(x interface{}) *bool
- func CfnStackSet_CFN_RESOURCE_TYPE_NAME() *string
- func CfnStackSet_IsCfnElement(x interface{}) *bool
- func CfnStackSet_IsCfnResource(construct constructs.IConstruct) *bool
- func CfnStackSet_IsConstruct(x interface{}) *bool
- func CfnStack_CFN_RESOURCE_TYPE_NAME() *string
- func CfnStack_IsCfnElement(x interface{}) *bool
- func CfnStack_IsCfnResource(construct constructs.IConstruct) *bool
- func CfnStack_IsConstruct(x interface{}) *bool
- func CfnTypeActivation_CFN_RESOURCE_TYPE_NAME() *string
- func CfnTypeActivation_IsCfnElement(x interface{}) *bool
- func CfnTypeActivation_IsCfnResource(construct constructs.IConstruct) *bool
- func CfnTypeActivation_IsConstruct(x interface{}) *bool
- func CfnWaitConditionHandle_CFN_RESOURCE_TYPE_NAME() *string
- func CfnWaitConditionHandle_IsCfnElement(x interface{}) *bool
- func CfnWaitConditionHandle_IsCfnResource(construct constructs.IConstruct) *bool
- func CfnWaitConditionHandle_IsConstruct(x interface{}) *bool
- func CfnWaitCondition_CFN_RESOURCE_TYPE_NAME() *string
- func CfnWaitCondition_IsCfnElement(x interface{}) *bool
- func CfnWaitCondition_IsCfnResource(construct constructs.IConstruct) *bool
- func CfnWaitCondition_IsConstruct(x interface{}) *bool
- func CustomResourceProvider_GetOrCreate(scope constructs.Construct, uniqueid *string, ...) *string
- func CustomResourceProvider_IsConstruct(x interface{}) *bool
- func CustomResource_IsConstruct(x interface{}) *bool
- func CustomResource_IsOwnedResource(construct constructs.IConstruct) *bool
- func CustomResource_IsResource(construct constructs.IConstruct) *bool
- func DefaultStackSynthesizer_DEFAULT_BOOTSTRAP_STACK_VERSION_SSM_PARAMETER() *string
- func DefaultStackSynthesizer_DEFAULT_CLOUDFORMATION_ROLE_ARN() *string
- func DefaultStackSynthesizer_DEFAULT_DEPLOY_ROLE_ARN() *string
- func DefaultStackSynthesizer_DEFAULT_DOCKER_ASSET_PREFIX() *string
- func DefaultStackSynthesizer_DEFAULT_FILE_ASSETS_BUCKET_NAME() *string
- func DefaultStackSynthesizer_DEFAULT_FILE_ASSET_KEY_ARN_EXPORT_NAME() *string
- func DefaultStackSynthesizer_DEFAULT_FILE_ASSET_PREFIX() *string
- func DefaultStackSynthesizer_DEFAULT_FILE_ASSET_PUBLISHING_ROLE_ARN() *string
- func DefaultStackSynthesizer_DEFAULT_IMAGE_ASSETS_REPOSITORY_NAME() *string
- func DefaultStackSynthesizer_DEFAULT_IMAGE_ASSET_PUBLISHING_ROLE_ARN() *string
- func DefaultStackSynthesizer_DEFAULT_LOOKUP_ROLE_ARN() *string
- func DefaultStackSynthesizer_DEFAULT_QUALIFIER() *string
- func DockerBuildSecret_FromSrc(src *string) *string
- func FileSystem_CopyDirectory(srcDir *string, destDir *string, options *CopyOptions, rootDir *string)
- func FileSystem_Fingerprint(fileOrDirectory *string, options *FingerprintOptions) *string
- func FileSystem_IsEmpty(dir *string) *bool
- func FileSystem_Mkdtemp(prefix *string) *string
- func FileSystem_Tmpdir() *string
- func Fn_Base64(data *string) *string
- func Fn_Cidr(ipBlock *string, count *float64, sizeMask *string) *[]*string
- func Fn_FindInMap(mapName *string, topLevelKey *string, secondLevelKey *string, ...) *string
- func Fn_GetAzs(region *string) *[]*string
- func Fn_ImportListValue(sharedValueToImport *string, assumedLength *float64, delimiter *string) *[]*string
- func Fn_ImportValue(sharedValueToImport *string) *string
- func Fn_Join(delimiter *string, listOfValues *[]*string) *string
- func Fn_Len(array interface{}) *float64
- func Fn_ParseDomainName(url *string) *string
- func Fn_Ref(logicalName *string) *string
- func Fn_RefAll(parameterType *string) *[]*string
- func Fn_Select(index *float64, array *[]*string) *string
- func Fn_Split(delimiter *string, source *string, assumedLength *float64) *[]*string
- func Fn_Sub(body *string, variables *map[string]*string) *string
- func Fn_ToJsonString(object interface{}) *string
- func Fn_ValueOf(parameterOrLogicalId *string, attribute *string) *string
- func Fn_ValueOfAll(parameterType *string, attribute *string) *[]*string
- func Lazy_List(producer IStableListProducer, options *LazyListValueOptions) *[]*string
- func Lazy_Number(producer IStableNumberProducer) *float64
- func Lazy_String(producer IStableStringProducer, options *LazyStringValueOptions) *string
- func Lazy_UncachedList(producer IListProducer, options *LazyListValueOptions) *[]*string
- func Lazy_UncachedNumber(producer INumberProducer) *float64
- func Lazy_UncachedString(producer IStringProducer, options *LazyStringValueOptions) *string
- func Names_NodeUniqueId(node constructs.Node) *string
- func Names_UniqueId(construct constructs.IConstruct) *string
- func Names_UniqueResourceName(construct constructs.IConstruct, options *UniqueResourceNameOptions) *string
- func NestedStack_IsConstruct(x interface{}) *bool
- func NestedStack_IsNestedStack(x interface{}) *bool
- func NestedStack_IsStack(x interface{}) *bool
- func NewApp_Override(a App, props *AppProps)
- func NewAssetManifestBuilder_Override(a AssetManifestBuilder)
- func NewAssetStaging_Override(a AssetStaging, scope constructs.Construct, id *string, ...)
- func NewBootstraplessSynthesizer_Override(b BootstraplessSynthesizer, props *BootstraplessSynthesizerProps)
- func NewCfnCodeDeployBlueGreenHook_Override(c CfnCodeDeployBlueGreenHook, scope constructs.Construct, id *string, ...)
- func NewCfnCondition_Override(c CfnCondition, scope constructs.Construct, id *string, ...)
- func NewCfnCustomResource_Override(c CfnCustomResource, scope constructs.Construct, id *string, ...)
- func NewCfnDynamicReference_Override(c CfnDynamicReference, service CfnDynamicReferenceService, key *string)
- func NewCfnElement_Override(c CfnElement, scope constructs.Construct, id *string)
- func NewCfnHookDefaultVersion_Override(c CfnHookDefaultVersion, scope constructs.Construct, id *string, ...)
- func NewCfnHookTypeConfig_Override(c CfnHookTypeConfig, scope constructs.Construct, id *string, ...)
- func NewCfnHookVersion_Override(c CfnHookVersion, scope constructs.Construct, id *string, ...)
- func NewCfnHook_Override(c CfnHook, scope constructs.Construct, id *string, props *CfnHookProps)
- func NewCfnJson_Override(c CfnJson, scope constructs.Construct, id *string, props *CfnJsonProps)
- func NewCfnMacro_Override(c CfnMacro, scope constructs.Construct, id *string, props *CfnMacroProps)
- func NewCfnMapping_Override(c CfnMapping, scope constructs.Construct, id *string, props *CfnMappingProps)
- func NewCfnModuleDefaultVersion_Override(c CfnModuleDefaultVersion, scope constructs.Construct, id *string, ...)
- func NewCfnModuleVersion_Override(c CfnModuleVersion, scope constructs.Construct, id *string, ...)
- func NewCfnOutput_Override(c CfnOutput, scope constructs.Construct, id *string, props *CfnOutputProps)
- func NewCfnParameter_Override(c CfnParameter, scope constructs.Construct, id *string, ...)
- func NewCfnPublicTypeVersion_Override(c CfnPublicTypeVersion, scope constructs.Construct, id *string, ...)
- func NewCfnPublisher_Override(c CfnPublisher, scope constructs.Construct, id *string, ...)
- func NewCfnRefElement_Override(c CfnRefElement, scope constructs.Construct, id *string)
- func NewCfnResourceDefaultVersion_Override(c CfnResourceDefaultVersion, scope constructs.Construct, id *string, ...)
- func NewCfnResourceVersion_Override(c CfnResourceVersion, scope constructs.Construct, id *string, ...)
- func NewCfnResource_Override(c CfnResource, scope constructs.Construct, id *string, props *CfnResourceProps)
- func NewCfnRule_Override(c CfnRule, scope constructs.Construct, id *string, props *CfnRuleProps)
- func NewCfnStackSet_Override(c CfnStackSet, scope constructs.Construct, id *string, props *CfnStackSetProps)
- func NewCfnStack_Override(c CfnStack, scope constructs.Construct, id *string, props *CfnStackProps)
- func NewCfnTypeActivation_Override(c CfnTypeActivation, scope constructs.Construct, id *string, ...)
- func NewCfnWaitConditionHandle_Override(c CfnWaitConditionHandle, scope constructs.Construct, id *string, ...)
- func NewCfnWaitCondition_Override(c CfnWaitCondition, scope constructs.Construct, id *string, ...)
- func NewCliCredentialsStackSynthesizer_Override(c CliCredentialsStackSynthesizer, props *CliCredentialsStackSynthesizerProps)
- func NewCustomResourceProvider_Override(c CustomResourceProvider, scope constructs.Construct, id *string, ...)
- func NewCustomResource_Override(c CustomResource, scope constructs.Construct, id *string, ...)
- func NewDefaultStackSynthesizer_Override(d DefaultStackSynthesizer, props *DefaultStackSynthesizerProps)
- func NewDefaultTokenResolver_Override(d DefaultTokenResolver, concat IFragmentConcatenator)
- func NewDockerBuildSecret_Override(d DockerBuildSecret)
- func NewDockerIgnoreStrategy_Override(d DockerIgnoreStrategy, absoluteRootPath *string, patterns *[]*string)
- func NewDockerImage_Override(d DockerImage, image *string, _imageHash *string)
- func NewFileSystem_Override(f FileSystem)
- func NewGitIgnoreStrategy_Override(g GitIgnoreStrategy, absoluteRootPath *string, patterns *[]*string)
- func NewGlobIgnoreStrategy_Override(g GlobIgnoreStrategy, absoluteRootPath *string, patterns *[]*string)
- func NewIgnoreStrategy_Override(i IgnoreStrategy)
- func NewIntrinsic_Override(i Intrinsic, value interface{}, options *IntrinsicProps)
- func NewLegacyStackSynthesizer_Override(l LegacyStackSynthesizer)
- func NewNestedStackSynthesizer_Override(n NestedStackSynthesizer, parentDeployment IStackSynthesizer)
- func NewNestedStack_Override(n NestedStack, scope constructs.Construct, id *string, props *NestedStackProps)
- func NewReference_Override(r Reference, value interface{}, target constructs.IConstruct, ...)
- func NewRemoveTag_Override(r RemoveTag, key *string, props *TagProps)
- func NewResource_Override(r Resource, scope constructs.Construct, id *string, props *ResourceProps)
- func NewScopedAws_Override(s ScopedAws, scope constructs.Construct)
- func NewSecretValue_Override(s SecretValue, protectedValue interface{}, options *IntrinsicProps)
- func NewStackSynthesizer_Override(s StackSynthesizer)
- func NewStack_Override(s Stack, scope constructs.Construct, id *string, props *StackProps)
- func NewStage_Override(s Stage, scope constructs.Construct, id *string, props *StageProps)
- func NewStringConcat_Override(s StringConcat)
- func NewTagManager_Override(t TagManager, tagType TagType, resourceTypeName *string, ...)
- func NewTag_Override(t Tag, key *string, value *string, props *TagProps)
- func NewTokenizedStringFragments_Override(t TokenizedStringFragments)
- func NewTreeInspector_Override(t TreeInspector)
- func NewValidationResult_Override(v ValidationResult, errorMessage *string, results ValidationResults)
- func NewValidationResults_Override(v ValidationResults, results *[]ValidationResult)
- func PhysicalName_GENERATE_IF_NEEDED() *string
- func Reference_IsReference(x interface{}) *bool
- func Resource_IsConstruct(x interface{}) *bool
- func Resource_IsOwnedResource(construct constructs.IConstruct) *bool
- func Resource_IsResource(construct constructs.IConstruct) *bool
- func SecretValue_IsSecretValue(x interface{}) *bool
- func Stack_IsConstruct(x interface{}) *bool
- func Stack_IsStack(x interface{}) *bool
- func Stage_IsConstruct(x interface{}) *bool
- func Stage_IsStage(x interface{}) *bool
- func TagManager_IsTaggable(construct interface{}) *bool
- func TagManager_IsTaggableV2(construct interface{}) *bool
- func Token_AsList(value interface{}, options *EncodingOptions) *[]*string
- func Token_AsNumber(value interface{}) *float64
- func Token_AsString(value interface{}, options *EncodingOptions) *string
- func Token_IsUnresolved(obj interface{}) *bool
- func Tokenization_IsResolvable(obj interface{}) *bool
- func Tokenization_Resolve(obj interface{}, options *ResolveOptions) interface{}
- func Tokenization_StringifyNumber(x *float64) *string
- type Annotations
- type App
- type AppProps
- type Arn
- type ArnComponents
- type ArnFormat
- type Aspects
- type AssetHashType
- type AssetManifestBuilder
- type AssetManifestDockerImageDestination
- type AssetManifestFileDestination
- type AssetOptions
- type AssetStaging
- type AssetStagingProps
- type Aws
- type BootstraplessSynthesizer
- type BootstraplessSynthesizerProps
- type BundlingFileAccess
- type BundlingOptions
- type BundlingOutput
- type CfnAutoScalingReplacingUpdate
- type CfnAutoScalingRollingUpdate
- type CfnAutoScalingScheduledAction
- type CfnCapabilities
- type CfnCodeDeployBlueGreenAdditionalOptions
- type CfnCodeDeployBlueGreenApplication
- type CfnCodeDeployBlueGreenApplicationTarget
- type CfnCodeDeployBlueGreenEcsAttributes
- type CfnCodeDeployBlueGreenHook
- type CfnCodeDeployBlueGreenHookProps
- type CfnCodeDeployBlueGreenLifecycleEventHooks
- type CfnCodeDeployLambdaAliasUpdate
- type CfnCondition
- type CfnConditionProps
- type CfnCreationPolicy
- type CfnCustomResource
- type CfnCustomResourceProps
- type CfnDeletionPolicy
- type CfnDynamicReference
- type CfnDynamicReferenceProps
- type CfnDynamicReferenceService
- type CfnElement
- type CfnHook
- type CfnHookDefaultVersion
- type CfnHookDefaultVersionProps
- type CfnHookProps
- type CfnHookTypeConfig
- type CfnHookTypeConfigProps
- type CfnHookVersion
- type CfnHookVersionProps
- type CfnHookVersion_LoggingConfigProperty
- type CfnJson
- type CfnJsonProps
- type CfnMacro
- type CfnMacroProps
- type CfnMapping
- type CfnMappingProps
- type CfnModuleDefaultVersion
- type CfnModuleDefaultVersionProps
- type CfnModuleVersion
- type CfnModuleVersionProps
- type CfnOutput
- type CfnOutputProps
- type CfnParameter
- type CfnParameterProps
- type CfnPublicTypeVersion
- type CfnPublicTypeVersionProps
- type CfnPublisher
- type CfnPublisherProps
- type CfnRefElement
- type CfnResource
- type CfnResourceAutoScalingCreationPolicy
- type CfnResourceDefaultVersion
- type CfnResourceDefaultVersionProps
- type CfnResourceProps
- type CfnResourceSignal
- type CfnResourceVersion
- type CfnResourceVersionProps
- type CfnResourceVersion_LoggingConfigProperty
- type CfnRule
- type CfnRuleAssertion
- type CfnRuleProps
- type CfnStack
- type CfnStackProps
- type CfnStackSet
- type CfnStackSetProps
- type CfnStackSet_AutoDeploymentProperty
- type CfnStackSet_DeploymentTargetsProperty
- type CfnStackSet_ManagedExecutionProperty
- type CfnStackSet_OperationPreferencesProperty
- type CfnStackSet_ParameterProperty
- type CfnStackSet_StackInstancesProperty
- type CfnStack_OutputProperty
- type CfnTag
- type CfnTrafficRoute
- type CfnTrafficRouting
- type CfnTrafficRoutingConfig
- type CfnTrafficRoutingTimeBasedCanary
- type CfnTrafficRoutingTimeBasedLinear
- type CfnTrafficRoutingType
- type CfnTypeActivation
- type CfnTypeActivationProps
- type CfnTypeActivation_LoggingConfigProperty
- type CfnUpdatePolicy
- type CfnWaitCondition
- type CfnWaitConditionHandle
- type CfnWaitConditionHandleProps
- type CfnWaitConditionProps
- type CliCredentialsStackSynthesizer
- type CliCredentialsStackSynthesizerProps
- type ContextProvider
- type CopyOptions
- type CustomResource
- type CustomResourceProps
- type CustomResourceProvider
- type CustomResourceProviderProps
- type CustomResourceProviderRuntime
- type DefaultStackSynthesizer
- type DefaultStackSynthesizerProps
- type DefaultTokenResolver
- type DockerBuildOptions
- type DockerBuildSecret
- type DockerCacheOption
- type DockerIgnoreStrategy
- func DockerIgnoreStrategy_Docker(absoluteRootPath *string, patterns *[]*string) DockerIgnoreStrategy
- func GitIgnoreStrategy_Docker(absoluteRootPath *string, patterns *[]*string) DockerIgnoreStrategy
- func GlobIgnoreStrategy_Docker(absoluteRootPath *string, patterns *[]*string) DockerIgnoreStrategy
- func IgnoreStrategy_Docker(absoluteRootPath *string, patterns *[]*string) DockerIgnoreStrategy
- func NewDockerIgnoreStrategy(absoluteRootPath *string, patterns *[]*string) DockerIgnoreStrategy
- type DockerImage
- type DockerImageAssetLocation
- type DockerImageAssetSource
- type DockerRunOptions
- type DockerVolume
- type DockerVolumeConsistency
- type Duration
- type EncodingOptions
- type Environment
- type Expiration
- type ExportValueOptions
- type FeatureFlags
- type FileAssetLocation
- type FileAssetPackaging
- type FileAssetSource
- type FileCopyOptions
- type FileFingerprintOptions
- type FileSystem
- type FingerprintOptions
- type Fn
- type GetContextKeyOptions
- type GetContextKeyResult
- type GetContextValueOptions
- type GetContextValueResult
- type GitIgnoreStrategy
- func DockerIgnoreStrategy_Git(absoluteRootPath *string, patterns *[]*string) GitIgnoreStrategy
- func GitIgnoreStrategy_Git(absoluteRootPath *string, patterns *[]*string) GitIgnoreStrategy
- func GlobIgnoreStrategy_Git(absoluteRootPath *string, patterns *[]*string) GitIgnoreStrategy
- func IgnoreStrategy_Git(absoluteRootPath *string, patterns *[]*string) GitIgnoreStrategy
- func NewGitIgnoreStrategy(absoluteRootPath *string, patterns *[]*string) GitIgnoreStrategy
- type GlobIgnoreStrategy
- func DockerIgnoreStrategy_Glob(absoluteRootPath *string, patterns *[]*string) GlobIgnoreStrategy
- func GitIgnoreStrategy_Glob(absoluteRootPath *string, patterns *[]*string) GlobIgnoreStrategy
- func GlobIgnoreStrategy_Glob(absoluteRootPath *string, patterns *[]*string) GlobIgnoreStrategy
- func IgnoreStrategy_Glob(absoluteRootPath *string, patterns *[]*string) GlobIgnoreStrategy
- func NewGlobIgnoreStrategy(absoluteRootPath *string, patterns *[]*string) GlobIgnoreStrategy
- type IAnyProducer
- type IAspect
- type IAsset
- type IBoundStackSynthesizer
- type ICfnConditionExpression
- type ICfnResourceOptions
- type ICfnRuleConditionExpression
- func Fn_ConditionAnd(conditions ...ICfnConditionExpression) ICfnRuleConditionExpression
- func Fn_ConditionContains(listOfStrings *[]*string, value *string) ICfnRuleConditionExpression
- func Fn_ConditionEachMemberEquals(listOfStrings *[]*string, value *string) ICfnRuleConditionExpression
- func Fn_ConditionEachMemberIn(stringsToCheck *[]*string, stringsToMatch *[]*string) ICfnRuleConditionExpression
- func Fn_ConditionEquals(lhs interface{}, rhs interface{}) ICfnRuleConditionExpression
- func Fn_ConditionIf(conditionId *string, valueIfTrue interface{}, valueIfFalse interface{}) ICfnRuleConditionExpression
- func Fn_ConditionNot(condition ICfnConditionExpression) ICfnRuleConditionExpression
- func Fn_ConditionOr(conditions ...ICfnConditionExpression) ICfnRuleConditionExpression
- type IFragmentConcatenator
- type IInspectable
- type IListProducer
- type ILocalBundling
- type INumberProducer
- type IPolicyValidationContextBeta1
- type IPolicyValidationPluginBeta1
- type IPostProcessor
- type IResolvable
- func Fn_GetAtt(logicalNameOfResource *string, attributeName *string) IResolvable
- func Fn_Transform(macroName *string, parameters *map[string]interface{}) IResolvable
- func Lazy_Any(producer IStableAnyProducer, options *LazyAnyValueOptions) IResolvable
- func Lazy_UncachedAny(producer IAnyProducer, options *LazyAnyValueOptions) IResolvable
- func Token_AsAny(value interface{}) IResolvable
- func Tokenization_Reverse(x interface{}, options *ReverseOptions) IResolvable
- func Tokenization_ReverseCompleteString(s *string) IResolvable
- func Tokenization_ReverseList(l *[]*string) IResolvable
- func Tokenization_ReverseNumber(n *float64) IResolvable
- type IResolveContext
- type IResource
- type IReusableStackSynthesizer
- type IStableAnyProducer
- type IStableListProducer
- type IStableNumberProducer
- type IStableStringProducer
- type IStackSynthesizer
- type IStringProducer
- type ISynthesisSession
- type ITaggable
- type ITaggableV2
- type ITemplateOptions
- type ITokenMapper
- type ITokenResolver
- type IgnoreMode
- type IgnoreStrategy
- func DockerIgnoreStrategy_FromCopyOptions(options *CopyOptions, absoluteRootPath *string) IgnoreStrategy
- func GitIgnoreStrategy_FromCopyOptions(options *CopyOptions, absoluteRootPath *string) IgnoreStrategy
- func GlobIgnoreStrategy_FromCopyOptions(options *CopyOptions, absoluteRootPath *string) IgnoreStrategy
- func IgnoreStrategy_FromCopyOptions(options *CopyOptions, absoluteRootPath *string) IgnoreStrategy
- type Intrinsic
- type IntrinsicProps
- type JsonNull
- type Lazy
- type LazyAnyValueOptions
- type LazyListValueOptions
- type LazyStringValueOptions
- type LegacyStackSynthesizer
- type Names
- type NestedStack
- type NestedStackProps
- type NestedStackSynthesizer
- type PermissionsBoundary
- type PermissionsBoundaryBindOptions
- type PhysicalName
- type PolicyValidationPluginReportBeta1
- type PolicyValidationReportStatusBeta1
- type PolicyViolatingResourceBeta1
- type PolicyViolationBeta1
- type Reference
- type RemovalPolicy
- type RemovalPolicyOptions
- type RemoveTag
- type ResolutionTypeHint
- type ResolveChangeContextOptions
- type ResolveOptions
- type Resource
- type ResourceEnvironment
- type ResourceProps
- type ReverseOptions
- type RoleOptions
- type ScopedAws
- type SecretValue
- func NewSecretValue(protectedValue interface{}, options *IntrinsicProps) SecretValue
- func SecretValue_CfnDynamicReference(ref CfnDynamicReference) SecretValue
- func SecretValue_CfnParameter(param CfnParameter) SecretValue
- func SecretValue_PlainText(secret *string) SecretValue
- func SecretValue_ResourceAttribute(attr *string) SecretValue
- func SecretValue_SecretsManager(secretId *string, options *SecretsManagerSecretOptions) SecretValue
- func SecretValue_SsmSecure(parameterName *string, version *string) SecretValue
- func SecretValue_UnsafePlainText(secret *string) SecretValue
- type SecretsManagerSecretOptions
- type Size
- type SizeConversionOptions
- type SizeRoundingBehavior
- type Stack
- type StackProps
- type StackSynthesizer
- type Stage
- type StageProps
- type StageSynthesisOptions
- type StringConcat
- type SymlinkFollowMode
- type SynthesizeStackArtifactOptions
- type Tag
- type TagManager
- type TagManagerOptions
- type TagProps
- type TagType
- type Tags
- type TimeConversionOptions
- type TimeZone
- func TimeZone_AFRICA_ABIDJAN() TimeZone
- func TimeZone_AFRICA_ALGIERS() TimeZone
- func TimeZone_AFRICA_BISSAU() TimeZone
- func TimeZone_AFRICA_CAIRO() TimeZone
- func TimeZone_AFRICA_CASABLANCA() TimeZone
- func TimeZone_AFRICA_CEUTA() TimeZone
- func TimeZone_AFRICA_EL_AAIUN() TimeZone
- func TimeZone_AFRICA_JOHANNESBURG() TimeZone
- func TimeZone_AFRICA_JUBA() TimeZone
- func TimeZone_AFRICA_KHARTOUM() TimeZone
- func TimeZone_AFRICA_LAGOS() TimeZone
- func TimeZone_AFRICA_MAPUTO() TimeZone
- func TimeZone_AFRICA_MONROVIA() TimeZone
- func TimeZone_AFRICA_NAIROBI() TimeZone
- func TimeZone_AFRICA_NDJAMENA() TimeZone
- func TimeZone_AFRICA_SAO_TOME() TimeZone
- func TimeZone_AFRICA_TRIPOLI() TimeZone
- func TimeZone_AFRICA_TUNIS() TimeZone
- func TimeZone_AFRICA_WINDHOEK() TimeZone
- func TimeZone_AMERICA_ADAK() TimeZone
- func TimeZone_AMERICA_ANCHORAGE() TimeZone
- func TimeZone_AMERICA_ARAGUAINA() TimeZone
- func TimeZone_AMERICA_ARGENTINA_BUENOS_AIRES() TimeZone
- func TimeZone_AMERICA_ARGENTINA_CATAMARCA() TimeZone
- func TimeZone_AMERICA_ARGENTINA_CORDOBA() TimeZone
- func TimeZone_AMERICA_ARGENTINA_JUJUY() TimeZone
- func TimeZone_AMERICA_ARGENTINA_LA_RIOJA() TimeZone
- func TimeZone_AMERICA_ARGENTINA_MENDOZA() TimeZone
- func TimeZone_AMERICA_ARGENTINA_RIO_GALLEGOS() TimeZone
- func TimeZone_AMERICA_ARGENTINA_SALTA() TimeZone
- func TimeZone_AMERICA_ARGENTINA_SAN_JUAN() TimeZone
- func TimeZone_AMERICA_ARGENTINA_SAN_LUIS() TimeZone
- func TimeZone_AMERICA_ARGENTINA_TUCUMAN() TimeZone
- func TimeZone_AMERICA_ARGENTINA_USHUAIA() TimeZone
- func TimeZone_AMERICA_ASUNCION() TimeZone
- func TimeZone_AMERICA_BAHIA() TimeZone
- func TimeZone_AMERICA_BAHIA_BANDERAS() TimeZone
- func TimeZone_AMERICA_BARBADOS() TimeZone
- func TimeZone_AMERICA_BELEM() TimeZone
- func TimeZone_AMERICA_BELIZE() TimeZone
- func TimeZone_AMERICA_BOA_VISTA() TimeZone
- func TimeZone_AMERICA_BOGOTA() TimeZone
- func TimeZone_AMERICA_BOISE() TimeZone
- func TimeZone_AMERICA_CAMBRIDGE_BAY() TimeZone
- func TimeZone_AMERICA_CAMPO_GRANDE() TimeZone
- func TimeZone_AMERICA_CANCUN() TimeZone
- func TimeZone_AMERICA_CARACAS() TimeZone
- func TimeZone_AMERICA_CAYENNE() TimeZone
- func TimeZone_AMERICA_CHICAGO() TimeZone
- func TimeZone_AMERICA_CHIHUAHUA() TimeZone
- func TimeZone_AMERICA_CIUDAD_JUAREZ() TimeZone
- func TimeZone_AMERICA_COSTA_RICA() TimeZone
- func TimeZone_AMERICA_CUIABA() TimeZone
- func TimeZone_AMERICA_DANMARKSHAVN() TimeZone
- func TimeZone_AMERICA_DAWSON() TimeZone
- func TimeZone_AMERICA_DAWSON_CREEK() TimeZone
- func TimeZone_AMERICA_DENVER() TimeZone
- func TimeZone_AMERICA_DETROIT() TimeZone
- func TimeZone_AMERICA_EDMONTON() TimeZone
- func TimeZone_AMERICA_EIRUNEPE() TimeZone
- func TimeZone_AMERICA_EL_SALVADOR() TimeZone
- func TimeZone_AMERICA_FORTALEZA() TimeZone
- func TimeZone_AMERICA_FORT_NELSON() TimeZone
- func TimeZone_AMERICA_GLACE_BAY() TimeZone
- func TimeZone_AMERICA_GOOSE_BAY() TimeZone
- func TimeZone_AMERICA_GRAND_TURK() TimeZone
- func TimeZone_AMERICA_GUATEMALA() TimeZone
- func TimeZone_AMERICA_GUAYAQUIL() TimeZone
- func TimeZone_AMERICA_GUYANA() TimeZone
- func TimeZone_AMERICA_HALIFAX() TimeZone
- func TimeZone_AMERICA_HAVANA() TimeZone
- func TimeZone_AMERICA_HERMOSILLO() TimeZone
- func TimeZone_AMERICA_INDIANA_INDIANAPOLIS() TimeZone
- func TimeZone_AMERICA_INDIANA_KNOX() TimeZone
- func TimeZone_AMERICA_INDIANA_MARENGO() TimeZone
- func TimeZone_AMERICA_INDIANA_PETERSBURG() TimeZone
- func TimeZone_AMERICA_INDIANA_TELL_CITY() TimeZone
- func TimeZone_AMERICA_INDIANA_VEVAY() TimeZone
- func TimeZone_AMERICA_INDIANA_VINCENNES() TimeZone
- func TimeZone_AMERICA_INDIANA_WINAMAC() TimeZone
- func TimeZone_AMERICA_INUVIK() TimeZone
- func TimeZone_AMERICA_IQALUIT() TimeZone
- func TimeZone_AMERICA_JAMAICA() TimeZone
- func TimeZone_AMERICA_JUNEAU() TimeZone
- func TimeZone_AMERICA_KENTUCKY_LOUISVILLE() TimeZone
- func TimeZone_AMERICA_KENTUCKY_MONTICELLO() TimeZone
- func TimeZone_AMERICA_LA_PAZ() TimeZone
- func TimeZone_AMERICA_LIMA() TimeZone
- func TimeZone_AMERICA_LOS_ANGELES() TimeZone
- func TimeZone_AMERICA_MACEIO() TimeZone
- func TimeZone_AMERICA_MANAGUA() TimeZone
- func TimeZone_AMERICA_MANAUS() TimeZone
- func TimeZone_AMERICA_MARTINIQUE() TimeZone
- func TimeZone_AMERICA_MATAMOROS() TimeZone
- func TimeZone_AMERICA_MAZATLAN() TimeZone
- func TimeZone_AMERICA_MENOMINEE() TimeZone
- func TimeZone_AMERICA_MERIDA() TimeZone
- func TimeZone_AMERICA_METLAKATLA() TimeZone
- func TimeZone_AMERICA_MEXICO_CITY() TimeZone
- func TimeZone_AMERICA_MIQUELON() TimeZone
- func TimeZone_AMERICA_MONCTON() TimeZone
- func TimeZone_AMERICA_MONTERREY() TimeZone
- func TimeZone_AMERICA_MONTEVIDEO() TimeZone
- func TimeZone_AMERICA_NEW_YORK() TimeZone
- func TimeZone_AMERICA_NOME() TimeZone
- func TimeZone_AMERICA_NORONHA() TimeZone
- func TimeZone_AMERICA_NORTH_DAKOTA_BEULAH() TimeZone
- func TimeZone_AMERICA_NORTH_DAKOTA_CENTER() TimeZone
- func TimeZone_AMERICA_NORTH_DAKOTA_NEW_SALEM() TimeZone
- func TimeZone_AMERICA_NUUK() TimeZone
- func TimeZone_AMERICA_OJINAGA() TimeZone
- func TimeZone_AMERICA_PANAMA() TimeZone
- func TimeZone_AMERICA_PARAMARIBO() TimeZone
- func TimeZone_AMERICA_PHOENIX() TimeZone
- func TimeZone_AMERICA_PORTO_VELHO() TimeZone
- func TimeZone_AMERICA_PORT_MINUS_AU_MINUS_PRINCE() TimeZone
- func TimeZone_AMERICA_PUERTO_RICO() TimeZone
- func TimeZone_AMERICA_PUNTA_ARENAS() TimeZone
- func TimeZone_AMERICA_RANKIN_INLET() TimeZone
- func TimeZone_AMERICA_RECIFE() TimeZone
- func TimeZone_AMERICA_REGINA() TimeZone
- func TimeZone_AMERICA_RESOLUTE() TimeZone
- func TimeZone_AMERICA_RIO_BRANCO() TimeZone
- func TimeZone_AMERICA_SANTAREM() TimeZone
- func TimeZone_AMERICA_SANTIAGO() TimeZone
- func TimeZone_AMERICA_SANTO_DOMINGO() TimeZone
- func TimeZone_AMERICA_SAO_PAULO() TimeZone
- func TimeZone_AMERICA_SCORESBYSUND() TimeZone
- func TimeZone_AMERICA_SITKA() TimeZone
- func TimeZone_AMERICA_ST_JOHNS() TimeZone
- func TimeZone_AMERICA_SWIFT_CURRENT() TimeZone
- func TimeZone_AMERICA_TEGUCIGALPA() TimeZone
- func TimeZone_AMERICA_THULE() TimeZone
- func TimeZone_AMERICA_TIJUANA() TimeZone
- func TimeZone_AMERICA_TORONTO() TimeZone
- func TimeZone_AMERICA_VANCOUVER() TimeZone
- func TimeZone_AMERICA_WHITEHORSE() TimeZone
- func TimeZone_AMERICA_WINNIPEG() TimeZone
- func TimeZone_AMERICA_YAKUTAT() TimeZone
- func TimeZone_AMERICA_YELLOWKNIFE() TimeZone
- func TimeZone_ANTARCTICA_CASEY() TimeZone
- func TimeZone_ANTARCTICA_DAVIS() TimeZone
- func TimeZone_ANTARCTICA_MACQUARIE() TimeZone
- func TimeZone_ANTARCTICA_MAWSON() TimeZone
- func TimeZone_ANTARCTICA_PALMER() TimeZone
- func TimeZone_ANTARCTICA_ROTHERA() TimeZone
- func TimeZone_ANTARCTICA_TROLL() TimeZone
- func TimeZone_ASIA_ALMATY() TimeZone
- func TimeZone_ASIA_AMMAN() TimeZone
- func TimeZone_ASIA_ANADYR() TimeZone
- func TimeZone_ASIA_AQTAU() TimeZone
- func TimeZone_ASIA_AQTOBE() TimeZone
- func TimeZone_ASIA_ASHGABAT() TimeZone
- func TimeZone_ASIA_ATYRAU() TimeZone
- func TimeZone_ASIA_BAGHDAD() TimeZone
- func TimeZone_ASIA_BAKU() TimeZone
- func TimeZone_ASIA_BANGKOK() TimeZone
- func TimeZone_ASIA_BARNAUL() TimeZone
- func TimeZone_ASIA_BEIRUT() TimeZone
- func TimeZone_ASIA_BISHKEK() TimeZone
- func TimeZone_ASIA_CHITA() TimeZone
- func TimeZone_ASIA_CHOIBALSAN() TimeZone
- func TimeZone_ASIA_COLOMBO() TimeZone
- func TimeZone_ASIA_DAMASCUS() TimeZone
- func TimeZone_ASIA_DHAKA() TimeZone
- func TimeZone_ASIA_DILI() TimeZone
- func TimeZone_ASIA_DUBAI() TimeZone
- func TimeZone_ASIA_DUSHANBE() TimeZone
- func TimeZone_ASIA_FAMAGUSTA() TimeZone
- func TimeZone_ASIA_GAZA() TimeZone
- func TimeZone_ASIA_HEBRON() TimeZone
- func TimeZone_ASIA_HONG_KONG() TimeZone
- func TimeZone_ASIA_HOVD() TimeZone
- func TimeZone_ASIA_HO_CHI_MINH() TimeZone
- func TimeZone_ASIA_IRKUTSK() TimeZone
- func TimeZone_ASIA_JAKARTA() TimeZone
- func TimeZone_ASIA_JAYAPURA() TimeZone
- func TimeZone_ASIA_JERUSALEM() TimeZone
- func TimeZone_ASIA_KABUL() TimeZone
- func TimeZone_ASIA_KAMCHATKA() TimeZone
- func TimeZone_ASIA_KARACHI() TimeZone
- func TimeZone_ASIA_KATHMANDU() TimeZone
- func TimeZone_ASIA_KHANDYGA() TimeZone
- func TimeZone_ASIA_KOLKATA() TimeZone
- func TimeZone_ASIA_KRASNOYARSK() TimeZone
- func TimeZone_ASIA_KUCHING() TimeZone
- func TimeZone_ASIA_MACAU() TimeZone
- func TimeZone_ASIA_MAGADAN() TimeZone
- func TimeZone_ASIA_MAKASSAR() TimeZone
- func TimeZone_ASIA_MANILA() TimeZone
- func TimeZone_ASIA_NICOSIA() TimeZone
- func TimeZone_ASIA_NOVOKUZNETSK() TimeZone
- func TimeZone_ASIA_NOVOSIBIRSK() TimeZone
- func TimeZone_ASIA_OMSK() TimeZone
- func TimeZone_ASIA_ORAL() TimeZone
- func TimeZone_ASIA_PONTIANAK() TimeZone
- func TimeZone_ASIA_PYONGYANG() TimeZone
- func TimeZone_ASIA_QATAR() TimeZone
- func TimeZone_ASIA_QOSTANAY() TimeZone
- func TimeZone_ASIA_QYZYLORDA() TimeZone
- func TimeZone_ASIA_RIYADH() TimeZone
- func TimeZone_ASIA_SAKHALIN() TimeZone
- func TimeZone_ASIA_SAMARKAND() TimeZone
- func TimeZone_ASIA_SEOUL() TimeZone
- func TimeZone_ASIA_SHANGHAI() TimeZone
- func TimeZone_ASIA_SINGAPORE() TimeZone
- func TimeZone_ASIA_SREDNEKOLYMSK() TimeZone
- func TimeZone_ASIA_TAIPEI() TimeZone
- func TimeZone_ASIA_TASHKENT() TimeZone
- func TimeZone_ASIA_TBILISI() TimeZone
- func TimeZone_ASIA_TEHRAN() TimeZone
- func TimeZone_ASIA_THIMPHU() TimeZone
- func TimeZone_ASIA_TOKYO() TimeZone
- func TimeZone_ASIA_TOMSK() TimeZone
- func TimeZone_ASIA_ULAANBAATAR() TimeZone
- func TimeZone_ASIA_URUMQI() TimeZone
- func TimeZone_ASIA_UST_MINUS_NERA() TimeZone
- func TimeZone_ASIA_VLADIVOSTOK() TimeZone
- func TimeZone_ASIA_YAKUTSK() TimeZone
- func TimeZone_ASIA_YANGON() TimeZone
- func TimeZone_ASIA_YEKATERINBURG() TimeZone
- func TimeZone_ASIA_YEREVAN() TimeZone
- func TimeZone_ATLANTIC_AZORES() TimeZone
- func TimeZone_ATLANTIC_BERMUDA() TimeZone
- func TimeZone_ATLANTIC_CANARY() TimeZone
- func TimeZone_ATLANTIC_CAPE_VERDE() TimeZone
- func TimeZone_ATLANTIC_FAROE() TimeZone
- func TimeZone_ATLANTIC_MADEIRA() TimeZone
- func TimeZone_ATLANTIC_SOUTH_GEORGIA() TimeZone
- func TimeZone_ATLANTIC_STANLEY() TimeZone
- func TimeZone_AUSTRALIA_ADELAIDE() TimeZone
- func TimeZone_AUSTRALIA_BRISBANE() TimeZone
- func TimeZone_AUSTRALIA_BROKEN_HILL() TimeZone
- func TimeZone_AUSTRALIA_DARWIN() TimeZone
- func TimeZone_AUSTRALIA_EUCLA() TimeZone
- func TimeZone_AUSTRALIA_HOBART() TimeZone
- func TimeZone_AUSTRALIA_LINDEMAN() TimeZone
- func TimeZone_AUSTRALIA_LORD_HOWE() TimeZone
- func TimeZone_AUSTRALIA_MELBOURNE() TimeZone
- func TimeZone_AUSTRALIA_PERTH() TimeZone
- func TimeZone_AUSTRALIA_SYDNEY() TimeZone
- func TimeZone_CET() TimeZone
- func TimeZone_CST6CDT() TimeZone
- func TimeZone_EET() TimeZone
- func TimeZone_EST() TimeZone
- func TimeZone_EST5EDT() TimeZone
- func TimeZone_ETC_GMT() TimeZone
- func TimeZone_ETC_GMT_MINUS_1() TimeZone
- func TimeZone_ETC_GMT_MINUS_10() TimeZone
- func TimeZone_ETC_GMT_MINUS_11() TimeZone
- func TimeZone_ETC_GMT_MINUS_12() TimeZone
- func TimeZone_ETC_GMT_MINUS_13() TimeZone
- func TimeZone_ETC_GMT_MINUS_14() TimeZone
- func TimeZone_ETC_GMT_MINUS_2() TimeZone
- func TimeZone_ETC_GMT_MINUS_3() TimeZone
- func TimeZone_ETC_GMT_MINUS_4() TimeZone
- func TimeZone_ETC_GMT_MINUS_5() TimeZone
- func TimeZone_ETC_GMT_MINUS_6() TimeZone
- func TimeZone_ETC_GMT_MINUS_7() TimeZone
- func TimeZone_ETC_GMT_MINUS_8() TimeZone
- func TimeZone_ETC_GMT_MINUS_9() TimeZone
- func TimeZone_ETC_GMT_PLUS_1() TimeZone
- func TimeZone_ETC_GMT_PLUS_10() TimeZone
- func TimeZone_ETC_GMT_PLUS_11() TimeZone
- func TimeZone_ETC_GMT_PLUS_12() TimeZone
- func TimeZone_ETC_GMT_PLUS_2() TimeZone
- func TimeZone_ETC_GMT_PLUS_3() TimeZone
- func TimeZone_ETC_GMT_PLUS_4() TimeZone
- func TimeZone_ETC_GMT_PLUS_5() TimeZone
- func TimeZone_ETC_GMT_PLUS_6() TimeZone
- func TimeZone_ETC_GMT_PLUS_7() TimeZone
- func TimeZone_ETC_GMT_PLUS_8() TimeZone
- func TimeZone_ETC_GMT_PLUS_9() TimeZone
- func TimeZone_ETC_UTC() TimeZone
- func TimeZone_EUROPE_ANDORRA() TimeZone
- func TimeZone_EUROPE_ASTRAKHAN() TimeZone
- func TimeZone_EUROPE_ATHENS() TimeZone
- func TimeZone_EUROPE_BELGRADE() TimeZone
- func TimeZone_EUROPE_BERLIN() TimeZone
- func TimeZone_EUROPE_BRUSSELS() TimeZone
- func TimeZone_EUROPE_BUCHAREST() TimeZone
- func TimeZone_EUROPE_BUDAPEST() TimeZone
- func TimeZone_EUROPE_CHISINAU() TimeZone
- func TimeZone_EUROPE_DUBLIN() TimeZone
- func TimeZone_EUROPE_GIBRALTAR() TimeZone
- func TimeZone_EUROPE_HELSINKI() TimeZone
- func TimeZone_EUROPE_ISTANBUL() TimeZone
- func TimeZone_EUROPE_KALININGRAD() TimeZone
- func TimeZone_EUROPE_KIROV() TimeZone
- func TimeZone_EUROPE_KYIV() TimeZone
- func TimeZone_EUROPE_LISBON() TimeZone
- func TimeZone_EUROPE_LONDON() TimeZone
- func TimeZone_EUROPE_MADRID() TimeZone
- func TimeZone_EUROPE_MALTA() TimeZone
- func TimeZone_EUROPE_MINSK() TimeZone
- func TimeZone_EUROPE_MOSCOW() TimeZone
- func TimeZone_EUROPE_PARIS() TimeZone
- func TimeZone_EUROPE_PRAGUE() TimeZone
- func TimeZone_EUROPE_RIGA() TimeZone
- func TimeZone_EUROPE_ROME() TimeZone
- func TimeZone_EUROPE_SAMARA() TimeZone
- func TimeZone_EUROPE_SARATOV() TimeZone
- func TimeZone_EUROPE_SIMFEROPOL() TimeZone
- func TimeZone_EUROPE_SOFIA() TimeZone
- func TimeZone_EUROPE_TALLINN() TimeZone
- func TimeZone_EUROPE_TIRANE() TimeZone
- func TimeZone_EUROPE_ULYANOVSK() TimeZone
- func TimeZone_EUROPE_VIENNA() TimeZone
- func TimeZone_EUROPE_VILNIUS() TimeZone
- func TimeZone_EUROPE_VOLGOGRAD() TimeZone
- func TimeZone_EUROPE_WARSAW() TimeZone
- func TimeZone_EUROPE_ZURICH() TimeZone
- func TimeZone_FACTORY() TimeZone
- func TimeZone_HST() TimeZone
- func TimeZone_INDIAN_CHAGOS() TimeZone
- func TimeZone_INDIAN_MALDIVES() TimeZone
- func TimeZone_INDIAN_MAURITIUS() TimeZone
- func TimeZone_MET() TimeZone
- func TimeZone_MST() TimeZone
- func TimeZone_MST7MDT() TimeZone
- func TimeZone_Of(timezoneName *string) TimeZone
- func TimeZone_PACIFIC_APIA() TimeZone
- func TimeZone_PACIFIC_AUCKLAND() TimeZone
- func TimeZone_PACIFIC_BOUGAINVILLE() TimeZone
- func TimeZone_PACIFIC_CHATHAM() TimeZone
- func TimeZone_PACIFIC_EASTER() TimeZone
- func TimeZone_PACIFIC_EFATE() TimeZone
- func TimeZone_PACIFIC_FAKAOFO() TimeZone
- func TimeZone_PACIFIC_FIJI() TimeZone
- func TimeZone_PACIFIC_GALAPAGOS() TimeZone
- func TimeZone_PACIFIC_GAMBIER() TimeZone
- func TimeZone_PACIFIC_GUADALCANAL() TimeZone
- func TimeZone_PACIFIC_GUAM() TimeZone
- func TimeZone_PACIFIC_HONOLULU() TimeZone
- func TimeZone_PACIFIC_KANTON() TimeZone
- func TimeZone_PACIFIC_KIRITIMATI() TimeZone
- func TimeZone_PACIFIC_KOSRAE() TimeZone
- func TimeZone_PACIFIC_KWAJALEIN() TimeZone
- func TimeZone_PACIFIC_MARQUESAS() TimeZone
- func TimeZone_PACIFIC_NAURU() TimeZone
- func TimeZone_PACIFIC_NIUE() TimeZone
- func TimeZone_PACIFIC_NORFOLK() TimeZone
- func TimeZone_PACIFIC_NOUMEA() TimeZone
- func TimeZone_PACIFIC_PAGO_PAGO() TimeZone
- func TimeZone_PACIFIC_PALAU() TimeZone
- func TimeZone_PACIFIC_PITCAIRN() TimeZone
- func TimeZone_PACIFIC_PORT_MORESBY() TimeZone
- func TimeZone_PACIFIC_RAROTONGA() TimeZone
- func TimeZone_PACIFIC_TAHITI() TimeZone
- func TimeZone_PACIFIC_TARAWA() TimeZone
- func TimeZone_PACIFIC_TONGATAPU() TimeZone
- func TimeZone_PST8PDT() TimeZone
- func TimeZone_WET() TimeZone
- type Token
- type TokenComparison
- type Tokenization
- type TokenizedStringFragments
- type TreeInspector
- type UniqueResourceNameOptions
- type ValidationResult
- type ValidationResults
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func App_IsApp ¶
func App_IsApp(obj interface{}) *bool
Checks if an object is an instance of the `App` class.
Returns: `true` if `obj` is an `App`.
func App_IsConstruct ¶
func App_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.
Returns: true if `x` is an object created from a class which extends `Construct`.
func App_IsStage ¶
func App_IsStage(x interface{}) *bool
Test whether the given construct is a stage.
func Arn_ExtractResourceName ¶
Extract the full resource name from an ARN.
Necessary for resource names (paths) that may contain the separator, like `arn:aws:iam::111111111111:role/path/to/role/name`.
Only works if we statically know the expected `resourceType` beforehand, since we're going to use that to split the string on ':<resourceType>/' (and take the right-hand side).
We can't extract the 'resourceType' from the ARN at hand, because CloudFormation Expressions only allow literals in the 'separator' argument to `{ Fn::Split }`, and so it can't be `{ Fn::Select: [5, { Fn::Split: [':', ARN] }}`.
Only necessary for ARN formats for which the type-name separator is `/`.
func Arn_Format ¶
func Arn_Format(components *ArnComponents, stack Stack) *string
Creates an ARN from components.
If `partition`, `region` or `account` are not specified, the stack's partition, region and account will be used.
If any component is the empty string, an empty string will be inserted into the generated ARN at the location that component corresponds to.
The ARN will be formatted as follows:
arn:{partition}:{service}:{region}:{account}:{resource}{sep}{resource-name}
The required ARN pieces that are omitted will be taken from the stack that the 'scope' is attached to. If all ARN pieces are supplied, the supplied scope can be 'undefined'.
func AssetStaging_BUNDLING_INPUT_DIR ¶
func AssetStaging_BUNDLING_INPUT_DIR() *string
func AssetStaging_BUNDLING_OUTPUT_DIR ¶
func AssetStaging_BUNDLING_OUTPUT_DIR() *string
func AssetStaging_ClearAssetHashCache ¶
func AssetStaging_ClearAssetHashCache()
Clears the asset hash cache.
func AssetStaging_IsConstruct ¶
func AssetStaging_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.
Returns: true if `x` is an object created from a class which extends `Construct`.
func Aws_ACCOUNT_ID ¶
func Aws_ACCOUNT_ID() *string
func Aws_NOTIFICATION_ARNS ¶
func Aws_NOTIFICATION_ARNS() *[]*string
func Aws_NO_VALUE ¶
func Aws_NO_VALUE() *string
func Aws_PARTITION ¶
func Aws_PARTITION() *string
func Aws_REGION ¶
func Aws_REGION() *string
func Aws_STACK_ID ¶
func Aws_STACK_ID() *string
func Aws_STACK_NAME ¶
func Aws_STACK_NAME() *string
func Aws_URL_SUFFIX ¶
func Aws_URL_SUFFIX() *string
func BootstraplessSynthesizer_DEFAULT_BOOTSTRAP_STACK_VERSION_SSM_PARAMETER ¶
func BootstraplessSynthesizer_DEFAULT_BOOTSTRAP_STACK_VERSION_SSM_PARAMETER() *string
func BootstraplessSynthesizer_DEFAULT_CLOUDFORMATION_ROLE_ARN ¶
func BootstraplessSynthesizer_DEFAULT_CLOUDFORMATION_ROLE_ARN() *string
func BootstraplessSynthesizer_DEFAULT_DEPLOY_ROLE_ARN ¶
func BootstraplessSynthesizer_DEFAULT_DEPLOY_ROLE_ARN() *string
func BootstraplessSynthesizer_DEFAULT_DOCKER_ASSET_PREFIX ¶
func BootstraplessSynthesizer_DEFAULT_DOCKER_ASSET_PREFIX() *string
func BootstraplessSynthesizer_DEFAULT_FILE_ASSETS_BUCKET_NAME ¶
func BootstraplessSynthesizer_DEFAULT_FILE_ASSETS_BUCKET_NAME() *string
func BootstraplessSynthesizer_DEFAULT_FILE_ASSET_KEY_ARN_EXPORT_NAME ¶
func BootstraplessSynthesizer_DEFAULT_FILE_ASSET_KEY_ARN_EXPORT_NAME() *string
func BootstraplessSynthesizer_DEFAULT_FILE_ASSET_PREFIX ¶
func BootstraplessSynthesizer_DEFAULT_FILE_ASSET_PREFIX() *string
func BootstraplessSynthesizer_DEFAULT_FILE_ASSET_PUBLISHING_ROLE_ARN ¶
func BootstraplessSynthesizer_DEFAULT_FILE_ASSET_PUBLISHING_ROLE_ARN() *string
func BootstraplessSynthesizer_DEFAULT_IMAGE_ASSETS_REPOSITORY_NAME ¶
func BootstraplessSynthesizer_DEFAULT_IMAGE_ASSETS_REPOSITORY_NAME() *string
func BootstraplessSynthesizer_DEFAULT_IMAGE_ASSET_PUBLISHING_ROLE_ARN ¶
func BootstraplessSynthesizer_DEFAULT_IMAGE_ASSET_PUBLISHING_ROLE_ARN() *string
func BootstraplessSynthesizer_DEFAULT_LOOKUP_ROLE_ARN ¶
func BootstraplessSynthesizer_DEFAULT_LOOKUP_ROLE_ARN() *string
func BootstraplessSynthesizer_DEFAULT_QUALIFIER ¶
func BootstraplessSynthesizer_DEFAULT_QUALIFIER() *string
func CfnCodeDeployBlueGreenHook_IsCfnElement ¶
func CfnCodeDeployBlueGreenHook_IsCfnElement(x interface{}) *bool
Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).
Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.
Returns: The construct as a stack element or undefined if it is not a stack element.
func CfnCodeDeployBlueGreenHook_IsConstruct ¶
func CfnCodeDeployBlueGreenHook_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.
Returns: true if `x` is an object created from a class which extends `Construct`.
func CfnCondition_IsCfnElement ¶
func CfnCondition_IsCfnElement(x interface{}) *bool
Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).
Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.
Returns: The construct as a stack element or undefined if it is not a stack element.
func CfnCondition_IsConstruct ¶
func CfnCondition_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.
Returns: true if `x` is an object created from a class which extends `Construct`.
func CfnCustomResource_CFN_RESOURCE_TYPE_NAME ¶
func CfnCustomResource_CFN_RESOURCE_TYPE_NAME() *string
func CfnCustomResource_IsCfnElement ¶
func CfnCustomResource_IsCfnElement(x interface{}) *bool
Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).
Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.
Returns: The construct as a stack element or undefined if it is not a stack element.
func CfnCustomResource_IsCfnResource ¶
func CfnCustomResource_IsCfnResource(construct constructs.IConstruct) *bool
Check whether the given construct is a CfnResource.
func CfnCustomResource_IsConstruct ¶
func CfnCustomResource_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.
Returns: true if `x` is an object created from a class which extends `Construct`.
func CfnElement_IsCfnElement ¶
func CfnElement_IsCfnElement(x interface{}) *bool
Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).
Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.
Returns: The construct as a stack element or undefined if it is not a stack element.
func CfnElement_IsConstruct ¶
func CfnElement_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.
Returns: true if `x` is an object created from a class which extends `Construct`.
func CfnHookDefaultVersion_CFN_RESOURCE_TYPE_NAME ¶ added in v2.13.0
func CfnHookDefaultVersion_CFN_RESOURCE_TYPE_NAME() *string
func CfnHookDefaultVersion_IsCfnElement ¶ added in v2.13.0
func CfnHookDefaultVersion_IsCfnElement(x interface{}) *bool
Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).
Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.
Returns: The construct as a stack element or undefined if it is not a stack element.
func CfnHookDefaultVersion_IsCfnResource ¶ added in v2.13.0
func CfnHookDefaultVersion_IsCfnResource(construct constructs.IConstruct) *bool
Check whether the given construct is a CfnResource.
func CfnHookDefaultVersion_IsConstruct ¶ added in v2.13.0
func CfnHookDefaultVersion_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.
Returns: true if `x` is an object created from a class which extends `Construct`.
func CfnHookTypeConfig_CFN_RESOURCE_TYPE_NAME ¶ added in v2.13.0
func CfnHookTypeConfig_CFN_RESOURCE_TYPE_NAME() *string
func CfnHookTypeConfig_IsCfnElement ¶ added in v2.13.0
func CfnHookTypeConfig_IsCfnElement(x interface{}) *bool
Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).
Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.
Returns: The construct as a stack element or undefined if it is not a stack element.
func CfnHookTypeConfig_IsCfnResource ¶ added in v2.13.0
func CfnHookTypeConfig_IsCfnResource(construct constructs.IConstruct) *bool
Check whether the given construct is a CfnResource.
func CfnHookTypeConfig_IsConstruct ¶ added in v2.13.0
func CfnHookTypeConfig_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.
Returns: true if `x` is an object created from a class which extends `Construct`.
func CfnHookVersion_CFN_RESOURCE_TYPE_NAME ¶ added in v2.13.0
func CfnHookVersion_CFN_RESOURCE_TYPE_NAME() *string
func CfnHookVersion_IsCfnElement ¶ added in v2.13.0
func CfnHookVersion_IsCfnElement(x interface{}) *bool
Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).
Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.
Returns: The construct as a stack element or undefined if it is not a stack element.
func CfnHookVersion_IsCfnResource ¶ added in v2.13.0
func CfnHookVersion_IsCfnResource(construct constructs.IConstruct) *bool
Check whether the given construct is a CfnResource.
func CfnHookVersion_IsConstruct ¶ added in v2.13.0
func CfnHookVersion_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.
Returns: true if `x` is an object created from a class which extends `Construct`.
func CfnHook_IsCfnElement ¶
func CfnHook_IsCfnElement(x interface{}) *bool
Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).
Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.
Returns: The construct as a stack element or undefined if it is not a stack element.
func CfnHook_IsConstruct ¶
func CfnHook_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.
Returns: true if `x` is an object created from a class which extends `Construct`.
func CfnJson_IsConstruct ¶
func CfnJson_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.
Returns: true if `x` is an object created from a class which extends `Construct`.
func CfnMacro_CFN_RESOURCE_TYPE_NAME ¶
func CfnMacro_CFN_RESOURCE_TYPE_NAME() *string
func CfnMacro_IsCfnElement ¶
func CfnMacro_IsCfnElement(x interface{}) *bool
Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).
Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.
Returns: The construct as a stack element or undefined if it is not a stack element.
func CfnMacro_IsCfnResource ¶
func CfnMacro_IsCfnResource(construct constructs.IConstruct) *bool
Check whether the given construct is a CfnResource.
func CfnMacro_IsConstruct ¶
func CfnMacro_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.
Returns: true if `x` is an object created from a class which extends `Construct`.
func CfnMapping_IsCfnElement ¶
func CfnMapping_IsCfnElement(x interface{}) *bool
Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).
Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.
Returns: The construct as a stack element or undefined if it is not a stack element.
func CfnMapping_IsConstruct ¶
func CfnMapping_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.
Returns: true if `x` is an object created from a class which extends `Construct`.
func CfnModuleDefaultVersion_CFN_RESOURCE_TYPE_NAME ¶
func CfnModuleDefaultVersion_CFN_RESOURCE_TYPE_NAME() *string
func CfnModuleDefaultVersion_IsCfnElement ¶
func CfnModuleDefaultVersion_IsCfnElement(x interface{}) *bool
Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).
Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.
Returns: The construct as a stack element or undefined if it is not a stack element.
func CfnModuleDefaultVersion_IsCfnResource ¶
func CfnModuleDefaultVersion_IsCfnResource(construct constructs.IConstruct) *bool
Check whether the given construct is a CfnResource.
func CfnModuleDefaultVersion_IsConstruct ¶
func CfnModuleDefaultVersion_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.
Returns: true if `x` is an object created from a class which extends `Construct`.
func CfnModuleVersion_CFN_RESOURCE_TYPE_NAME ¶
func CfnModuleVersion_CFN_RESOURCE_TYPE_NAME() *string
func CfnModuleVersion_IsCfnElement ¶
func CfnModuleVersion_IsCfnElement(x interface{}) *bool
Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).
Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.
Returns: The construct as a stack element or undefined if it is not a stack element.
func CfnModuleVersion_IsCfnResource ¶
func CfnModuleVersion_IsCfnResource(construct constructs.IConstruct) *bool
Check whether the given construct is a CfnResource.
func CfnModuleVersion_IsConstruct ¶
func CfnModuleVersion_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.
Returns: true if `x` is an object created from a class which extends `Construct`.
func CfnOutput_IsCfnElement ¶
func CfnOutput_IsCfnElement(x interface{}) *bool
Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).
Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.
Returns: The construct as a stack element or undefined if it is not a stack element.
func CfnOutput_IsConstruct ¶
func CfnOutput_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.
Returns: true if `x` is an object created from a class which extends `Construct`.
func CfnParameter_IsCfnElement ¶
func CfnParameter_IsCfnElement(x interface{}) *bool
Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).
Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.
Returns: The construct as a stack element or undefined if it is not a stack element.
func CfnParameter_IsConstruct ¶
func CfnParameter_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.
Returns: true if `x` is an object created from a class which extends `Construct`.
func CfnPublicTypeVersion_CFN_RESOURCE_TYPE_NAME ¶
func CfnPublicTypeVersion_CFN_RESOURCE_TYPE_NAME() *string
func CfnPublicTypeVersion_IsCfnElement ¶
func CfnPublicTypeVersion_IsCfnElement(x interface{}) *bool
Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).
Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.
Returns: The construct as a stack element or undefined if it is not a stack element.
func CfnPublicTypeVersion_IsCfnResource ¶
func CfnPublicTypeVersion_IsCfnResource(construct constructs.IConstruct) *bool
Check whether the given construct is a CfnResource.
func CfnPublicTypeVersion_IsConstruct ¶
func CfnPublicTypeVersion_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.
Returns: true if `x` is an object created from a class which extends `Construct`.
func CfnPublisher_CFN_RESOURCE_TYPE_NAME ¶
func CfnPublisher_CFN_RESOURCE_TYPE_NAME() *string
func CfnPublisher_IsCfnElement ¶
func CfnPublisher_IsCfnElement(x interface{}) *bool
Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).
Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.
Returns: The construct as a stack element or undefined if it is not a stack element.
func CfnPublisher_IsCfnResource ¶
func CfnPublisher_IsCfnResource(construct constructs.IConstruct) *bool
Check whether the given construct is a CfnResource.
func CfnPublisher_IsConstruct ¶
func CfnPublisher_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.
Returns: true if `x` is an object created from a class which extends `Construct`.
func CfnRefElement_IsCfnElement ¶
func CfnRefElement_IsCfnElement(x interface{}) *bool
Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).
Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.
Returns: The construct as a stack element or undefined if it is not a stack element.
func CfnRefElement_IsConstruct ¶
func CfnRefElement_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.
Returns: true if `x` is an object created from a class which extends `Construct`.
func CfnResourceDefaultVersion_CFN_RESOURCE_TYPE_NAME ¶
func CfnResourceDefaultVersion_CFN_RESOURCE_TYPE_NAME() *string
func CfnResourceDefaultVersion_IsCfnElement ¶
func CfnResourceDefaultVersion_IsCfnElement(x interface{}) *bool
Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).
Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.
Returns: The construct as a stack element or undefined if it is not a stack element.
func CfnResourceDefaultVersion_IsCfnResource ¶
func CfnResourceDefaultVersion_IsCfnResource(construct constructs.IConstruct) *bool
Check whether the given construct is a CfnResource.
func CfnResourceDefaultVersion_IsConstruct ¶
func CfnResourceDefaultVersion_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.
Returns: true if `x` is an object created from a class which extends `Construct`.
func CfnResourceVersion_CFN_RESOURCE_TYPE_NAME ¶
func CfnResourceVersion_CFN_RESOURCE_TYPE_NAME() *string
func CfnResourceVersion_IsCfnElement ¶
func CfnResourceVersion_IsCfnElement(x interface{}) *bool
Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).
Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.
Returns: The construct as a stack element or undefined if it is not a stack element.
func CfnResourceVersion_IsCfnResource ¶
func CfnResourceVersion_IsCfnResource(construct constructs.IConstruct) *bool
Check whether the given construct is a CfnResource.
func CfnResourceVersion_IsConstruct ¶
func CfnResourceVersion_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.
Returns: true if `x` is an object created from a class which extends `Construct`.
func CfnResource_IsCfnElement ¶
func CfnResource_IsCfnElement(x interface{}) *bool
Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).
Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.
Returns: The construct as a stack element or undefined if it is not a stack element.
func CfnResource_IsCfnResource ¶
func CfnResource_IsCfnResource(construct constructs.IConstruct) *bool
Check whether the given construct is a CfnResource.
func CfnResource_IsConstruct ¶
func CfnResource_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.
Returns: true if `x` is an object created from a class which extends `Construct`.
func CfnRule_IsCfnElement ¶
func CfnRule_IsCfnElement(x interface{}) *bool
Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).
Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.
Returns: The construct as a stack element or undefined if it is not a stack element.
func CfnRule_IsConstruct ¶
func CfnRule_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.
Returns: true if `x` is an object created from a class which extends `Construct`.
func CfnStackSet_CFN_RESOURCE_TYPE_NAME ¶
func CfnStackSet_CFN_RESOURCE_TYPE_NAME() *string
func CfnStackSet_IsCfnElement ¶
func CfnStackSet_IsCfnElement(x interface{}) *bool
Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).
Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.
Returns: The construct as a stack element or undefined if it is not a stack element.
func CfnStackSet_IsCfnResource ¶
func CfnStackSet_IsCfnResource(construct constructs.IConstruct) *bool
Check whether the given construct is a CfnResource.
func CfnStackSet_IsConstruct ¶
func CfnStackSet_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.
Returns: true if `x` is an object created from a class which extends `Construct`.
func CfnStack_CFN_RESOURCE_TYPE_NAME ¶
func CfnStack_CFN_RESOURCE_TYPE_NAME() *string
func CfnStack_IsCfnElement ¶
func CfnStack_IsCfnElement(x interface{}) *bool
Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).
Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.
Returns: The construct as a stack element or undefined if it is not a stack element.
func CfnStack_IsCfnResource ¶
func CfnStack_IsCfnResource(construct constructs.IConstruct) *bool
Check whether the given construct is a CfnResource.
func CfnStack_IsConstruct ¶
func CfnStack_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.
Returns: true if `x` is an object created from a class which extends `Construct`.
func CfnTypeActivation_CFN_RESOURCE_TYPE_NAME ¶
func CfnTypeActivation_CFN_RESOURCE_TYPE_NAME() *string
func CfnTypeActivation_IsCfnElement ¶
func CfnTypeActivation_IsCfnElement(x interface{}) *bool
Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).
Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.
Returns: The construct as a stack element or undefined if it is not a stack element.
func CfnTypeActivation_IsCfnResource ¶
func CfnTypeActivation_IsCfnResource(construct constructs.IConstruct) *bool
Check whether the given construct is a CfnResource.
func CfnTypeActivation_IsConstruct ¶
func CfnTypeActivation_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.
Returns: true if `x` is an object created from a class which extends `Construct`.
func CfnWaitConditionHandle_CFN_RESOURCE_TYPE_NAME ¶
func CfnWaitConditionHandle_CFN_RESOURCE_TYPE_NAME() *string
func CfnWaitConditionHandle_IsCfnElement ¶
func CfnWaitConditionHandle_IsCfnElement(x interface{}) *bool
Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).
Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.
Returns: The construct as a stack element or undefined if it is not a stack element.
func CfnWaitConditionHandle_IsCfnResource ¶
func CfnWaitConditionHandle_IsCfnResource(construct constructs.IConstruct) *bool
Check whether the given construct is a CfnResource.
func CfnWaitConditionHandle_IsConstruct ¶
func CfnWaitConditionHandle_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.
Returns: true if `x` is an object created from a class which extends `Construct`.
func CfnWaitCondition_CFN_RESOURCE_TYPE_NAME ¶
func CfnWaitCondition_CFN_RESOURCE_TYPE_NAME() *string
func CfnWaitCondition_IsCfnElement ¶
func CfnWaitCondition_IsCfnElement(x interface{}) *bool
Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).
Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.
Returns: The construct as a stack element or undefined if it is not a stack element.
func CfnWaitCondition_IsCfnResource ¶
func CfnWaitCondition_IsCfnResource(construct constructs.IConstruct) *bool
Check whether the given construct is a CfnResource.
func CfnWaitCondition_IsConstruct ¶
func CfnWaitCondition_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.
Returns: true if `x` is an object created from a class which extends `Construct`.
func CustomResourceProvider_GetOrCreate ¶
func CustomResourceProvider_GetOrCreate(scope constructs.Construct, uniqueid *string, props *CustomResourceProviderProps) *string
Returns a stack-level singleton ARN (service token) for the custom resource provider.
Returns: the service token of the custom resource provider, which should be used when defining a `CustomResource`.
func CustomResourceProvider_IsConstruct ¶
func CustomResourceProvider_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.
Returns: true if `x` is an object created from a class which extends `Construct`.
func CustomResource_IsConstruct ¶
func CustomResource_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.
Returns: true if `x` is an object created from a class which extends `Construct`.
func CustomResource_IsOwnedResource ¶ added in v2.32.0
func CustomResource_IsOwnedResource(construct constructs.IConstruct) *bool
Returns true if the construct was created by CDK, and false otherwise.
func CustomResource_IsResource ¶
func CustomResource_IsResource(construct constructs.IConstruct) *bool
Check whether the given construct is a Resource.
func DefaultStackSynthesizer_DEFAULT_BOOTSTRAP_STACK_VERSION_SSM_PARAMETER ¶
func DefaultStackSynthesizer_DEFAULT_BOOTSTRAP_STACK_VERSION_SSM_PARAMETER() *string
func DefaultStackSynthesizer_DEFAULT_CLOUDFORMATION_ROLE_ARN ¶
func DefaultStackSynthesizer_DEFAULT_CLOUDFORMATION_ROLE_ARN() *string
func DefaultStackSynthesizer_DEFAULT_DEPLOY_ROLE_ARN ¶
func DefaultStackSynthesizer_DEFAULT_DEPLOY_ROLE_ARN() *string
func DefaultStackSynthesizer_DEFAULT_DOCKER_ASSET_PREFIX ¶
func DefaultStackSynthesizer_DEFAULT_DOCKER_ASSET_PREFIX() *string
func DefaultStackSynthesizer_DEFAULT_FILE_ASSETS_BUCKET_NAME ¶
func DefaultStackSynthesizer_DEFAULT_FILE_ASSETS_BUCKET_NAME() *string
func DefaultStackSynthesizer_DEFAULT_FILE_ASSET_KEY_ARN_EXPORT_NAME ¶
func DefaultStackSynthesizer_DEFAULT_FILE_ASSET_KEY_ARN_EXPORT_NAME() *string
func DefaultStackSynthesizer_DEFAULT_FILE_ASSET_PREFIX ¶
func DefaultStackSynthesizer_DEFAULT_FILE_ASSET_PREFIX() *string
func DefaultStackSynthesizer_DEFAULT_FILE_ASSET_PUBLISHING_ROLE_ARN ¶
func DefaultStackSynthesizer_DEFAULT_FILE_ASSET_PUBLISHING_ROLE_ARN() *string
func DefaultStackSynthesizer_DEFAULT_IMAGE_ASSETS_REPOSITORY_NAME ¶
func DefaultStackSynthesizer_DEFAULT_IMAGE_ASSETS_REPOSITORY_NAME() *string
func DefaultStackSynthesizer_DEFAULT_IMAGE_ASSET_PUBLISHING_ROLE_ARN ¶
func DefaultStackSynthesizer_DEFAULT_IMAGE_ASSET_PUBLISHING_ROLE_ARN() *string
func DefaultStackSynthesizer_DEFAULT_LOOKUP_ROLE_ARN ¶
func DefaultStackSynthesizer_DEFAULT_LOOKUP_ROLE_ARN() *string
func DefaultStackSynthesizer_DEFAULT_QUALIFIER ¶
func DefaultStackSynthesizer_DEFAULT_QUALIFIER() *string
func DockerBuildSecret_FromSrc ¶ added in v2.65.0
A Docker build secret from a file source.
Returns: The latter half required for `--secret`.
func FileSystem_CopyDirectory ¶
func FileSystem_CopyDirectory(srcDir *string, destDir *string, options *CopyOptions, rootDir *string)
Copies an entire directory structure.
func FileSystem_Fingerprint ¶
func FileSystem_Fingerprint(fileOrDirectory *string, options *FingerprintOptions) *string
Produces fingerprint based on the contents of a single file or an entire directory tree.
Line endings are converted from CRLF to LF.
The fingerprint will also include: 1. An extra string if defined in `options.extra`. 2. The symlink follow mode value.
func FileSystem_IsEmpty ¶
Checks whether a directory is empty.
func FileSystem_Mkdtemp ¶
Creates a unique temporary directory in the **system temp directory**.
func FileSystem_Tmpdir ¶
func FileSystem_Tmpdir() *string
func Fn_Base64 ¶
The intrinsic function “Fn::Base64“ returns the Base64 representation of the input string.
This function is typically used to pass encoded data to Amazon EC2 instances by way of the UserData property.
Returns: a token represented as a string.
func Fn_Cidr ¶
The intrinsic function “Fn::Cidr“ returns the specified Cidr address block.
Returns: a token represented as a string.
func Fn_FindInMap ¶
func Fn_FindInMap(mapName *string, topLevelKey *string, secondLevelKey *string, defaultValue *string) *string
The intrinsic function “Fn::FindInMap“ returns the value corresponding to keys in a two-level map that is declared in the Mappings section.
Warning: do not use with lazy mappings as this function will not guarentee a lazy mapping to render in the template. Prefer to use `CfnMapping.findInMap` in general.
Returns: a token represented as a string.
func Fn_GetAzs ¶
The intrinsic function “Fn::GetAZs“ returns an array that lists Availability Zones for a specified region.
Because customers have access to different Availability Zones, the intrinsic function “Fn::GetAZs“ enables template authors to write templates that adapt to the calling user's access. That way you don't have to hard-code a full list of Availability Zones for a specified region.
Returns: a token represented as a string array.
func Fn_ImportListValue ¶
func Fn_ImportListValue(sharedValueToImport *string, assumedLength *float64, delimiter *string) *[]*string
Like `Fn.importValue`, but import a list with a known length.
If you explicitly want a list with an unknown length, call `Fn.split(',', Fn.importValue(exportName))`. See the documentation of `Fn.split` to read more about the limitations of using lists of unknown length.
`Fn.importListValue(exportName, assumedLength)` is the same as `Fn.split(',', Fn.importValue(exportName), assumedLength)`, but easier to read and impossible to forget to pass `assumedLength`.
func Fn_ImportValue ¶
The intrinsic function “Fn::ImportValue“ returns the value of an output exported by another stack.
You typically use this function to create cross-stack references. In the following example template snippets, Stack A exports VPC security group values and Stack B imports them.
Returns: a token represented as a string.
func Fn_Join ¶
The intrinsic function “Fn::Join“ appends a set of values into a single value, separated by the specified delimiter.
If a delimiter is the empty string, the set of values are concatenated with no delimiter.
Returns: a token represented as a string.
func Fn_Len ¶ added in v2.40.0
func Fn_Len(array interface{}) *float64
The intrinsic function `Fn::Length` returns the number of elements within an array or an intrinsic function that returns an array.
func Fn_ParseDomainName ¶
Given an url, parse the domain name.
func Fn_Ref ¶
The “Ref“ intrinsic function returns the value of the specified parameter or resource.
Note that it doesn't validate the logicalName, it mainly serves parameter/resource reference defined in a “CfnInclude“ template.
func Fn_RefAll ¶
Returns all values for a specified parameter type.
Returns: a token represented as a string array.
func Fn_Select ¶
The intrinsic function “Fn::Select“ returns a single object from a list of objects by index.
Returns: a token represented as a string.
func Fn_Split ¶
Split a string token into a token list of string values.
Specify the location of splits with a delimiter such as ',' (a comma). Renders to the `Fn::Split` intrinsic function.
Lists with unknown lengths (default) -------------------------------------
Since this function is used to work with deploy-time values, if `assumedLength` is not given the CDK cannot know the length of the resulting list at synthesis time. This brings the following restrictions:
- You must use `Fn.select(i, list)` to pick elements out of the list (you must not use `list[i]`).
- You cannot add elements to the list, remove elements from the list, combine two such lists together, or take a slice of the list.
- You cannot pass the list to constructs that do any of the above.
The only valid operation with such a tokenized list is to pass it unmodified to a CloudFormation Resource construct.
Lists with assumed lengths --------------------------
Pass `assumedLength` if you know the length of the list that will be produced by splitting. The actual list length at deploy time may be *longer* than the number you pass, but not *shorter*.
The returned list will look like:
``` [Fn.select(0, split), Fn.select(1, split), Fn.select(2, split), ...] ```
The restrictions from the section "Lists with unknown lengths" will now be lifted, at the expense of having to know and fix the length of the list.
Returns: a token represented as a string array.
func Fn_Sub ¶
The intrinsic function “Fn::Sub“ substitutes variables in an input string with values that you specify.
In your templates, you can use this function to construct commands or outputs that include values that aren't available until you create or update a stack.
Returns: a token represented as a string.
func Fn_ToJsonString ¶ added in v2.40.0
func Fn_ToJsonString(object interface{}) *string
The `Fn::ToJsonString` intrinsic function converts an object or array to its corresponding JSON string.
func Fn_ValueOf ¶
Returns an attribute value or list of values for a specific parameter and attribute.
Returns: a token represented as a string.
func Fn_ValueOfAll ¶
Returns a list of all attribute values for a given parameter type and attribute.
Returns: a token represented as a string array.
func Lazy_List ¶
func Lazy_List(producer IStableListProducer, options *LazyListValueOptions) *[]*string
Defer the one-time calculation of a list value to synthesis time.
Use this if you want to render a list to a template whose actual value depends on some state mutation that may happen after the construct has been created.
If you are simply looking to force a value to a `string[]` type and don't need the calculation to be deferred, use `Token.asList()` instead.
The inner function will only be invoked once, and the resolved value cannot depend on the Stack the Token is used in.
func Lazy_Number ¶
func Lazy_Number(producer IStableNumberProducer) *float64
Defer the one-time calculation of a number value to synthesis time.
Use this if you want to render a number to a template whose actual value depends on some state mutation that may happen after the construct has been created.
If you are simply looking to force a value to a `number` type and don't need the calculation to be deferred, use `Token.asNumber()` instead.
The inner function will only be invoked once, and the resolved value cannot depend on the Stack the Token is used in.
func Lazy_String ¶
func Lazy_String(producer IStableStringProducer, options *LazyStringValueOptions) *string
Defer the one-time calculation of a string value to synthesis time.
Use this if you want to render a string to a template whose actual value depends on some state mutation that may happen after the construct has been created.
If you are simply looking to force a value to a `string` type and don't need the calculation to be deferred, use `Token.asString()` instead.
The inner function will only be invoked once, and the resolved value cannot depend on the Stack the Token is used in.
func Lazy_UncachedList ¶
func Lazy_UncachedList(producer IListProducer, options *LazyListValueOptions) *[]*string
Defer the calculation of a list value to synthesis time.
Use of this function is not recommended; unless you know you need it for sure, you probably don't. Use `Lazy.list()` instead.
The inner function may be invoked multiple times during synthesis. You should only use this method if the returned value depends on variables that may change during the Aspect application phase of synthesis, or if the value depends on the Stack the value is being used in. Both of these cases are rare, and only ever occur for AWS Construct Library authors.
func Lazy_UncachedNumber ¶
func Lazy_UncachedNumber(producer INumberProducer) *float64
Defer the calculation of a number value to synthesis time.
Use of this function is not recommended; unless you know you need it for sure, you probably don't. Use `Lazy.number()` instead.
The inner function may be invoked multiple times during synthesis. You should only use this method if the returned value depends on variables that may change during the Aspect application phase of synthesis, or if the value depends on the Stack the value is being used in. Both of these cases are rare, and only ever occur for AWS Construct Library authors.
func Lazy_UncachedString ¶
func Lazy_UncachedString(producer IStringProducer, options *LazyStringValueOptions) *string
Defer the calculation of a string value to synthesis time.
Use of this function is not recommended; unless you know you need it for sure, you probably don't. Use `Lazy.string()` instead.
The inner function may be invoked multiple times during synthesis. You should only use this method if the returned value depends on variables that may change during the Aspect application phase of synthesis, or if the value depends on the Stack the value is being used in. Both of these cases are rare, and only ever occur for AWS Construct Library authors.
func Names_NodeUniqueId ¶
func Names_NodeUniqueId(node constructs.Node) *string
Returns a CloudFormation-compatible unique identifier for a construct based on its path.
The identifier includes a human readable portion rendered from the path components and a hash suffix.
TODO (v2): replace with API to use `constructs.Node`.
Returns: a unique id based on the construct path.
func Names_UniqueId ¶
func Names_UniqueId(construct constructs.IConstruct) *string
Returns a CloudFormation-compatible unique identifier for a construct based on its path.
The identifier includes a human readable portion rendered from the path components and a hash suffix. uniqueId is not unique if multiple copies of the stack are deployed. Prefer using uniqueResourceName().
Returns: a unique id based on the construct path.
func Names_UniqueResourceName ¶ added in v2.29.0
func Names_UniqueResourceName(construct constructs.IConstruct, options *UniqueResourceNameOptions) *string
Returns a CloudFormation-compatible unique identifier for a construct based on its path.
This function finds the stackName of the parent stack (non-nested) to the construct, and the ids of the components in the construct path.
The user can define allowed special characters, a separator between the elements, and the maximum length of the resource name. The name includes a human readable portion rendered from the path components, with or without user defined separators, and a hash suffix. If the resource name is longer than the maximum length, it is trimmed in the middle.
Returns: a unique resource name based on the construct path.
func NestedStack_IsConstruct ¶
func NestedStack_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.
Returns: true if `x` is an object created from a class which extends `Construct`.
func NestedStack_IsNestedStack ¶
func NestedStack_IsNestedStack(x interface{}) *bool
Checks if `x` is an object of type `NestedStack`.
func NestedStack_IsStack ¶
func NestedStack_IsStack(x interface{}) *bool
Return whether the given object is a Stack.
We do attribute detection since we can't reliably use 'instanceof'.
func NewAssetManifestBuilder_Override ¶ added in v2.45.0
func NewAssetManifestBuilder_Override(a AssetManifestBuilder)
func NewAssetStaging_Override ¶
func NewAssetStaging_Override(a AssetStaging, scope constructs.Construct, id *string, props *AssetStagingProps)
func NewBootstraplessSynthesizer_Override ¶
func NewBootstraplessSynthesizer_Override(b BootstraplessSynthesizer, props *BootstraplessSynthesizerProps)
func NewCfnCodeDeployBlueGreenHook_Override ¶
func NewCfnCodeDeployBlueGreenHook_Override(c CfnCodeDeployBlueGreenHook, scope constructs.Construct, id *string, props *CfnCodeDeployBlueGreenHookProps)
Creates a new CodeDeploy blue-green ECS Hook.
func NewCfnCondition_Override ¶
func NewCfnCondition_Override(c CfnCondition, scope constructs.Construct, id *string, props *CfnConditionProps)
Build a new condition.
The condition must be constructed with a condition token, that the condition is based on.
func NewCfnCustomResource_Override ¶
func NewCfnCustomResource_Override(c CfnCustomResource, scope constructs.Construct, id *string, props *CfnCustomResourceProps)
func NewCfnDynamicReference_Override ¶
func NewCfnDynamicReference_Override(c CfnDynamicReference, service CfnDynamicReferenceService, key *string)
func NewCfnElement_Override ¶
func NewCfnElement_Override(c CfnElement, scope constructs.Construct, id *string)
Creates an entity and binds it to a tree.
Note that the root of the tree must be a Stack object (not just any Root).
func NewCfnHookDefaultVersion_Override ¶ added in v2.13.0
func NewCfnHookDefaultVersion_Override(c CfnHookDefaultVersion, scope constructs.Construct, id *string, props *CfnHookDefaultVersionProps)
func NewCfnHookTypeConfig_Override ¶ added in v2.13.0
func NewCfnHookTypeConfig_Override(c CfnHookTypeConfig, scope constructs.Construct, id *string, props *CfnHookTypeConfigProps)
func NewCfnHookVersion_Override ¶ added in v2.13.0
func NewCfnHookVersion_Override(c CfnHookVersion, scope constructs.Construct, id *string, props *CfnHookVersionProps)
func NewCfnHook_Override ¶
func NewCfnHook_Override(c CfnHook, scope constructs.Construct, id *string, props *CfnHookProps)
Creates a new Hook object.
func NewCfnJson_Override ¶
func NewCfnJson_Override(c CfnJson, scope constructs.Construct, id *string, props *CfnJsonProps)
func NewCfnMacro_Override ¶
func NewCfnMacro_Override(c CfnMacro, scope constructs.Construct, id *string, props *CfnMacroProps)
func NewCfnMapping_Override ¶
func NewCfnMapping_Override(c CfnMapping, scope constructs.Construct, id *string, props *CfnMappingProps)
func NewCfnModuleDefaultVersion_Override ¶
func NewCfnModuleDefaultVersion_Override(c CfnModuleDefaultVersion, scope constructs.Construct, id *string, props *CfnModuleDefaultVersionProps)
func NewCfnModuleVersion_Override ¶
func NewCfnModuleVersion_Override(c CfnModuleVersion, scope constructs.Construct, id *string, props *CfnModuleVersionProps)
func NewCfnOutput_Override ¶
func NewCfnOutput_Override(c CfnOutput, scope constructs.Construct, id *string, props *CfnOutputProps)
Creates an CfnOutput value for this stack.
func NewCfnParameter_Override ¶
func NewCfnParameter_Override(c CfnParameter, scope constructs.Construct, id *string, props *CfnParameterProps)
Creates a parameter construct.
Note that the name (logical ID) of the parameter will derive from it's `coname` and location within the stack. Therefore, it is recommended that parameters are defined at the stack level.
func NewCfnPublicTypeVersion_Override ¶
func NewCfnPublicTypeVersion_Override(c CfnPublicTypeVersion, scope constructs.Construct, id *string, props *CfnPublicTypeVersionProps)
func NewCfnPublisher_Override ¶
func NewCfnPublisher_Override(c CfnPublisher, scope constructs.Construct, id *string, props *CfnPublisherProps)
func NewCfnRefElement_Override ¶
func NewCfnRefElement_Override(c CfnRefElement, scope constructs.Construct, id *string)
Creates an entity and binds it to a tree.
Note that the root of the tree must be a Stack object (not just any Root).
func NewCfnResourceDefaultVersion_Override ¶
func NewCfnResourceDefaultVersion_Override(c CfnResourceDefaultVersion, scope constructs.Construct, id *string, props *CfnResourceDefaultVersionProps)
func NewCfnResourceVersion_Override ¶
func NewCfnResourceVersion_Override(c CfnResourceVersion, scope constructs.Construct, id *string, props *CfnResourceVersionProps)
func NewCfnResource_Override ¶
func NewCfnResource_Override(c CfnResource, scope constructs.Construct, id *string, props *CfnResourceProps)
Creates a resource construct.
func NewCfnRule_Override ¶
func NewCfnRule_Override(c CfnRule, scope constructs.Construct, id *string, props *CfnRuleProps)
Creates and adds a rule.
func NewCfnStackSet_Override ¶
func NewCfnStackSet_Override(c CfnStackSet, scope constructs.Construct, id *string, props *CfnStackSetProps)
func NewCfnStack_Override ¶
func NewCfnStack_Override(c CfnStack, scope constructs.Construct, id *string, props *CfnStackProps)
func NewCfnTypeActivation_Override ¶
func NewCfnTypeActivation_Override(c CfnTypeActivation, scope constructs.Construct, id *string, props *CfnTypeActivationProps)
func NewCfnWaitConditionHandle_Override ¶
func NewCfnWaitConditionHandle_Override(c CfnWaitConditionHandle, scope constructs.Construct, id *string, props *CfnWaitConditionHandleProps)
func NewCfnWaitCondition_Override ¶
func NewCfnWaitCondition_Override(c CfnWaitCondition, scope constructs.Construct, id *string, props *CfnWaitConditionProps)
func NewCliCredentialsStackSynthesizer_Override ¶ added in v2.13.0
func NewCliCredentialsStackSynthesizer_Override(c CliCredentialsStackSynthesizer, props *CliCredentialsStackSynthesizerProps)
func NewCustomResourceProvider_Override ¶
func NewCustomResourceProvider_Override(c CustomResourceProvider, scope constructs.Construct, id *string, props *CustomResourceProviderProps)
func NewCustomResource_Override ¶
func NewCustomResource_Override(c CustomResource, scope constructs.Construct, id *string, props *CustomResourceProps)
func NewDefaultStackSynthesizer_Override ¶
func NewDefaultStackSynthesizer_Override(d DefaultStackSynthesizer, props *DefaultStackSynthesizerProps)
func NewDefaultTokenResolver_Override ¶
func NewDefaultTokenResolver_Override(d DefaultTokenResolver, concat IFragmentConcatenator)
func NewDockerBuildSecret_Override ¶ added in v2.65.0
func NewDockerBuildSecret_Override(d DockerBuildSecret)
func NewDockerIgnoreStrategy_Override ¶
func NewDockerIgnoreStrategy_Override(d DockerIgnoreStrategy, absoluteRootPath *string, patterns *[]*string)
func NewDockerImage_Override ¶
func NewDockerImage_Override(d DockerImage, image *string, _imageHash *string)
func NewFileSystem_Override ¶
func NewFileSystem_Override(f FileSystem)
func NewGitIgnoreStrategy_Override ¶
func NewGitIgnoreStrategy_Override(g GitIgnoreStrategy, absoluteRootPath *string, patterns *[]*string)
func NewGlobIgnoreStrategy_Override ¶
func NewGlobIgnoreStrategy_Override(g GlobIgnoreStrategy, absoluteRootPath *string, patterns *[]*string)
func NewIgnoreStrategy_Override ¶
func NewIgnoreStrategy_Override(i IgnoreStrategy)
func NewIntrinsic_Override ¶
func NewIntrinsic_Override(i Intrinsic, value interface{}, options *IntrinsicProps)
func NewLegacyStackSynthesizer_Override ¶
func NewLegacyStackSynthesizer_Override(l LegacyStackSynthesizer)
func NewNestedStackSynthesizer_Override ¶
func NewNestedStackSynthesizer_Override(n NestedStackSynthesizer, parentDeployment IStackSynthesizer)
func NewNestedStack_Override ¶
func NewNestedStack_Override(n NestedStack, scope constructs.Construct, id *string, props *NestedStackProps)
func NewReference_Override ¶
func NewReference_Override(r Reference, value interface{}, target constructs.IConstruct, displayName *string, typeHint ResolutionTypeHint)
func NewRemoveTag_Override ¶
func NewResource_Override ¶
func NewResource_Override(r Resource, scope constructs.Construct, id *string, props *ResourceProps)
func NewScopedAws_Override ¶
func NewScopedAws_Override(s ScopedAws, scope constructs.Construct)
func NewSecretValue_Override ¶
func NewSecretValue_Override(s SecretValue, protectedValue interface{}, options *IntrinsicProps)
Construct a SecretValue (do not use!).
Do not use the constructor directly: use one of the factory functions on the class instead.
func NewStackSynthesizer_Override ¶
func NewStackSynthesizer_Override(s StackSynthesizer)
func NewStack_Override ¶
func NewStack_Override(s Stack, scope constructs.Construct, id *string, props *StackProps)
Creates a new stack.
func NewStage_Override ¶
func NewStage_Override(s Stage, scope constructs.Construct, id *string, props *StageProps)
func NewStringConcat_Override ¶
func NewStringConcat_Override(s StringConcat)
func NewTagManager_Override ¶
func NewTagManager_Override(t TagManager, tagType TagType, resourceTypeName *string, initialTags interface{}, options *TagManagerOptions)
func NewTokenizedStringFragments_Override ¶
func NewTokenizedStringFragments_Override(t TokenizedStringFragments)
func NewTreeInspector_Override ¶
func NewTreeInspector_Override(t TreeInspector)
func NewValidationResult_Override ¶
func NewValidationResult_Override(v ValidationResult, errorMessage *string, results ValidationResults)
func NewValidationResults_Override ¶
func NewValidationResults_Override(v ValidationResults, results *[]ValidationResult)
func PhysicalName_GENERATE_IF_NEEDED ¶
func PhysicalName_GENERATE_IF_NEEDED() *string
func Reference_IsReference ¶
func Reference_IsReference(x interface{}) *bool
Check whether this is actually a Reference.
func Resource_IsConstruct ¶
func Resource_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.
Returns: true if `x` is an object created from a class which extends `Construct`.
func Resource_IsOwnedResource ¶ added in v2.32.0
func Resource_IsOwnedResource(construct constructs.IConstruct) *bool
Returns true if the construct was created by CDK, and false otherwise.
func Resource_IsResource ¶
func Resource_IsResource(construct constructs.IConstruct) *bool
Check whether the given construct is a Resource.
func SecretValue_IsSecretValue ¶ added in v2.21.0
func SecretValue_IsSecretValue(x interface{}) *bool
Test whether an object is a SecretValue.
func Stack_IsConstruct ¶
func Stack_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.
Returns: true if `x` is an object created from a class which extends `Construct`.
func Stack_IsStack ¶
func Stack_IsStack(x interface{}) *bool
Return whether the given object is a Stack.
We do attribute detection since we can't reliably use 'instanceof'.
func Stage_IsConstruct ¶
func Stage_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.
Returns: true if `x` is an object created from a class which extends `Construct`.
func Stage_IsStage ¶
func Stage_IsStage(x interface{}) *bool
Test whether the given construct is a stage.
func TagManager_IsTaggable ¶
func TagManager_IsTaggable(construct interface{}) *bool
Check whether the given construct is Taggable.
func TagManager_IsTaggableV2 ¶ added in v2.81.0
func TagManager_IsTaggableV2(construct interface{}) *bool
Check whether the given construct is ITaggableV2.
func Token_AsList ¶
func Token_AsList(value interface{}, options *EncodingOptions) *[]*string
Return a reversible list representation of this token.
func Token_AsNumber ¶
func Token_AsNumber(value interface{}) *float64
Return a reversible number representation of this token.
func Token_AsString ¶
func Token_AsString(value interface{}, options *EncodingOptions) *string
Return a reversible string representation of this token.
If the Token is initialized with a literal, the stringified value of the literal is returned. Otherwise, a special quoted string representation of the Token is returned that can be embedded into other strings.
Strings with quoted Tokens in them can be restored back into complex values with the Tokens restored by calling `resolve()` on the string.
func Token_IsUnresolved ¶
func Token_IsUnresolved(obj interface{}) *bool
Returns true if obj represents an unresolved value.
One of these must be true:
- `obj` is an IResolvable - `obj` is a string containing at least one encoded `IResolvable` - `obj` is either an encoded number or list
This does NOT recurse into lists or objects to see if they contain resolvables.
func Tokenization_IsResolvable ¶
func Tokenization_IsResolvable(obj interface{}) *bool
Return whether the given object is an IResolvable object.
This is different from Token.isUnresolved() which will also check for encoded Tokens, whereas this method will only do a type check on the given object.
func Tokenization_Resolve ¶
func Tokenization_Resolve(obj interface{}, options *ResolveOptions) interface{}
Resolves an object by evaluating all tokens and removing any undefined or empty objects or arrays.
Values can only be primitives, arrays or tokens. Other objects (i.e. with methods) will be rejected.
func Tokenization_StringifyNumber ¶
Stringify a number directly or lazily if it's a Token.
If it is an object (i.e., { Ref: 'SomeLogicalId' }), return it as-is.
Types ¶
type Annotations ¶
type Annotations interface { // Acknowledge a warning. When a warning is acknowledged for a scope all warnings that match the id will be ignored. // // The acknowledgement will apply to all child scopes. // // Example: // var myConstruct construct // // awscdk.Annotations_Of(myConstruct).AcknowledgeWarning(jsii.String("SomeWarningId"), jsii.String("This warning can be ignored because...")) // AcknowledgeWarning(id *string, message *string) // Adds a deprecation warning for a specific API. // // Deprecations will be added only once per construct as a warning and will be // deduplicated based on the `api`. // // If the environment variable `CDK_BLOCK_DEPRECATIONS` is set, this method // will throw an error instead with the deprecation message. AddDeprecation(api *string, message *string) // Adds an { "error": <message> } metadata entry to this construct. // // The toolkit will fail deployment of any stack that has errors reported against it. AddError(message *string) // Adds an info metadata entry to this construct. // // The CLI will display the info message when apps are synthesized. AddInfo(message *string) // Adds a warning metadata entry to this construct. Prefer using `addWarningV2`. // // The CLI will display the warning when an app is synthesized, or fail if run // in `--strict` mode. // // Warnings added by this call cannot be acknowledged. This will block users from // running in `--strict` mode until the deal with the warning, which makes it // effectively not very different from `addError`. Prefer using `addWarningV2` instead. AddWarning(message *string) // Adds an acknowledgeable warning metadata entry to this construct. // // The CLI will display the warning when an app is synthesized, or fail if run // in `--strict` mode. // // If the warning is acknowledged using `acknowledgeWarning()`, it will not be shown by // the CLI, and will not cause `--strict` mode to fail synthesis. // // Example: // var myConstruct construct // // awscdk.Annotations_Of(myConstruct).AddWarningV2(jsii.String("my-library:Construct.someWarning"), jsii.String("Some message explaining the warning")) // AddWarningV2(id *string, message *string) }
Includes API for attaching annotations such as warning messages to constructs.
Example:
import "github.com/aws/aws-cdk-go/awscdk" import "github.com/aws/constructs-go/constructs" type myAspect struct { } func (this *myAspect) visit(node iConstruct) { if *node instanceof cdk.CfnResource && *node.CfnResourceType == "Foo::Bar" { this.error(*node, jsii.String("we do not want a Foo::Bar resource")) } } func (this *myAspect) error(node iConstruct, message *string) { cdk.Annotations_Of(*node).AddError(*message) } type myStack struct { stack } func newMyStack(scope construct, id *string) *myStack { this := &myStack{} cdk.NewStack_Override(this, scope, id) stack := cdk.NewStack() cdk.NewCfnResource(stack, jsii.String("Foo"), &CfnResourceProps{ Type: jsii.String("Foo::Bar"), Properties: map[string]interface{}{ "Fred": jsii.String("Thud"), }, }) cdk.Aspects_Of(stack).Add(NewMyAspect()) return this }
func Annotations_Of ¶
func Annotations_Of(scope constructs.IConstruct) Annotations
Returns the annotations API for a construct scope.
type App ¶
type App interface { Stage // The default account for all resources defined within this stage. Account() *string // Artifact ID of the assembly if it is a nested stage. The root stage (app) will return an empty string. // // Derived from the construct path. ArtifactId() *string // The cloud assembly asset output directory. AssetOutdir() *string // The tree node. Node() constructs.Node // The cloud assembly output directory. Outdir() *string // The parent stage or `undefined` if this is the app. // // *. ParentStage() Stage // Validation plugins to run during synthesis. // // If any plugin reports any violation, // synthesis will be interrupted and the report displayed to the user. // Default: - no validation plugins are used. // PolicyValidationBeta1() *[]IPolicyValidationPluginBeta1 // The default region for all resources defined within this stage. Region() *string // The name of the stage. // // Based on names of the parent stages separated by // hypens. StageName() *string // Synthesize this stage into a cloud assembly. // // Once an assembly has been synthesized, it cannot be modified. Subsequent // calls will return the same assembly. Synth(options *StageSynthesisOptions) cxapi.CloudAssembly // Returns a string representation of this construct. ToString() *string }
A construct which represents an entire CDK app. This construct is normally the root of the construct tree.
You would normally define an `App` instance in your program's entrypoint, then define constructs where the app is used as the parent scope.
After all the child constructs are defined within the app, you should call `app.synth()` which will emit a "cloud assembly" from this app into the directory specified by `outdir`. Cloud assemblies includes artifacts such as CloudFormation templates and assets that are needed to deploy this app into the AWS cloud.
Example:
import "github.com/aws/aws-cdk-go/awscdk" app := cdk.NewApp() stack := cdk.NewStack(app, jsii.String("Stack"), &StackProps{ Env: &Environment{ Region: jsii.String("us-west-2"), }, }) globalTable := dynamodb.NewTableV2(stack, jsii.String("GlobalTable"), &TablePropsV2{ PartitionKey: &Attribute{ Name: jsii.String("pk"), Type: dynamodb.AttributeType_STRING, }, // applys to all replicas, i.e., us-west-2, us-east-1, us-east-2 RemovalPolicy: cdk.RemovalPolicy_DESTROY, Replicas: []replicaTableProps{ &replicaTableProps{ Region: jsii.String("us-east-1"), }, &replicaTableProps{ Region: jsii.String("us-east-2"), }, }, })
type AppProps ¶
type AppProps struct { // Include runtime versioning information in the Stacks of this app. // Default: Value of 'aws:cdk:version-reporting' context key. // AnalyticsReporting *bool `field:"optional" json:"analyticsReporting" yaml:"analyticsReporting"` // Automatically call `synth()` before the program exits. // // If you set this, you don't have to call `synth()` explicitly. Note that // this feature is only available for certain programming languages, and // calling `synth()` is still recommended. // Default: true if running via CDK CLI (`CDK_OUTDIR` is set), `false` // otherwise. // AutoSynth *bool `field:"optional" json:"autoSynth" yaml:"autoSynth"` // Additional context values for the application. // // Context set by the CLI or the `context` key in `cdk.json` has precedence. // // Context can be read from any construct using `node.getContext(key)`. // Default: - no additional context. // Context *map[string]interface{} `field:"optional" json:"context" yaml:"context"` // The stack synthesizer to use by default for all Stacks in the App. // // The Stack Synthesizer controls aspects of synthesis and deployment, // like how assets are referenced and what IAM roles to use. For more // information, see the README of the main CDK package. // Default: - A `DefaultStackSynthesizer` with default settings. // DefaultStackSynthesizer IReusableStackSynthesizer `field:"optional" json:"defaultStackSynthesizer" yaml:"defaultStackSynthesizer"` // The output directory into which to emit synthesized artifacts. // // You should never need to set this value. By default, the value you pass to // the CLI's `--output` flag will be used, and if you change it to a different // directory the CLI will fail to pick up the generated Cloud Assembly. // // This property is intended for internal and testing use. // Default: - If this value is _not_ set, considers the environment variable `CDK_OUTDIR`. // If `CDK_OUTDIR` is not defined, uses a temp directory. // Outdir *string `field:"optional" json:"outdir" yaml:"outdir"` // Validation plugins to run after synthesis. // Default: - no validation plugins. // PolicyValidationBeta1 *[]IPolicyValidationPluginBeta1 `field:"optional" json:"policyValidationBeta1" yaml:"policyValidationBeta1"` // Additional context values for the application. // // Context provided here has precedence over context set by: // // - The CLI via --context // - The `context` key in `cdk.json` // - The `AppProps.context` property // // This property is recommended over the `AppProps.context` property since you // can make final decision over which context value to take in your app. // // Context can be read from any construct using `node.getContext(key)`. // // Example: // // context from the CLI and from `cdk.json` are stored in the // // CDK_CONTEXT env variable // cliContext := jSON.parse(process.env.cDK_CONTEXT) // // // determine whether to take the context passed in the CLI or not // determineValue := process.env.PROD ? cliContext.SOMEKEY : 'my-prod-value' // awscdk.NewApp(&AppProps{ // PostCliContext: map[string]interface{}{ // "SOMEKEY": determineValue, // }, // }) // // Default: - no additional context. // PostCliContext *map[string]interface{} `field:"optional" json:"postCliContext" yaml:"postCliContext"` // Include construct creation stack trace in the `aws:cdk:trace` metadata key of all constructs. // Default: true stack traces are included unless `aws:cdk:disable-stack-trace` is set in the context. // StackTraces *bool `field:"optional" json:"stackTraces" yaml:"stackTraces"` // Include construct tree metadata as part of the Cloud Assembly. // Default: true. // TreeMetadata *bool `field:"optional" json:"treeMetadata" yaml:"treeMetadata"` }
Initialization props for apps.
Example:
app := awscdk.NewApp(&AppProps{ DefaultStackSynthesizer: awscdkappstagingsynthesizeralpha.AppStagingSynthesizer_DefaultResources(&DefaultResourcesOptions{ AppId: jsii.String("my-app-id"), DeploymentIdentities: *awscdkappstagingsynthesizeralpha.DeploymentIdentities_CliCredentials(), }), })
type ArnComponents ¶
type ArnComponents struct { // Resource type (e.g. "table", "autoScalingGroup", "certificate"). For some resource types, e.g. S3 buckets, this field defines the bucket name. Resource *string `field:"required" json:"resource" yaml:"resource"` // The service namespace that identifies the AWS product (for example, 's3', 'iam', 'codepipline'). Service *string `field:"required" json:"service" yaml:"service"` // The ID of the AWS account that owns the resource, without the hyphens. // // For example, 123456789012. Note that the ARNs for some resources don't // require an account number, so this component might be omitted. // Default: The account the stack is deployed to. // Account *string `field:"optional" json:"account" yaml:"account"` // The specific ARN format to use for this ARN value. // Default: - uses value of `sep` as the separator for formatting, // `ArnFormat.SLASH_RESOURCE_NAME` if that property was also not provided // ArnFormat ArnFormat `field:"optional" json:"arnFormat" yaml:"arnFormat"` // The partition that the resource is in. // // For standard AWS regions, the // partition is aws. If you have resources in other partitions, the // partition is aws-partitionname. For example, the partition for resources // in the China (Beijing) region is aws-cn. // Default: The AWS partition the stack is deployed to. // Partition *string `field:"optional" json:"partition" yaml:"partition"` // The region the resource resides in. // // Note that the ARNs for some resources // do not require a region, so this component might be omitted. // Default: The region the stack is deployed to. // Region *string `field:"optional" json:"region" yaml:"region"` // Resource name or path within the resource (i.e. S3 bucket object key) or a wildcard such as “"*"“. This is service-dependent. ResourceName *string `field:"optional" json:"resourceName" yaml:"resourceName"` }
Example:
subZone := route53.NewPublicHostedZone(this, jsii.String("SubZone"), &PublicHostedZoneProps{ ZoneName: jsii.String("sub.someexample.com"), }) // import the delegation role by constructing the roleArn delegationRoleArn := awscdk.stack_Of(this).FormatArn(&ArnComponents{ Region: jsii.String(""), // IAM is global in each partition Service: jsii.String("iam"), Account: jsii.String("parent-account-id"), Resource: jsii.String("role"), ResourceName: jsii.String("MyDelegationRole"), }) delegationRole := iam.Role_FromRoleArn(this, jsii.String("DelegationRole"), delegationRoleArn) // create the record // create the record route53.NewCrossAccountZoneDelegationRecord(this, jsii.String("delegate"), &CrossAccountZoneDelegationRecordProps{ DelegatedZone: subZone, ParentHostedZoneName: jsii.String("someexample.com"), // or you can use parentHostedZoneId DelegationRole: DelegationRole, })
func Arn_Split ¶
func Arn_Split(arn *string, arnFormat ArnFormat) *ArnComponents
Splits the provided ARN into its components.
Works both if 'arn' is a string like 'arn:aws:s3:::bucket', and a Token representing a dynamic CloudFormation expression (in which case the returned components will also be dynamic CloudFormation expressions, encoded as Tokens).
type ArnFormat ¶
type ArnFormat string
An enum representing the various ARN formats that different services use.
const ( // This represents a format where there is no 'resourceName' part. // // This format is used for S3 resources, // like 'arn:aws:s3:::bucket'. // Everything after the last colon is considered the 'resource', // even if it contains slashes, // like in 'arn:aws:s3:::bucket/object.zip'. ArnFormat_NO_RESOURCE_NAME ArnFormat = "NO_RESOURCE_NAME" // This represents a format where the 'resource' and 'resourceName' parts are separated with a colon. // // Like in: 'arn:aws:service:region:account:resource:resourceName'. // Everything after the last colon is considered the 'resourceName', // even if it contains slashes, // like in 'arn:aws:apigateway:region:account:resource:/test/mydemoresource/*'. ArnFormat_COLON_RESOURCE_NAME ArnFormat = "COLON_RESOURCE_NAME" // This represents a format where the 'resource' and 'resourceName' parts are separated with a slash. // // Like in: 'arn:aws:service:region:account:resource/resourceName'. // Everything after the separating slash is considered the 'resourceName', // even if it contains colons, // like in 'arn:aws:cognito-sync:region:account:identitypool/us-east-1:1a1a1a1a-ffff-1111-9999-12345678:bla'. ArnFormat_SLASH_RESOURCE_NAME ArnFormat = "SLASH_RESOURCE_NAME" // This represents a format where the 'resource' and 'resourceName' parts are seperated with a slash, but there is also an additional slash after the colon separating 'account' from 'resource'. // // Like in: 'arn:aws:service:region:account:/resource/resourceName'. // Note that the leading slash is _not_ included in the parsed 'resource' part. ArnFormat_SLASH_RESOURCE_SLASH_RESOURCE_NAME ArnFormat = "SLASH_RESOURCE_SLASH_RESOURCE_NAME" )
type Aspects ¶
type Aspects interface { // The list of aspects which were directly applied on this scope. All() *[]IAspect // Adds an aspect to apply this scope before synthesis. Add(aspect IAspect) }
Aspects can be applied to CDK tree scopes and can operate on the tree before synthesis.
Example:
import "github.com/aws/aws-cdk-go/awscdk" import "github.com/aws/constructs-go/constructs" type myAspect struct { } func (this *myAspect) visit(node iConstruct) { if *node instanceof cdk.CfnResource && *node.CfnResourceType == "Foo::Bar" { this.error(*node, jsii.String("we do not want a Foo::Bar resource")) } } func (this *myAspect) error(node iConstruct, message *string) { cdk.Annotations_Of(*node).AddError(*message) } type myStack struct { stack } func newMyStack(scope construct, id *string) *myStack { this := &myStack{} cdk.NewStack_Override(this, scope, id) stack := cdk.NewStack() cdk.NewCfnResource(stack, jsii.String("Foo"), &CfnResourceProps{ Type: jsii.String("Foo::Bar"), Properties: map[string]interface{}{ "Fred": jsii.String("Thud"), }, }) cdk.Aspects_Of(stack).Add(NewMyAspect()) return this }
func Aspects_Of ¶
func Aspects_Of(scope constructs.IConstruct) Aspects
Returns the `Aspects` object associated with a construct scope.
type AssetHashType ¶
type AssetHashType string
The type of asset hash.
NOTE: the hash is used in order to identify a specific revision of the asset, and used for optimizing and caching deployment activities related to this asset such as packaging, uploading to Amazon S3, etc.
const ( // Based on the content of the source path. // // When bundling, use `SOURCE` when the content of the bundling output is not // stable across repeated bundling operations. AssetHashType_SOURCE AssetHashType = "SOURCE" // Based on the content of the bundling output. // // Use `OUTPUT` when the source of the asset is a top level folder containing // code and/or dependencies that are not directly linked to the asset. AssetHashType_OUTPUT AssetHashType = "OUTPUT" // Use a custom hash. AssetHashType_CUSTOM AssetHashType = "CUSTOM" )
type AssetManifestBuilder ¶ added in v2.45.0
type AssetManifestBuilder interface { // Whether there are any assets registered in the manifest. HasAssets() *bool // Add a docker asset source and destination to the manifest. // // sourceHash should be unique for every source. AddDockerImageAsset(stack Stack, sourceHash *string, source *cloudassemblyschema.DockerImageSource, dest *cloudassemblyschema.DockerImageDestination) *cloudassemblyschema.DockerImageDestination // Add a file asset source and destination to the manifest. // // sourceHash should be unique for every source. AddFileAsset(stack Stack, sourceHash *string, source *cloudassemblyschema.FileSource, dest *cloudassemblyschema.FileDestination) *cloudassemblyschema.FileDestination // Add a docker image asset to the manifest with default settings. // // Derive the region from the stack, use the asset hash as the key, and set the prefix. DefaultAddDockerImageAsset(stack Stack, asset *DockerImageAssetSource, target *AssetManifestDockerImageDestination) *cloudassemblyschema.DockerImageDestination // Add a file asset to the manifest with default settings. // // Derive the region from the stack, use the asset hash as the key, copy the // file extension over, and set the prefix. DefaultAddFileAsset(stack Stack, asset *FileAssetSource, target *AssetManifestFileDestination) *cloudassemblyschema.FileDestination // Write the manifest to disk, and add it to the synthesis session. // // Return the artifact id, which should be added to the `additionalDependencies` // field of the stack artifact. EmitManifest(stack Stack, session ISynthesisSession, options *cloudassemblyschema.AssetManifestOptions, dependencies *[]*string) *string }
Build an asset manifest from assets added to a stack.
This class does not need to be used by app builders; it is only necessary for building Stack Synthesizers.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import cdk "github.com/aws/aws-cdk-go/awscdk" assetManifestBuilder := cdk.NewAssetManifestBuilder()
func NewAssetManifestBuilder ¶ added in v2.45.0
func NewAssetManifestBuilder() AssetManifestBuilder
type AssetManifestDockerImageDestination ¶ added in v2.45.0
type AssetManifestDockerImageDestination struct { // Repository name where the docker image asset should be written. RepositoryName *string `field:"required" json:"repositoryName" yaml:"repositoryName"` // Prefix to add to the asset hash to make the Docker image tag. // Default: ”. // DockerTagPrefix *string `field:"optional" json:"dockerTagPrefix" yaml:"dockerTagPrefix"` // Role to use to perform the upload. // Default: - No role. // Role *RoleOptions `field:"optional" json:"role" yaml:"role"` }
The destination for a docker image asset, when it is given to the AssetManifestBuilder.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import cdk "github.com/aws/aws-cdk-go/awscdk" assetManifestDockerImageDestination := &AssetManifestDockerImageDestination{ RepositoryName: jsii.String("repositoryName"), // the properties below are optional DockerTagPrefix: jsii.String("dockerTagPrefix"), Role: &RoleOptions{ AssumeRoleArn: jsii.String("assumeRoleArn"), // the properties below are optional AssumeRoleExternalId: jsii.String("assumeRoleExternalId"), }, }
type AssetManifestFileDestination ¶ added in v2.45.0
type AssetManifestFileDestination struct { // Bucket name where the file asset should be written. BucketName *string `field:"required" json:"bucketName" yaml:"bucketName"` // Prefix to prepend to the asset hash. // Default: ”. // BucketPrefix *string `field:"optional" json:"bucketPrefix" yaml:"bucketPrefix"` // Role to use for uploading. // Default: - current role. // Role *RoleOptions `field:"optional" json:"role" yaml:"role"` }
The destination for a file asset, when it is given to the AssetManifestBuilder.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import cdk "github.com/aws/aws-cdk-go/awscdk" assetManifestFileDestination := &AssetManifestFileDestination{ BucketName: jsii.String("bucketName"), // the properties below are optional BucketPrefix: jsii.String("bucketPrefix"), Role: &RoleOptions{ AssumeRoleArn: jsii.String("assumeRoleArn"), // the properties below are optional AssumeRoleExternalId: jsii.String("assumeRoleExternalId"), }, }
type AssetOptions ¶
type AssetOptions struct { // Specify a custom hash for this asset. // // If `assetHashType` is set it must // be set to `AssetHashType.CUSTOM`. For consistency, this custom hash will // be SHA256 hashed and encoded as hex. The resulting hash will be the asset // hash. // // NOTE: the hash is used in order to identify a specific revision of the asset, and // used for optimizing and caching deployment activities related to this asset such as // packaging, uploading to Amazon S3, etc. If you chose to customize the hash, you will // need to make sure it is updated every time the asset changes, or otherwise it is // possible that some deployments will not be invalidated. // Default: - based on `assetHashType`. // AssetHash *string `field:"optional" json:"assetHash" yaml:"assetHash"` // Specifies the type of hash to calculate for this asset. // // If `assetHash` is configured, this option must be `undefined` or // `AssetHashType.CUSTOM`. // Default: - the default is `AssetHashType.SOURCE`, but if `assetHash` is // explicitly specified this value defaults to `AssetHashType.CUSTOM`. // AssetHashType AssetHashType `field:"optional" json:"assetHashType" yaml:"assetHashType"` // Bundle the asset by executing a command in a Docker container or a custom bundling provider. // // The asset path will be mounted at `/asset-input`. The Docker // container is responsible for putting content at `/asset-output`. // The content at `/asset-output` will be zipped and used as the // final asset. // Default: - uploaded as-is to S3 if the asset is a regular file or a .zip file, // archived into a .zip file and uploaded to S3 otherwise // Bundling *BundlingOptions `field:"optional" json:"bundling" yaml:"bundling"` }
Asset hash options.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import "github.com/aws/aws-cdk-go/awscdk" var dockerImage dockerImage var localBundling iLocalBundling assetOptions := &AssetOptions{ AssetHash: jsii.String("assetHash"), AssetHashType: cdk.AssetHashType_SOURCE, Bundling: &BundlingOptions{ Image: dockerImage, // the properties below are optional BundlingFileAccess: cdk.BundlingFileAccess_VOLUME_COPY, Command: []*string{ jsii.String("command"), }, Entrypoint: []*string{ jsii.String("entrypoint"), }, Environment: map[string]*string{ "environmentKey": jsii.String("environment"), }, Local: localBundling, Network: jsii.String("network"), OutputType: cdk.BundlingOutput_ARCHIVED, Platform: jsii.String("platform"), SecurityOpt: jsii.String("securityOpt"), User: jsii.String("user"), Volumes: []dockerVolume{ &dockerVolume{ ContainerPath: jsii.String("containerPath"), HostPath: jsii.String("hostPath"), // the properties below are optional Consistency: cdk.DockerVolumeConsistency_CONSISTENT, }, }, VolumesFrom: []*string{ jsii.String("volumesFrom"), }, WorkingDirectory: jsii.String("workingDirectory"), }, }
type AssetStaging ¶
type AssetStaging interface { constructs.Construct // Absolute path to the asset data. // // If asset staging is disabled, this will just be the source path or // a temporary directory used for bundling. // // If asset staging is enabled it will be the staged path. // // IMPORTANT: If you are going to call `addFileAsset()`, use // `relativeStagedPath()` instead. AbsoluteStagedPath() *string // A cryptographic hash of the asset. AssetHash() *string // Whether this asset is an archive (zip or jar). IsArchive() *bool // The tree node. Node() constructs.Node // How this asset should be packaged. Packaging() FileAssetPackaging // The absolute path of the asset as it was referenced by the user. SourcePath() *string // Return the path to the staged asset, relative to the Cloud Assembly (manifest) directory of the given stack. // // Only returns a relative path if the asset was staged, returns an absolute path if // it was not staged. // // A bundled asset might end up in the outDir and still not count as // "staged"; if asset staging is disabled we're technically expected to // reference source directories, but we don't have a source directory for the // bundled outputs (as the bundle output is written to a temporary // directory). Nevertheless, we will still return an absolute path. // // A non-obvious directory layout may look like this: // // “` // CLOUD ASSEMBLY ROOT // +-- asset.12345abcdef/ // +-- assembly-Stage // +-- MyStack.template.json // +-- MyStack.assets.json <- will contain { "path": "../asset.12345abcdef" } // “`. RelativeStagedPath(stack Stack) *string // Returns a string representation of this construct. ToString() *string }
Stages a file or directory from a location on the file system into a staging directory.
This is controlled by the context key 'aws:cdk:asset-staging' and enabled by the CLI by default in order to ensure that when the CDK app exists, all assets are available for deployment. Otherwise, if an app references assets in temporary locations, those will not be available when it exists (see https://github.com/aws/aws-cdk/issues/1716).
The `stagedPath` property is a stringified token that represents the location of the file or directory after staging. It will be resolved only during the "prepare" stage and may be either the original path or the staged path depending on the context setting.
The file/directory are staged based on their content hash (fingerprint). This means that only if content was changed, copy will happen.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import "github.com/aws/aws-cdk-go/awscdk" var dockerImage dockerImage var localBundling iLocalBundling assetStaging := cdk.NewAssetStaging(this, jsii.String("MyAssetStaging"), &AssetStagingProps{ SourcePath: jsii.String("sourcePath"), // the properties below are optional AssetHash: jsii.String("assetHash"), AssetHashType: cdk.AssetHashType_SOURCE, Bundling: &BundlingOptions{ Image: dockerImage, // the properties below are optional BundlingFileAccess: cdk.BundlingFileAccess_VOLUME_COPY, Command: []*string{ jsii.String("command"), }, Entrypoint: []*string{ jsii.String("entrypoint"), }, Environment: map[string]*string{ "environmentKey": jsii.String("environment"), }, Local: localBundling, Network: jsii.String("network"), OutputType: cdk.BundlingOutput_ARCHIVED, Platform: jsii.String("platform"), SecurityOpt: jsii.String("securityOpt"), User: jsii.String("user"), Volumes: []dockerVolume{ &dockerVolume{ ContainerPath: jsii.String("containerPath"), HostPath: jsii.String("hostPath"), // the properties below are optional Consistency: cdk.DockerVolumeConsistency_CONSISTENT, }, }, VolumesFrom: []*string{ jsii.String("volumesFrom"), }, WorkingDirectory: jsii.String("workingDirectory"), }, Exclude: []*string{ jsii.String("exclude"), }, ExtraHash: jsii.String("extraHash"), Follow: cdk.SymlinkFollowMode_NEVER, IgnoreMode: cdk.IgnoreMode_GLOB, })
func NewAssetStaging ¶
func NewAssetStaging(scope constructs.Construct, id *string, props *AssetStagingProps) AssetStaging
type AssetStagingProps ¶
type AssetStagingProps struct { // File paths matching the patterns will be excluded. // // See `ignoreMode` to set the matching behavior. // Has no effect on Assets bundled using the `bundling` property. // Default: - nothing is excluded. // Exclude *[]*string `field:"optional" json:"exclude" yaml:"exclude"` // A strategy for how to handle symlinks. // Default: SymlinkFollowMode.NEVER // Follow SymlinkFollowMode `field:"optional" json:"follow" yaml:"follow"` // The ignore behavior to use for `exclude` patterns. // Default: IgnoreMode.GLOB // IgnoreMode IgnoreMode `field:"optional" json:"ignoreMode" yaml:"ignoreMode"` // Extra information to encode into the fingerprint (e.g. build instructions and other inputs). // Default: - hash is only based on source content. // ExtraHash *string `field:"optional" json:"extraHash" yaml:"extraHash"` // Specify a custom hash for this asset. // // If `assetHashType` is set it must // be set to `AssetHashType.CUSTOM`. For consistency, this custom hash will // be SHA256 hashed and encoded as hex. The resulting hash will be the asset // hash. // // NOTE: the hash is used in order to identify a specific revision of the asset, and // used for optimizing and caching deployment activities related to this asset such as // packaging, uploading to Amazon S3, etc. If you chose to customize the hash, you will // need to make sure it is updated every time the asset changes, or otherwise it is // possible that some deployments will not be invalidated. // Default: - based on `assetHashType`. // AssetHash *string `field:"optional" json:"assetHash" yaml:"assetHash"` // Specifies the type of hash to calculate for this asset. // // If `assetHash` is configured, this option must be `undefined` or // `AssetHashType.CUSTOM`. // Default: - the default is `AssetHashType.SOURCE`, but if `assetHash` is // explicitly specified this value defaults to `AssetHashType.CUSTOM`. // AssetHashType AssetHashType `field:"optional" json:"assetHashType" yaml:"assetHashType"` // Bundle the asset by executing a command in a Docker container or a custom bundling provider. // // The asset path will be mounted at `/asset-input`. The Docker // container is responsible for putting content at `/asset-output`. // The content at `/asset-output` will be zipped and used as the // final asset. // Default: - uploaded as-is to S3 if the asset is a regular file or a .zip file, // archived into a .zip file and uploaded to S3 otherwise // Bundling *BundlingOptions `field:"optional" json:"bundling" yaml:"bundling"` // The source file or directory to copy from. SourcePath *string `field:"required" json:"sourcePath" yaml:"sourcePath"` }
Initialization properties for `AssetStaging`.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import "github.com/aws/aws-cdk-go/awscdk" var dockerImage dockerImage var localBundling iLocalBundling assetStagingProps := &AssetStagingProps{ SourcePath: jsii.String("sourcePath"), // the properties below are optional AssetHash: jsii.String("assetHash"), AssetHashType: cdk.AssetHashType_SOURCE, Bundling: &BundlingOptions{ Image: dockerImage, // the properties below are optional BundlingFileAccess: cdk.BundlingFileAccess_VOLUME_COPY, Command: []*string{ jsii.String("command"), }, Entrypoint: []*string{ jsii.String("entrypoint"), }, Environment: map[string]*string{ "environmentKey": jsii.String("environment"), }, Local: localBundling, Network: jsii.String("network"), OutputType: cdk.BundlingOutput_ARCHIVED, Platform: jsii.String("platform"), SecurityOpt: jsii.String("securityOpt"), User: jsii.String("user"), Volumes: []dockerVolume{ &dockerVolume{ ContainerPath: jsii.String("containerPath"), HostPath: jsii.String("hostPath"), // the properties below are optional Consistency: cdk.DockerVolumeConsistency_CONSISTENT, }, }, VolumesFrom: []*string{ jsii.String("volumesFrom"), }, WorkingDirectory: jsii.String("workingDirectory"), }, Exclude: []*string{ jsii.String("exclude"), }, ExtraHash: jsii.String("extraHash"), Follow: cdk.SymlinkFollowMode_NEVER, IgnoreMode: cdk.IgnoreMode_GLOB, }
type Aws ¶
type Aws interface { }
Accessor for pseudo parameters.
Since pseudo parameters need to be anchored to a stack somewhere in the construct tree, this class takes an scope parameter; the pseudo parameter values can be obtained as properties from an scoped object.
type BootstraplessSynthesizer ¶
type BootstraplessSynthesizer interface { DefaultStackSynthesizer // The qualifier used to bootstrap this stack. BootstrapQualifier() *string // Retrieve the bound stack. // // Fails if the stack hasn't been bound yet. BoundStack() Stack // Returns the ARN of the CFN execution Role. CloudFormationExecutionRoleArn() *string // Returns the ARN of the deploy Role. DeployRoleArn() *string // The role used to lookup for this stack. LookupRole() *string // Return the currently bound stack. // Deprecated: Use `boundStack` instead. Stack() Stack // Add a CfnRule to the bound stack that checks whether an SSM parameter exceeds a given version. // // This will modify the template, so must be called before the stack is synthesized. AddBootstrapVersionRule(requiredVersion *float64, bootstrapStackVersionSsmParameter *string) // Register a Docker Image Asset. // // Returns the parameters that can be used to refer to the asset inside the template. // // The synthesizer must rely on some out-of-band mechanism to make sure the given files // are actually placed in the returned location before the deployment happens. This can // be by writing the instructions to the asset manifest (for use by the `cdk-assets` tool), // by relying on the CLI to upload files (legacy behavior), or some other operator controlled // mechanism. AddDockerImageAsset(_asset *DockerImageAssetSource) *DockerImageAssetLocation // Register a File Asset. // // Returns the parameters that can be used to refer to the asset inside the template. // // The synthesizer must rely on some out-of-band mechanism to make sure the given files // are actually placed in the returned location before the deployment happens. This can // be by writing the instructions to the asset manifest (for use by the `cdk-assets` tool), // by relying on the CLI to upload files (legacy behavior), or some other operator controlled // mechanism. AddFileAsset(_asset *FileAssetSource) *FileAssetLocation // Bind to the stack this environment is going to be used on. // // Must be called before any of the other methods are called. Bind(stack Stack) // Turn a docker asset location into a CloudFormation representation of that location. // // If any of the fields contain placeholders, the result will be wrapped in a `Fn.sub`. CloudFormationLocationFromDockerImageAsset(dest *cloudassemblyschema.DockerImageDestination) *DockerImageAssetLocation // Turn a file asset location into a CloudFormation representation of that location. // // If any of the fields contain placeholders, the result will be wrapped in a `Fn.sub`. CloudFormationLocationFromFileAsset(location *cloudassemblyschema.FileDestination) *FileAssetLocation // Write the CloudFormation stack artifact to the session. // // Use default settings to add a CloudFormationStackArtifact artifact to // the given synthesis session. The Stack artifact will control the settings for the // CloudFormation deployment. EmitArtifact(session ISynthesisSession, options *SynthesizeStackArtifactOptions) // Write the stack artifact to the session. // // Use default settings to add a CloudFormationStackArtifact artifact to // the given synthesis session. // Deprecated: Use `emitArtifact` instead. EmitStackArtifact(stack Stack, session ISynthesisSession, options *SynthesizeStackArtifactOptions) // Produce a bound Stack Synthesizer for the given stack. // // This method may be called more than once on the same object. ReusableBind(stack Stack) IBoundStackSynthesizer // Synthesize the associated stack to the session. Synthesize(session ISynthesisSession) // Synthesize the stack template to the given session, passing the configured lookup role ARN. SynthesizeStackTemplate(stack Stack, session ISynthesisSession) // Write the stack template to the given session. // // Return a descriptor that represents the stack template as a file asset // source, for adding to an asset manifest (if desired). This can be used to // have the asset manifest system (`cdk-assets`) upload the template to S3 // using the appropriate role, so that afterwards only a CloudFormation // deployment is necessary. // // If the template is uploaded as an asset, the `stackTemplateAssetObjectUrl` // property should be set when calling `emitArtifact.` // // If the template is *NOT* uploaded as an asset first and the template turns // out to be >50KB, it will need to be uploaded to S3 anyway. At that point // the credentials will be the same identity that is doing the `UpdateStack` // call, which may not have the right permissions to write to S3. SynthesizeTemplate(session ISynthesisSession, lookupRoleArn *string) *FileAssetSource }
Synthesizer that reuses bootstrap roles from a different region.
A special synthesizer that behaves similarly to `DefaultStackSynthesizer`, but doesn't require bootstrapping the environment it operates in. Instead, it will re-use the Roles that were created for a different region (which is possible because IAM is a global service).
However, it will not assume asset buckets or repositories have been created, and therefore does not support assets.
The name is poorly chosen -- it does still require bootstrapping, it just does not support assets.
Used by the CodePipeline construct for the support stacks needed for cross-region replication S3 buckets. App builders do not need to use this synthesizer directly.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import cdk "github.com/aws/aws-cdk-go/awscdk" bootstraplessSynthesizer := cdk.NewBootstraplessSynthesizer(&BootstraplessSynthesizerProps{ CloudFormationExecutionRoleArn: jsii.String("cloudFormationExecutionRoleArn"), DeployRoleArn: jsii.String("deployRoleArn"), })
func NewBootstraplessSynthesizer ¶
func NewBootstraplessSynthesizer(props *BootstraplessSynthesizerProps) BootstraplessSynthesizer
type BootstraplessSynthesizerProps ¶
type BootstraplessSynthesizerProps struct { // The CFN execution Role ARN to use. // Default: - No CloudFormation role (use CLI credentials). // CloudFormationExecutionRoleArn *string `field:"optional" json:"cloudFormationExecutionRoleArn" yaml:"cloudFormationExecutionRoleArn"` // The deploy Role ARN to use. // Default: - No deploy role (use CLI credentials). // DeployRoleArn *string `field:"optional" json:"deployRoleArn" yaml:"deployRoleArn"` }
Construction properties of `BootstraplessSynthesizer`.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import cdk "github.com/aws/aws-cdk-go/awscdk" bootstraplessSynthesizerProps := &BootstraplessSynthesizerProps{ CloudFormationExecutionRoleArn: jsii.String("cloudFormationExecutionRoleArn"), DeployRoleArn: jsii.String("deployRoleArn"), }
type BundlingFileAccess ¶ added in v2.63.0
type BundlingFileAccess string
The access mechanism used to make source files available to the bundling container and to return the bundling output back to the host.
Example:
go.NewGoFunction(this, jsii.String("GoFunction"), &GoFunctionProps{ Entry: jsii.String("app/cmd/api"), Bundling: &BundlingOptions{ BundlingFileAccess: awscdk.BundlingFileAccess_VOLUME_COPY, }, })
const ( // Creates temporary volumes and containers to copy files from the host to the bundling container and back. // // This is slower, but works also in more complex situations with remote or shared docker sockets. BundlingFileAccess_VOLUME_COPY BundlingFileAccess = "VOLUME_COPY" // The source and output folders will be mounted as bind mount from the host system This is faster and simpler, but less portable than `VOLUME_COPY`. BundlingFileAccess_BIND_MOUNT BundlingFileAccess = "BIND_MOUNT" )
type BundlingOptions ¶
type BundlingOptions struct { // The Docker image where the command will run. Image DockerImage `field:"required" json:"image" yaml:"image"` // The access mechanism used to make source files available to the bundling container and to return the bundling output back to the host. // Default: - BundlingFileAccess.BIND_MOUNT // BundlingFileAccess BundlingFileAccess `field:"optional" json:"bundlingFileAccess" yaml:"bundlingFileAccess"` // The command to run in the Docker container. // // Example value: `['npm', 'install']`. // See: https://docs.docker.com/engine/reference/run/ // // Default: - run the command defined in the image. // Command *[]*string `field:"optional" json:"command" yaml:"command"` // The entrypoint to run in the Docker container. // // Example value: `['/bin/sh', '-c']`. // See: https://docs.docker.com/engine/reference/builder/#entrypoint // // Default: - run the entrypoint defined in the image. // Entrypoint *[]*string `field:"optional" json:"entrypoint" yaml:"entrypoint"` // The environment variables to pass to the Docker container. // Default: - no environment variables. // Environment *map[string]*string `field:"optional" json:"environment" yaml:"environment"` // Local bundling provider. // // The provider implements a method `tryBundle()` which should return `true` // if local bundling was performed. If `false` is returned, docker bundling // will be done. // Default: - bundling will only be performed in a Docker container. // Local ILocalBundling `field:"optional" json:"local" yaml:"local"` // Docker [Networking options](https://docs.docker.com/engine/reference/commandline/run/#connect-a-container-to-a-network---network). // Default: - no networking options. // Network *string `field:"optional" json:"network" yaml:"network"` // The type of output that this bundling operation is producing. // Default: BundlingOutput.AUTO_DISCOVER // OutputType BundlingOutput `field:"optional" json:"outputType" yaml:"outputType"` // Platform to build for. _Requires Docker Buildx_. // // Specify this property to build images on a specific platform. // Default: - no platform specified (the current machine architecture will be used). // Platform *string `field:"optional" json:"platform" yaml:"platform"` // [Security configuration](https://docs.docker.com/engine/reference/run/#security-configuration) when running the docker container. // Default: - no security options. // SecurityOpt *string `field:"optional" json:"securityOpt" yaml:"securityOpt"` // The user to use when running the Docker container. // // user | user:group | uid | uid:gid | user:gid | uid:group. // See: https://docs.docker.com/engine/reference/run/#user // // Default: - uid:gid of the current user or 1000:1000 on Windows. // User *string `field:"optional" json:"user" yaml:"user"` // Additional Docker volumes to mount. // Default: - no additional volumes are mounted. // Volumes *[]*DockerVolume `field:"optional" json:"volumes" yaml:"volumes"` // Where to mount the specified volumes from. // See: https://docs.docker.com/engine/reference/commandline/run/#mount-volumes-from-container---volumes-from // // Default: - no containers are specified to mount volumes from. // VolumesFrom *[]*string `field:"optional" json:"volumesFrom" yaml:"volumesFrom"` // Working directory inside the Docker container. // Default: /asset-input. // WorkingDirectory *string `field:"optional" json:"workingDirectory" yaml:"workingDirectory"` }
Bundling options.
Example:
import "github.com/aws/aws-cdk-go/awscdk" asset := awscdk.NewAsset(this, jsii.String("BundledAsset"), &AssetProps{ Path: jsii.String("/path/to/asset"), Bundling: &BundlingOptions{ Image: cdk.DockerImage_FromRegistry(jsii.String("alpine")), Command: []*string{ jsii.String("command-that-produces-an-archive.sh"), }, OutputType: cdk.BundlingOutput_NOT_ARCHIVED, }, })
type BundlingOutput ¶
type BundlingOutput string
The type of output that a bundling operation is producing.
Example:
import "github.com/aws/aws-cdk-go/awscdk" asset := awscdk.NewAsset(this, jsii.String("BundledAsset"), &AssetProps{ Path: jsii.String("/path/to/asset"), Bundling: &BundlingOptions{ Image: cdk.DockerImage_FromRegistry(jsii.String("alpine")), Command: []*string{ jsii.String("command-that-produces-an-archive.sh"), }, OutputType: cdk.BundlingOutput_NOT_ARCHIVED, }, })
const ( // The bundling output directory includes a single .zip or .jar file which will be used as the final bundle. If the output directory does not include exactly a single archive, bundling will fail. BundlingOutput_ARCHIVED BundlingOutput = "ARCHIVED" // The bundling output directory contains one or more files which will be archived and uploaded as a .zip file to S3. BundlingOutput_NOT_ARCHIVED BundlingOutput = "NOT_ARCHIVED" // If the bundling output directory contains a single archive file (zip or jar) it will be used as the bundle output as-is. // // Otherwise, all the files in the bundling output directory will be zipped. BundlingOutput_AUTO_DISCOVER BundlingOutput = "AUTO_DISCOVER" // The bundling output directory includes a single file which will be used as the final bundle. // // If the output directory does not // include exactly a single file, bundling will fail. // // Similar to ARCHIVED but for non-archive files. BundlingOutput_SINGLE_FILE BundlingOutput = "SINGLE_FILE" )
type CfnAutoScalingReplacingUpdate ¶
type CfnAutoScalingReplacingUpdate struct {
WillReplace *bool `field:"optional" json:"willReplace" yaml:"willReplace"`
}
Specifies whether an Auto Scaling group and the instances it contains are replaced during an update.
During replacement, AWS CloudFormation retains the old group until it finishes creating the new one. If the update fails, AWS CloudFormation can roll back to the old Auto Scaling group and delete the new Auto Scaling group.
While AWS CloudFormation creates the new group, it doesn't detach or attach any instances. After successfully creating the new Auto Scaling group, AWS CloudFormation deletes the old Auto Scaling group during the cleanup process.
When you set the WillReplace parameter, remember to specify a matching CreationPolicy. If the minimum number of instances (specified by the MinSuccessfulInstancesPercent property) don't signal success within the Timeout period (specified in the CreationPolicy policy), the replacement update fails and AWS CloudFormation rolls back to the old Auto Scaling group.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import cdk "github.com/aws/aws-cdk-go/awscdk" cfnAutoScalingReplacingUpdate := &CfnAutoScalingReplacingUpdate{ WillReplace: jsii.Boolean(false), }
type CfnAutoScalingRollingUpdate ¶
type CfnAutoScalingRollingUpdate struct { // Specifies the maximum number of instances that AWS CloudFormation updates. MaxBatchSize *float64 `field:"optional" json:"maxBatchSize" yaml:"maxBatchSize"` // Specifies the minimum number of instances that must be in service within the Auto Scaling group while AWS CloudFormation updates old instances. MinInstancesInService *float64 `field:"optional" json:"minInstancesInService" yaml:"minInstancesInService"` // Specifies the percentage of instances in an Auto Scaling rolling update that must signal success for an update to succeed. // // You can specify a value from 0 to 100. AWS CloudFormation rounds to the nearest tenth of a percent. For example, if you // update five instances with a minimum successful percentage of 50, three instances must signal success. // // If an instance doesn't send a signal within the time specified in the PauseTime property, AWS CloudFormation assumes // that the instance wasn't updated. // // If you specify this property, you must also enable the WaitOnResourceSignals and PauseTime properties. MinSuccessfulInstancesPercent *float64 `field:"optional" json:"minSuccessfulInstancesPercent" yaml:"minSuccessfulInstancesPercent"` // The amount of time that AWS CloudFormation pauses after making a change to a batch of instances to give those instances time to start software applications. // // For example, you might need to specify PauseTime when scaling up the number of // instances in an Auto Scaling group. // // If you enable the WaitOnResourceSignals property, PauseTime is the amount of time that AWS CloudFormation should wait // for the Auto Scaling group to receive the required number of valid signals from added or replaced instances. If the // PauseTime is exceeded before the Auto Scaling group receives the required number of signals, the update fails. For best // results, specify a time period that gives your applications sufficient time to get started. If the update needs to be // rolled back, a short PauseTime can cause the rollback to fail. // // Specify PauseTime in the ISO8601 duration format (in the format PT#H#M#S, where each # is the number of hours, minutes, // and seconds, respectively). The maximum PauseTime is one hour (PT1H). PauseTime *string `field:"optional" json:"pauseTime" yaml:"pauseTime"` // Specifies the Auto Scaling processes to suspend during a stack update. // // Suspending processes prevents Auto Scaling from // interfering with a stack update. For example, you can suspend alarming so that Auto Scaling doesn't execute scaling // policies associated with an alarm. For valid values, see the ScalingProcesses.member.N parameter for the SuspendProcesses // action in the Auto Scaling API Reference. SuspendProcesses *[]*string `field:"optional" json:"suspendProcesses" yaml:"suspendProcesses"` // Specifies whether the Auto Scaling group waits on signals from new instances during an update. // // Use this property to // ensure that instances have completed installing and configuring applications before the Auto Scaling group update proceeds. // AWS CloudFormation suspends the update of an Auto Scaling group after new EC2 instances are launched into the group. // AWS CloudFormation must receive a signal from each new instance within the specified PauseTime before continuing the update. // To signal the Auto Scaling group, use the cfn-signal helper script or SignalResource API. // // To have instances wait for an Elastic Load Balancing health check before they signal success, add a health-check // verification by using the cfn-init helper script. For an example, see the verify_instance_health command in the Auto Scaling // rolling updates sample template. WaitOnResourceSignals *bool `field:"optional" json:"waitOnResourceSignals" yaml:"waitOnResourceSignals"` }
To specify how AWS CloudFormation handles rolling updates for an Auto Scaling group, use the AutoScalingRollingUpdate policy.
Rolling updates enable you to specify whether AWS CloudFormation updates instances that are in an Auto Scaling group in batches or all at once.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import cdk "github.com/aws/aws-cdk-go/awscdk" cfnAutoScalingRollingUpdate := &CfnAutoScalingRollingUpdate{ MaxBatchSize: jsii.Number(123), MinInstancesInService: jsii.Number(123), MinSuccessfulInstancesPercent: jsii.Number(123), PauseTime: jsii.String("pauseTime"), SuspendProcesses: []*string{ jsii.String("suspendProcesses"), }, WaitOnResourceSignals: jsii.Boolean(false), }
type CfnAutoScalingScheduledAction ¶
type CfnAutoScalingScheduledAction struct {
IgnoreUnmodifiedGroupSizeProperties *bool `field:"optional" json:"ignoreUnmodifiedGroupSizeProperties" yaml:"ignoreUnmodifiedGroupSizeProperties"`
}
With scheduled actions, the group size properties of an Auto Scaling group can change at any time.
When you update a stack with an Auto Scaling group and scheduled action, AWS CloudFormation always sets the group size property values of your Auto Scaling group to the values that are defined in the AWS::AutoScaling::AutoScalingGroup resource of your template, even if a scheduled action is in effect.
If you do not want AWS CloudFormation to change any of the group size property values when you have a scheduled action in effect, use the AutoScalingScheduledAction update policy to prevent AWS CloudFormation from changing the MinSize, MaxSize, or DesiredCapacity properties unless you have modified these values in your template.\
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import cdk "github.com/aws/aws-cdk-go/awscdk" cfnAutoScalingScheduledAction := &CfnAutoScalingScheduledAction{ IgnoreUnmodifiedGroupSizeProperties: jsii.Boolean(false), }
type CfnCapabilities ¶
type CfnCapabilities string
Capabilities that affect whether CloudFormation is allowed to change IAM resources.
const ( // No IAM Capabilities. // // Pass this capability if you wish to block the creation IAM resources. CfnCapabilities_NONE CfnCapabilities = "NONE" // Capability to create anonymous IAM resources. // // Pass this capability if you're only creating anonymous resources. CfnCapabilities_ANONYMOUS_IAM CfnCapabilities = "ANONYMOUS_IAM" // Capability to create named IAM resources. // // Pass this capability if you're creating IAM resources that have physical // names. // // `CloudFormationCapabilities.NamedIAM` implies `CloudFormationCapabilities.IAM`; you don't have to pass both. CfnCapabilities_NAMED_IAM CfnCapabilities = "NAMED_IAM" // Capability to run CloudFormation macros. // // Pass this capability if your template includes macros, for example AWS::Include or AWS::Serverless. CfnCapabilities_AUTO_EXPAND CfnCapabilities = "AUTO_EXPAND" )
type CfnCodeDeployBlueGreenAdditionalOptions ¶
type CfnCodeDeployBlueGreenAdditionalOptions struct { // Specifies time to wait, in minutes, before terminating the blue resources. // Default: - 5 minutes. // TerminationWaitTimeInMinutes *float64 `field:"optional" json:"terminationWaitTimeInMinutes" yaml:"terminationWaitTimeInMinutes"` }
Additional options for the blue/green deployment.
The type of the `CfnCodeDeployBlueGreenHookProps.additionalOptions` property.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import cdk "github.com/aws/aws-cdk-go/awscdk" cfnCodeDeployBlueGreenAdditionalOptions := &CfnCodeDeployBlueGreenAdditionalOptions{ TerminationWaitTimeInMinutes: jsii.Number(123), }
type CfnCodeDeployBlueGreenApplication ¶
type CfnCodeDeployBlueGreenApplication struct { // The detailed attributes of the deployed target. EcsAttributes *CfnCodeDeployBlueGreenEcsAttributes `field:"required" json:"ecsAttributes" yaml:"ecsAttributes"` // The target that is being deployed. Target *CfnCodeDeployBlueGreenApplicationTarget `field:"required" json:"target" yaml:"target"` }
The application actually being deployed.
Type of the `CfnCodeDeployBlueGreenHookProps.applications` property.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import cdk "github.com/aws/aws-cdk-go/awscdk" cfnCodeDeployBlueGreenApplication := &CfnCodeDeployBlueGreenApplication{ EcsAttributes: &CfnCodeDeployBlueGreenEcsAttributes{ TaskDefinitions: []*string{ jsii.String("taskDefinitions"), }, TaskSets: []*string{ jsii.String("taskSets"), }, TrafficRouting: &CfnTrafficRouting{ ProdTrafficRoute: &CfnTrafficRoute{ LogicalId: jsii.String("logicalId"), Type: jsii.String("type"), }, TargetGroups: []*string{ jsii.String("targetGroups"), }, TestTrafficRoute: &CfnTrafficRoute{ LogicalId: jsii.String("logicalId"), Type: jsii.String("type"), }, }, }, Target: &CfnCodeDeployBlueGreenApplicationTarget{ LogicalId: jsii.String("logicalId"), Type: jsii.String("type"), }, }
type CfnCodeDeployBlueGreenApplicationTarget ¶
type CfnCodeDeployBlueGreenApplicationTarget struct { // The logical id of the target resource. LogicalId *string `field:"required" json:"logicalId" yaml:"logicalId"` // The resource type of the target being deployed. // // Right now, the only allowed value is 'AWS::ECS::Service'. Type *string `field:"required" json:"type" yaml:"type"` }
Type of the `CfnCodeDeployBlueGreenApplication.target` property.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import cdk "github.com/aws/aws-cdk-go/awscdk" cfnCodeDeployBlueGreenApplicationTarget := &CfnCodeDeployBlueGreenApplicationTarget{ LogicalId: jsii.String("logicalId"), Type: jsii.String("type"), }
type CfnCodeDeployBlueGreenEcsAttributes ¶
type CfnCodeDeployBlueGreenEcsAttributes struct { // The logical IDs of the blue and green, respectively, AWS::ECS::TaskDefinition task definitions. TaskDefinitions *[]*string `field:"required" json:"taskDefinitions" yaml:"taskDefinitions"` // The logical IDs of the blue and green, respectively, AWS::ECS::TaskSet task sets. TaskSets *[]*string `field:"required" json:"taskSets" yaml:"taskSets"` // The traffic routing configuration. TrafficRouting *CfnTrafficRouting `field:"required" json:"trafficRouting" yaml:"trafficRouting"` }
The attributes of the ECS Service being deployed.
Type of the `CfnCodeDeployBlueGreenApplication.ecsAttributes` property.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import cdk "github.com/aws/aws-cdk-go/awscdk" cfnCodeDeployBlueGreenEcsAttributes := &CfnCodeDeployBlueGreenEcsAttributes{ TaskDefinitions: []*string{ jsii.String("taskDefinitions"), }, TaskSets: []*string{ jsii.String("taskSets"), }, TrafficRouting: &CfnTrafficRouting{ ProdTrafficRoute: &CfnTrafficRoute{ LogicalId: jsii.String("logicalId"), Type: jsii.String("type"), }, TargetGroups: []*string{ jsii.String("targetGroups"), }, TestTrafficRoute: &CfnTrafficRoute{ LogicalId: jsii.String("logicalId"), Type: jsii.String("type"), }, }, }
type CfnCodeDeployBlueGreenHook ¶
type CfnCodeDeployBlueGreenHook interface { CfnHook // Additional options for the blue/green deployment. // Default: - no additional options. // AdditionalOptions() *CfnCodeDeployBlueGreenAdditionalOptions SetAdditionalOptions(val *CfnCodeDeployBlueGreenAdditionalOptions) // Properties of the Amazon ECS applications being deployed. Applications() *[]*CfnCodeDeployBlueGreenApplication SetApplications(val *[]*CfnCodeDeployBlueGreenApplication) // Returns: the stack trace of the point where this Resource was created from, sourced // from the +metadata+ entry typed +aws:cdk:logicalId+, and with the bottom-most // node +internal+ entries filtered. CreationStack() *[]*string // Use lifecycle event hooks to specify a Lambda function that CodeDeploy can call to validate a deployment. // // You can use the same function or a different one for deployment lifecycle events. // Following completion of the validation tests, // the Lambda `CfnCodeDeployBlueGreenLifecycleEventHooks.afterAllowTraffic` // function calls back CodeDeploy and delivers a result of 'Succeeded' or 'Failed'. // Default: - no lifecycle event hooks. // LifecycleEventHooks() *CfnCodeDeployBlueGreenLifecycleEventHooks SetLifecycleEventHooks(val *CfnCodeDeployBlueGreenLifecycleEventHooks) // The logical ID for this CloudFormation stack element. // // The logical ID of the element // is calculated from the path of the resource node in the construct tree. // // To override this value, use `overrideLogicalId(newLogicalId)`. // // Returns: the logical ID as a stringified token. This value will only get // resolved during synthesis. LogicalId() *string // The tree node. Node() constructs.Node // The IAM Role for CloudFormation to use to perform blue-green deployments. ServiceRole() *string SetServiceRole(val *string) // The stack in which this element is defined. // // CfnElements must be defined within a stack scope (directly or indirectly). Stack() Stack // Traffic routing configuration settings. // Default: - time-based canary traffic shifting, with a 15% step percentage and a five minute bake time. // TrafficRoutingConfig() *CfnTrafficRoutingConfig SetTrafficRoutingConfig(val *CfnTrafficRoutingConfig) // The type of the hook (for example, "AWS::CodeDeploy::BlueGreen"). Type() *string // Overrides the auto-generated logical ID with a specific ID. OverrideLogicalId(newLogicalId *string) RenderProperties(_props *map[string]interface{}) *map[string]interface{} // Returns a string representation of this construct. ToString() *string }
A CloudFormation Hook for CodeDeploy blue-green ECS deployments.
Example:
var cfnTemplate cfnInclude // mutating the hook var myRole role hook := cfnTemplate.GetHook(jsii.String("MyOutput")) codeDeployHook := hook.(cfnCodeDeployBlueGreenHook) codeDeployHook.serviceRole = myRole.RoleArn
func NewCfnCodeDeployBlueGreenHook ¶
func NewCfnCodeDeployBlueGreenHook(scope constructs.Construct, id *string, props *CfnCodeDeployBlueGreenHookProps) CfnCodeDeployBlueGreenHook
Creates a new CodeDeploy blue-green ECS Hook.
type CfnCodeDeployBlueGreenHookProps ¶
type CfnCodeDeployBlueGreenHookProps struct { // Properties of the Amazon ECS applications being deployed. Applications *[]*CfnCodeDeployBlueGreenApplication `field:"required" json:"applications" yaml:"applications"` // The IAM Role for CloudFormation to use to perform blue-green deployments. ServiceRole *string `field:"required" json:"serviceRole" yaml:"serviceRole"` // Additional options for the blue/green deployment. // Default: - no additional options. // AdditionalOptions *CfnCodeDeployBlueGreenAdditionalOptions `field:"optional" json:"additionalOptions" yaml:"additionalOptions"` // Use lifecycle event hooks to specify a Lambda function that CodeDeploy can call to validate a deployment. // // You can use the same function or a different one for deployment lifecycle events. // Following completion of the validation tests, // the Lambda `CfnCodeDeployBlueGreenLifecycleEventHooks.afterAllowTraffic` // function calls back CodeDeploy and delivers a result of 'Succeeded' or 'Failed'. // Default: - no lifecycle event hooks. // LifecycleEventHooks *CfnCodeDeployBlueGreenLifecycleEventHooks `field:"optional" json:"lifecycleEventHooks" yaml:"lifecycleEventHooks"` // Traffic routing configuration settings. // Default: - time-based canary traffic shifting, with a 15% step percentage and a five minute bake time. // TrafficRoutingConfig *CfnTrafficRoutingConfig `field:"optional" json:"trafficRoutingConfig" yaml:"trafficRoutingConfig"` }
Construction properties of `CfnCodeDeployBlueGreenHook`.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import cdk "github.com/aws/aws-cdk-go/awscdk" cfnCodeDeployBlueGreenHookProps := &CfnCodeDeployBlueGreenHookProps{ Applications: []cfnCodeDeployBlueGreenApplication{ &cfnCodeDeployBlueGreenApplication{ EcsAttributes: &CfnCodeDeployBlueGreenEcsAttributes{ TaskDefinitions: []*string{ jsii.String("taskDefinitions"), }, TaskSets: []*string{ jsii.String("taskSets"), }, TrafficRouting: &CfnTrafficRouting{ ProdTrafficRoute: &CfnTrafficRoute{ LogicalId: jsii.String("logicalId"), Type: jsii.String("type"), }, TargetGroups: []*string{ jsii.String("targetGroups"), }, TestTrafficRoute: &CfnTrafficRoute{ LogicalId: jsii.String("logicalId"), Type: jsii.String("type"), }, }, }, Target: &CfnCodeDeployBlueGreenApplicationTarget{ LogicalId: jsii.String("logicalId"), Type: jsii.String("type"), }, }, }, ServiceRole: jsii.String("serviceRole"), // the properties below are optional AdditionalOptions: &CfnCodeDeployBlueGreenAdditionalOptions{ TerminationWaitTimeInMinutes: jsii.Number(123), }, LifecycleEventHooks: &CfnCodeDeployBlueGreenLifecycleEventHooks{ AfterAllowTestTraffic: jsii.String("afterAllowTestTraffic"), AfterAllowTraffic: jsii.String("afterAllowTraffic"), AfterInstall: jsii.String("afterInstall"), BeforeAllowTraffic: jsii.String("beforeAllowTraffic"), BeforeInstall: jsii.String("beforeInstall"), }, TrafficRoutingConfig: &CfnTrafficRoutingConfig{ Type: cdk.CfnTrafficRoutingType_ALL_AT_ONCE, // the properties below are optional TimeBasedCanary: &CfnTrafficRoutingTimeBasedCanary{ BakeTimeMins: jsii.Number(123), StepPercentage: jsii.Number(123), }, TimeBasedLinear: &CfnTrafficRoutingTimeBasedLinear{ BakeTimeMins: jsii.Number(123), StepPercentage: jsii.Number(123), }, }, }
type CfnCodeDeployBlueGreenLifecycleEventHooks ¶
type CfnCodeDeployBlueGreenLifecycleEventHooks struct { // Function to use to run tasks after the test listener serves traffic to the replacement task set. // Default: - none. // AfterAllowTestTraffic *string `field:"optional" json:"afterAllowTestTraffic" yaml:"afterAllowTestTraffic"` // Function to use to run tasks after the second target group serves traffic to the replacement task set. // Default: - none. // AfterAllowTraffic *string `field:"optional" json:"afterAllowTraffic" yaml:"afterAllowTraffic"` // Function to use to run tasks after the replacement task set is created and one of the target groups is associated with it. // Default: - none. // AfterInstall *string `field:"optional" json:"afterInstall" yaml:"afterInstall"` // Function to use to run tasks after the second target group is associated with the replacement task set, but before traffic is shifted to the replacement task set. // Default: - none. // BeforeAllowTraffic *string `field:"optional" json:"beforeAllowTraffic" yaml:"beforeAllowTraffic"` // Function to use to run tasks before the replacement task set is created. // Default: - none. // BeforeInstall *string `field:"optional" json:"beforeInstall" yaml:"beforeInstall"` }
Lifecycle events for blue-green deployments.
The type of the `CfnCodeDeployBlueGreenHookProps.lifecycleEventHooks` property.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import cdk "github.com/aws/aws-cdk-go/awscdk" cfnCodeDeployBlueGreenLifecycleEventHooks := &CfnCodeDeployBlueGreenLifecycleEventHooks{ AfterAllowTestTraffic: jsii.String("afterAllowTestTraffic"), AfterAllowTraffic: jsii.String("afterAllowTraffic"), AfterInstall: jsii.String("afterInstall"), BeforeAllowTraffic: jsii.String("beforeAllowTraffic"), BeforeInstall: jsii.String("beforeInstall"), }
type CfnCodeDeployLambdaAliasUpdate ¶
type CfnCodeDeployLambdaAliasUpdate struct { // The name of the AWS CodeDeploy application. ApplicationName *string `field:"required" json:"applicationName" yaml:"applicationName"` // The name of the AWS CodeDeploy deployment group. // // This is where the traffic-shifting policy is set. DeploymentGroupName *string `field:"required" json:"deploymentGroupName" yaml:"deploymentGroupName"` // The name of the Lambda function to run after traffic routing completes. AfterAllowTrafficHook *string `field:"optional" json:"afterAllowTrafficHook" yaml:"afterAllowTrafficHook"` // The name of the Lambda function to run before traffic routing starts. BeforeAllowTrafficHook *string `field:"optional" json:"beforeAllowTrafficHook" yaml:"beforeAllowTrafficHook"` }
To perform an AWS CodeDeploy deployment when the version changes on an AWS::Lambda::Alias resource, use the CodeDeployLambdaAliasUpdate update policy.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import cdk "github.com/aws/aws-cdk-go/awscdk" cfnCodeDeployLambdaAliasUpdate := &CfnCodeDeployLambdaAliasUpdate{ ApplicationName: jsii.String("applicationName"), DeploymentGroupName: jsii.String("deploymentGroupName"), // the properties below are optional AfterAllowTrafficHook: jsii.String("afterAllowTrafficHook"), BeforeAllowTrafficHook: jsii.String("beforeAllowTrafficHook"), }
type CfnCondition ¶
type CfnCondition interface { CfnElement ICfnConditionExpression IResolvable // Returns: the stack trace of the point where this Resource was created from, sourced // from the +metadata+ entry typed +aws:cdk:logicalId+, and with the bottom-most // node +internal+ entries filtered. CreationStack() *[]*string // The condition statement. Expression() ICfnConditionExpression SetExpression(val ICfnConditionExpression) // The logical ID for this CloudFormation stack element. // // The logical ID of the element // is calculated from the path of the resource node in the construct tree. // // To override this value, use `overrideLogicalId(newLogicalId)`. // // Returns: the logical ID as a stringified token. This value will only get // resolved during synthesis. LogicalId() *string // The tree node. Node() constructs.Node // The stack in which this element is defined. // // CfnElements must be defined within a stack scope (directly or indirectly). Stack() Stack // Overrides the auto-generated logical ID with a specific ID. OverrideLogicalId(newLogicalId *string) // Synthesizes the condition. Resolve(_context IResolveContext) interface{} // Returns a string representation of this construct. ToString() *string }
Represents a CloudFormation condition, for resources which must be conditionally created and the determination must be made at deploy time.
Example:
rawBucket := s3.NewCfnBucket(this, jsii.String("Bucket"), &CfnBucketProps{ }) // -or- rawBucketAlt := myBucket.Node.defaultChild.(cfnBucket) // then rawBucket.CfnOptions.Condition = awscdk.NewCfnCondition(this, jsii.String("EnableBucket"), &CfnConditionProps{ }) rawBucket.CfnOptions.Metadata = map[string]interface{}{ "metadataKey": jsii.String("MetadataValue"), }
func NewCfnCondition ¶
func NewCfnCondition(scope constructs.Construct, id *string, props *CfnConditionProps) CfnCondition
Build a new condition.
The condition must be constructed with a condition token, that the condition is based on.
type CfnConditionProps ¶
type CfnConditionProps struct { // The expression that the condition will evaluate. // Default: - None. // Expression ICfnConditionExpression `field:"optional" json:"expression" yaml:"expression"` }
Example:
rawBucket := s3.NewCfnBucket(this, jsii.String("Bucket"), &CfnBucketProps{ }) // -or- rawBucketAlt := myBucket.Node.defaultChild.(cfnBucket) // then rawBucket.CfnOptions.Condition = awscdk.NewCfnCondition(this, jsii.String("EnableBucket"), &CfnConditionProps{ }) rawBucket.CfnOptions.Metadata = map[string]interface{}{ "metadataKey": jsii.String("MetadataValue"), }
type CfnCreationPolicy ¶
type CfnCreationPolicy struct { // For an Auto Scaling group replacement update, specifies how many instances must signal success for the update to succeed. AutoScalingCreationPolicy *CfnResourceAutoScalingCreationPolicy `field:"optional" json:"autoScalingCreationPolicy" yaml:"autoScalingCreationPolicy"` // When AWS CloudFormation creates the associated resource, configures the number of required success signals and the length of time that AWS CloudFormation waits for those signals. ResourceSignal *CfnResourceSignal `field:"optional" json:"resourceSignal" yaml:"resourceSignal"` // For an AppStream Fleet creation, specifies that the fleet is started after creation. StartFleet *bool `field:"optional" json:"startFleet" yaml:"startFleet"` }
Associate the CreationPolicy attribute with a resource to prevent its status from reaching create complete until AWS CloudFormation receives a specified number of success signals or the timeout period is exceeded.
To signal a resource, you can use the cfn-signal helper script or SignalResource API. AWS CloudFormation publishes valid signals to the stack events so that you track the number of signals sent.
The creation policy is invoked only when AWS CloudFormation creates the associated resource. Currently, the only AWS CloudFormation resources that support creation policies are AWS::AutoScaling::AutoScalingGroup, AWS::EC2::Instance, AWS::CloudFormation::WaitCondition and AWS::AppStream::Fleet.
Use the CreationPolicy attribute when you want to wait on resource configuration actions before stack creation proceeds. For example, if you install and configure software applications on an EC2 instance, you might want those applications to be running before proceeding. In such cases, you can add a CreationPolicy attribute to the instance, and then send a success signal to the instance after the applications are installed and configured. For a detailed example, see Deploying Applications on Amazon EC2 with AWS CloudFormation.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import cdk "github.com/aws/aws-cdk-go/awscdk" cfnCreationPolicy := &CfnCreationPolicy{ AutoScalingCreationPolicy: &CfnResourceAutoScalingCreationPolicy{ MinSuccessfulInstancesPercent: jsii.Number(123), }, ResourceSignal: &CfnResourceSignal{ Count: jsii.Number(123), Timeout: jsii.String("timeout"), }, StartFleet: jsii.Boolean(false), }
type CfnCustomResource ¶
type CfnCustomResource interface { CfnResource IInspectable AttrId() *string // Options for this resource, such as condition, update policy etc. CfnOptions() ICfnResourceOptions CfnProperties() *map[string]interface{} // AWS resource type. CfnResourceType() *string // Returns: the stack trace of the point where this Resource was created from, sourced // from the +metadata+ entry typed +aws:cdk:logicalId+, and with the bottom-most // node +internal+ entries filtered. CreationStack() *[]*string // The logical ID for this CloudFormation stack element. // // The logical ID of the element // is calculated from the path of the resource node in the construct tree. // // To override this value, use `overrideLogicalId(newLogicalId)`. // // Returns: the logical ID as a stringified token. This value will only get // resolved during synthesis. LogicalId() *string // The tree node. Node() constructs.Node // Return a string that will be resolved to a CloudFormation `{ Ref }` for this element. // // If, by any chance, the intrinsic reference of a resource is not a string, you could // coerce it to an IResolvable through `Lazy.any({ produce: resource.ref })`. Ref() *string // > Only one property is defined by AWS for a custom resource: `ServiceToken` . ServiceToken() *string SetServiceToken(val *string) // The stack in which this element is defined. // // CfnElements must be defined within a stack scope (directly or indirectly). Stack() Stack // Deprecated. // Deprecated: use `updatedProperties` // // Return properties modified after initiation // // Resources that expose mutable properties should override this function to // collect and return the properties object for this resource. UpdatedProperites() *map[string]interface{} // Return properties modified after initiation. // // Resources that expose mutable properties should override this function to // collect and return the properties object for this resource. UpdatedProperties() *map[string]interface{} // Syntactic sugar for `addOverride(path, undefined)`. AddDeletionOverride(path *string) // Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned. // // This can be used for resources across stacks (or nested stack) boundaries // and the dependency will automatically be transferred to the relevant scope. AddDependency(target CfnResource) // Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned. // Deprecated: use addDependency. AddDependsOn(target CfnResource) // Add a value to the CloudFormation Resource Metadata. // See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html // // Note that this is a different set of metadata from CDK node metadata; this // metadata ends up in the stack template under the resource, whereas CDK // node metadata ends up in the Cloud Assembly. // AddMetadata(key *string, value interface{}) // Adds an override to the synthesized CloudFormation resource. // // To add a // property override, either use `addPropertyOverride` or prefix `path` with // "Properties." (i.e. `Properties.TopicName`). // // If the override is nested, separate each nested level using a dot (.) in the path parameter. // If there is an array as part of the nesting, specify the index in the path. // // To include a literal `.` in the property name, prefix with a `\`. In most // programming languages you will need to write this as `"\\."` because the // `\` itself will need to be escaped. // // For example, // “`typescript // cfnResource.addOverride('Properties.GlobalSecondaryIndexes.0.Projection.NonKeyAttributes', ['myattribute']); // cfnResource.addOverride('Properties.GlobalSecondaryIndexes.1.ProjectionType', 'INCLUDE'); // “` // would add the overrides // “`json // "Properties": { // "GlobalSecondaryIndexes": [ // { // "Projection": { // "NonKeyAttributes": [ "myattribute" ] // ... // } // ... // }, // { // "ProjectionType": "INCLUDE" // ... // }, // ] // ... // } // “` // // The `value` argument to `addOverride` will not be processed or translated // in any way. Pass raw JSON values in here with the correct capitalization // for CloudFormation. If you pass CDK classes or structs, they will be // rendered with lowercased key names, and CloudFormation will reject the // template. AddOverride(path *string, value interface{}) // Adds an override that deletes the value of a property from the resource definition. AddPropertyDeletionOverride(propertyPath *string) // Adds an override to a resource property. // // Syntactic sugar for `addOverride("Properties.<...>", value)`. AddPropertyOverride(propertyPath *string, value interface{}) // Sets the deletion policy of the resource based on the removal policy specified. // // The Removal Policy controls what happens to this resource when it stops // being managed by CloudFormation, either because you've removed it from the // CDK application or because you've made a change that requires the resource // to be replaced. // // The resource can be deleted (`RemovalPolicy.DESTROY`), or left in your AWS // account for data recovery and cleanup later (`RemovalPolicy.RETAIN`). In some // cases, a snapshot can be taken of the resource prior to deletion // (`RemovalPolicy.SNAPSHOT`). A list of resources that support this policy // can be found in the following link:. // See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html#aws-attribute-deletionpolicy-options // ApplyRemovalPolicy(policy RemovalPolicy, options *RemovalPolicyOptions) // Returns a token for an runtime attribute of this resource. // // Ideally, use generated attribute accessors (e.g. `resource.arn`), but this can be used for future compatibility // in case there is no generated attribute. GetAtt(attributeName *string, typeHint ResolutionTypeHint) Reference // Retrieve a value value from the CloudFormation Resource Metadata. // See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html // // Note that this is a different set of metadata from CDK node metadata; this // metadata ends up in the stack template under the resource, whereas CDK // node metadata ends up in the Cloud Assembly. // GetMetadata(key *string) interface{} // Examines the CloudFormation resource and discloses attributes. Inspect(inspector TreeInspector) // Retrieves an array of resources this resource depends on. // // This assembles dependencies on resources across stacks (including nested stacks) // automatically. ObtainDependencies() *[]interface{} // Get a shallow copy of dependencies between this resource and other resources in the same stack. ObtainResourceDependencies() *[]CfnResource // Overrides the auto-generated logical ID with a specific ID. OverrideLogicalId(newLogicalId *string) // Indicates that this resource no longer depends on another resource. // // This can be used for resources across stacks (including nested stacks) // and the dependency will automatically be removed from the relevant scope. RemoveDependency(target CfnResource) RenderProperties(props *map[string]interface{}) *map[string]interface{} // Replaces one dependency with another. ReplaceDependency(target CfnResource, newTarget CfnResource) // Can be overridden by subclasses to determine if this resource will be rendered into the cloudformation template. // // Returns: `true` if the resource should be included or `false` is the resource // should be omitted. ShouldSynthesize() *bool // Returns a string representation of this construct. // // Returns: a string representation of this resource. ToString() *string ValidateProperties(_properties interface{}) }
In a CloudFormation template, you use the `AWS::CloudFormation::CustomResource` or `Custom:: *String*` resource type to specify custom resources.
Custom resources provide a way for you to write custom provisioning logic in CloudFormation template and have CloudFormation run it during a stack operation, such as when you create, update or delete a stack. For more information, see [Custom resources](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-custom-resources.html) .
> If you use the [VPC endpoints](https://docs.aws.amazon.com/vpc/latest/userguide/vpc-endpoints.html) feature, custom resources in the VPC must have access to CloudFormation -specific Amazon Simple Storage Service ( Amazon S3 ) buckets. Custom resources must send responses to a presigned Amazon S3 URL. If they can't send responses to Amazon S3 , CloudFormation won't receive a response and the stack operation fails. For more information, see [Setting up VPC endpoints for AWS CloudFormation](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cfn-vpce-bucketnames.html) .
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import cdk "github.com/aws/aws-cdk-go/awscdk" cfnCustomResource := cdk.NewCfnCustomResource(this, jsii.String("MyCfnCustomResource"), &CfnCustomResourceProps{ ServiceToken: jsii.String("serviceToken"), })
func NewCfnCustomResource ¶
func NewCfnCustomResource(scope constructs.Construct, id *string, props *CfnCustomResourceProps) CfnCustomResource
type CfnCustomResourceProps ¶
type CfnCustomResourceProps struct { // > Only one property is defined by AWS for a custom resource: `ServiceToken` . // // All other properties are defined by the service provider. // // The service token that was given to the template developer by the service provider to access the service, such as an Amazon SNS topic ARN or Lambda function ARN. The service token must be from the same Region in which you are creating the stack. // // Updates aren't supported. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudformation-customresource.html#cfn-cloudformation-customresource-servicetoken // ServiceToken *string `field:"required" json:"serviceToken" yaml:"serviceToken"` }
Properties for defining a `CfnCustomResource`.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import cdk "github.com/aws/aws-cdk-go/awscdk" cfnCustomResourceProps := &CfnCustomResourceProps{ ServiceToken: jsii.String("serviceToken"), }
type CfnDeletionPolicy ¶
type CfnDeletionPolicy string
With the DeletionPolicy attribute you can preserve or (in some cases) backup a resource when its stack is deleted.
You specify a DeletionPolicy attribute for each resource that you want to control. If a resource has no DeletionPolicy attribute, AWS CloudFormation deletes the resource by default. Note that this capability also applies to update operations that lead to resources being removed.
const ( // AWS CloudFormation deletes the resource and all its content if applicable during stack deletion. // // You can add this // deletion policy to any resource type. By default, if you don't specify a DeletionPolicy, AWS CloudFormation deletes // your resources. However, be aware of the following considerations: CfnDeletionPolicy_DELETE CfnDeletionPolicy = "DELETE" // AWS CloudFormation keeps the resource without deleting the resource or its contents when its stack is deleted. // // You can add this deletion policy to any resource type. Note that when AWS CloudFormation completes the stack deletion, // the stack will be in Delete_Complete state; however, resources that are retained continue to exist and continue to incur // applicable charges until you delete those resources. CfnDeletionPolicy_RETAIN CfnDeletionPolicy = "RETAIN" // RetainExceptOnCreate behaves like Retain for stack operations, except for the stack operation that initially created the resource. // // If the stack operation that created the resource is rolled back, CloudFormation deletes the resource. For all other stack operations, // such as stack deletion, CloudFormation retains the resource and its contents. The result is that new, empty, and unused resources are deleted, // while in-use resources and their data are retained. CfnDeletionPolicy_RETAIN_EXCEPT_ON_CREATE CfnDeletionPolicy = "RETAIN_EXCEPT_ON_CREATE" // For resources that support snapshots (AWS::EC2::Volume, AWS::ElastiCache::CacheCluster, AWS::ElastiCache::ReplicationGroup, AWS::RDS::DBInstance, AWS::RDS::DBCluster, and AWS::Redshift::Cluster), AWS CloudFormation creates a snapshot for the resource before deleting it. // // Note that when AWS CloudFormation completes the stack deletion, the stack will be in the // Delete_Complete state; however, the snapshots that are created with this policy continue to exist and continue to // incur applicable charges until you delete those snapshots. CfnDeletionPolicy_SNAPSHOT CfnDeletionPolicy = "SNAPSHOT" )
type CfnDynamicReference ¶
type CfnDynamicReference interface { Intrinsic // The captured stack trace which represents the location in which this token was created. CreationStack() *[]*string // Type that the Intrinsic is expected to evaluate to. TypeHint() ResolutionTypeHint // Creates a throwable Error object that contains the token creation stack trace. NewError(message *string) interface{} // Produce the Token's value at resolution time. Resolve(_context IResolveContext) interface{} // Turn this Token into JSON. // // Called automatically when JSON.stringify() is called on a Token. ToJSON() interface{} // Convert an instance of this Token to a string. // // This method will be called implicitly by language runtimes if the object // is embedded into a string. We treat it the same as an explicit // stringification. ToString() *string // Convert an instance of this Token to a string list. // // This method will be called implicitly by language runtimes if the object // is embedded into a list. We treat it the same as an explicit // stringification. ToStringList() *[]*string }
References a dynamically retrieved value.
This is a Construct so that subclasses will (eventually) be able to attach metadata to themselves without having to change call signatures.
Example:
awscdk.NewCfnDynamicReference(awscdk.CfnDynamicReferenceService_SECRETS_MANAGER, jsii.String("secret-id:secret-string:json-key:version-stage:version-id"))
See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/dynamic-references.html
func NewCfnDynamicReference ¶
func NewCfnDynamicReference(service CfnDynamicReferenceService, key *string) CfnDynamicReference
type CfnDynamicReferenceProps ¶
type CfnDynamicReferenceProps struct { // The reference key of the dynamic reference. ReferenceKey *string `field:"required" json:"referenceKey" yaml:"referenceKey"` // The service to retrieve the dynamic reference from. Service CfnDynamicReferenceService `field:"required" json:"service" yaml:"service"` }
Properties for a Dynamic Reference.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import cdk "github.com/aws/aws-cdk-go/awscdk" cfnDynamicReferenceProps := &CfnDynamicReferenceProps{ ReferenceKey: jsii.String("referenceKey"), Service: cdk.CfnDynamicReferenceService_SSM, }
type CfnDynamicReferenceService ¶
type CfnDynamicReferenceService string
The service to retrieve the dynamic reference from.
Example:
awscdk.NewCfnDynamicReference(awscdk.CfnDynamicReferenceService_SECRETS_MANAGER, jsii.String("secret-id:secret-string:json-key:version-stage:version-id"))
const ( // Plaintext value stored in AWS Systems Manager Parameter Store. CfnDynamicReferenceService_SSM CfnDynamicReferenceService = "SSM" // Secure string stored in AWS Systems Manager Parameter Store. CfnDynamicReferenceService_SSM_SECURE CfnDynamicReferenceService = "SSM_SECURE" // Secret stored in AWS Secrets Manager. CfnDynamicReferenceService_SECRETS_MANAGER CfnDynamicReferenceService = "SECRETS_MANAGER" )
type CfnElement ¶
type CfnElement interface { constructs.Construct // Returns: the stack trace of the point where this Resource was created from, sourced // from the +metadata+ entry typed +aws:cdk:logicalId+, and with the bottom-most // node +internal+ entries filtered. CreationStack() *[]*string // The logical ID for this CloudFormation stack element. // // The logical ID of the element // is calculated from the path of the resource node in the construct tree. // // To override this value, use `overrideLogicalId(newLogicalId)`. // // Returns: the logical ID as a stringified token. This value will only get // resolved during synthesis. LogicalId() *string // The tree node. Node() constructs.Node // The stack in which this element is defined. // // CfnElements must be defined within a stack scope (directly or indirectly). Stack() Stack // Overrides the auto-generated logical ID with a specific ID. OverrideLogicalId(newLogicalId *string) // Returns a string representation of this construct. ToString() *string }
An element of a CloudFormation stack.
type CfnHook ¶
type CfnHook interface { CfnElement // Returns: the stack trace of the point where this Resource was created from, sourced // from the +metadata+ entry typed +aws:cdk:logicalId+, and with the bottom-most // node +internal+ entries filtered. CreationStack() *[]*string // The logical ID for this CloudFormation stack element. // // The logical ID of the element // is calculated from the path of the resource node in the construct tree. // // To override this value, use `overrideLogicalId(newLogicalId)`. // // Returns: the logical ID as a stringified token. This value will only get // resolved during synthesis. LogicalId() *string // The tree node. Node() constructs.Node // The stack in which this element is defined. // // CfnElements must be defined within a stack scope (directly or indirectly). Stack() Stack // The type of the hook (for example, "AWS::CodeDeploy::BlueGreen"). Type() *string // Overrides the auto-generated logical ID with a specific ID. OverrideLogicalId(newLogicalId *string) RenderProperties(props *map[string]interface{}) *map[string]interface{} // Returns a string representation of this construct. ToString() *string }
Represents a CloudFormation resource.
Example:
var cfnTemplate cfnInclude // mutating the hook var myRole role hook := cfnTemplate.GetHook(jsii.String("MyOutput")) codeDeployHook := hook.(cfnCodeDeployBlueGreenHook) codeDeployHook.serviceRole = myRole.RoleArn
func NewCfnHook ¶
func NewCfnHook(scope constructs.Construct, id *string, props *CfnHookProps) CfnHook
Creates a new Hook object.
type CfnHookDefaultVersion ¶ added in v2.13.0
type CfnHookDefaultVersion interface { CfnResource IInspectable // The Amazon Resource Number (ARN) of the activated extension, in this account and Region. AttrArn() *string // Options for this resource, such as condition, update policy etc. CfnOptions() ICfnResourceOptions CfnProperties() *map[string]interface{} // AWS resource type. CfnResourceType() *string // Returns: the stack trace of the point where this Resource was created from, sourced // from the +metadata+ entry typed +aws:cdk:logicalId+, and with the bottom-most // node +internal+ entries filtered. CreationStack() *[]*string // The logical ID for this CloudFormation stack element. // // The logical ID of the element // is calculated from the path of the resource node in the construct tree. // // To override this value, use `overrideLogicalId(newLogicalId)`. // // Returns: the logical ID as a stringified token. This value will only get // resolved during synthesis. LogicalId() *string // The tree node. Node() constructs.Node // Return a string that will be resolved to a CloudFormation `{ Ref }` for this element. // // If, by any chance, the intrinsic reference of a resource is not a string, you could // coerce it to an IResolvable through `Lazy.any({ produce: resource.ref })`. Ref() *string // The stack in which this element is defined. // // CfnElements must be defined within a stack scope (directly or indirectly). Stack() Stack // The name of the hook. TypeName() *string SetTypeName(val *string) // The version ID of the type configuration. TypeVersionArn() *string SetTypeVersionArn(val *string) // Deprecated. // Deprecated: use `updatedProperties` // // Return properties modified after initiation // // Resources that expose mutable properties should override this function to // collect and return the properties object for this resource. UpdatedProperites() *map[string]interface{} // Return properties modified after initiation. // // Resources that expose mutable properties should override this function to // collect and return the properties object for this resource. UpdatedProperties() *map[string]interface{} // The version ID of the type specified. VersionId() *string SetVersionId(val *string) // Syntactic sugar for `addOverride(path, undefined)`. AddDeletionOverride(path *string) // Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned. // // This can be used for resources across stacks (or nested stack) boundaries // and the dependency will automatically be transferred to the relevant scope. AddDependency(target CfnResource) // Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned. // Deprecated: use addDependency. AddDependsOn(target CfnResource) // Add a value to the CloudFormation Resource Metadata. // See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html // // Note that this is a different set of metadata from CDK node metadata; this // metadata ends up in the stack template under the resource, whereas CDK // node metadata ends up in the Cloud Assembly. // AddMetadata(key *string, value interface{}) // Adds an override to the synthesized CloudFormation resource. // // To add a // property override, either use `addPropertyOverride` or prefix `path` with // "Properties." (i.e. `Properties.TopicName`). // // If the override is nested, separate each nested level using a dot (.) in the path parameter. // If there is an array as part of the nesting, specify the index in the path. // // To include a literal `.` in the property name, prefix with a `\`. In most // programming languages you will need to write this as `"\\."` because the // `\` itself will need to be escaped. // // For example, // “`typescript // cfnResource.addOverride('Properties.GlobalSecondaryIndexes.0.Projection.NonKeyAttributes', ['myattribute']); // cfnResource.addOverride('Properties.GlobalSecondaryIndexes.1.ProjectionType', 'INCLUDE'); // “` // would add the overrides // “`json // "Properties": { // "GlobalSecondaryIndexes": [ // { // "Projection": { // "NonKeyAttributes": [ "myattribute" ] // ... // } // ... // }, // { // "ProjectionType": "INCLUDE" // ... // }, // ] // ... // } // “` // // The `value` argument to `addOverride` will not be processed or translated // in any way. Pass raw JSON values in here with the correct capitalization // for CloudFormation. If you pass CDK classes or structs, they will be // rendered with lowercased key names, and CloudFormation will reject the // template. AddOverride(path *string, value interface{}) // Adds an override that deletes the value of a property from the resource definition. AddPropertyDeletionOverride(propertyPath *string) // Adds an override to a resource property. // // Syntactic sugar for `addOverride("Properties.<...>", value)`. AddPropertyOverride(propertyPath *string, value interface{}) // Sets the deletion policy of the resource based on the removal policy specified. // // The Removal Policy controls what happens to this resource when it stops // being managed by CloudFormation, either because you've removed it from the // CDK application or because you've made a change that requires the resource // to be replaced. // // The resource can be deleted (`RemovalPolicy.DESTROY`), or left in your AWS // account for data recovery and cleanup later (`RemovalPolicy.RETAIN`). In some // cases, a snapshot can be taken of the resource prior to deletion // (`RemovalPolicy.SNAPSHOT`). A list of resources that support this policy // can be found in the following link:. // See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html#aws-attribute-deletionpolicy-options // ApplyRemovalPolicy(policy RemovalPolicy, options *RemovalPolicyOptions) // Returns a token for an runtime attribute of this resource. // // Ideally, use generated attribute accessors (e.g. `resource.arn`), but this can be used for future compatibility // in case there is no generated attribute. GetAtt(attributeName *string, typeHint ResolutionTypeHint) Reference // Retrieve a value value from the CloudFormation Resource Metadata. // See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html // // Note that this is a different set of metadata from CDK node metadata; this // metadata ends up in the stack template under the resource, whereas CDK // node metadata ends up in the Cloud Assembly. // GetMetadata(key *string) interface{} // Examines the CloudFormation resource and discloses attributes. Inspect(inspector TreeInspector) // Retrieves an array of resources this resource depends on. // // This assembles dependencies on resources across stacks (including nested stacks) // automatically. ObtainDependencies() *[]interface{} // Get a shallow copy of dependencies between this resource and other resources in the same stack. ObtainResourceDependencies() *[]CfnResource // Overrides the auto-generated logical ID with a specific ID. OverrideLogicalId(newLogicalId *string) // Indicates that this resource no longer depends on another resource. // // This can be used for resources across stacks (including nested stacks) // and the dependency will automatically be removed from the relevant scope. RemoveDependency(target CfnResource) RenderProperties(props *map[string]interface{}) *map[string]interface{} // Replaces one dependency with another. ReplaceDependency(target CfnResource, newTarget CfnResource) // Can be overridden by subclasses to determine if this resource will be rendered into the cloudformation template. // // Returns: `true` if the resource should be included or `false` is the resource // should be omitted. ShouldSynthesize() *bool // Returns a string representation of this construct. // // Returns: a string representation of this resource. ToString() *string ValidateProperties(_properties interface{}) }
The `HookDefaultVersion` resource specifies the default version of the hook.
The default version of the hook is used in CloudFormation operations for this AWS account and AWS Region .
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import cdk "github.com/aws/aws-cdk-go/awscdk" cfnHookDefaultVersion := cdk.NewCfnHookDefaultVersion(this, jsii.String("MyCfnHookDefaultVersion"), &CfnHookDefaultVersionProps{ TypeName: jsii.String("typeName"), TypeVersionArn: jsii.String("typeVersionArn"), VersionId: jsii.String("versionId"), })
func NewCfnHookDefaultVersion ¶ added in v2.13.0
func NewCfnHookDefaultVersion(scope constructs.Construct, id *string, props *CfnHookDefaultVersionProps) CfnHookDefaultVersion
type CfnHookDefaultVersionProps ¶ added in v2.13.0
type CfnHookDefaultVersionProps struct { // The name of the hook. // // You must specify either `TypeVersionArn` , or `TypeName` and `VersionId` . // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudformation-hookdefaultversion.html#cfn-cloudformation-hookdefaultversion-typename // TypeName *string `field:"optional" json:"typeName" yaml:"typeName"` // The version ID of the type configuration. // // You must specify either `TypeVersionArn` , or `TypeName` and `VersionId` . // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudformation-hookdefaultversion.html#cfn-cloudformation-hookdefaultversion-typeversionarn // TypeVersionArn *string `field:"optional" json:"typeVersionArn" yaml:"typeVersionArn"` // The version ID of the type specified. // // You must specify either `TypeVersionArn` , or `TypeName` and `VersionId` . // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudformation-hookdefaultversion.html#cfn-cloudformation-hookdefaultversion-versionid // VersionId *string `field:"optional" json:"versionId" yaml:"versionId"` }
Properties for defining a `CfnHookDefaultVersion`.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import cdk "github.com/aws/aws-cdk-go/awscdk" cfnHookDefaultVersionProps := &CfnHookDefaultVersionProps{ TypeName: jsii.String("typeName"), TypeVersionArn: jsii.String("typeVersionArn"), VersionId: jsii.String("versionId"), }
type CfnHookProps ¶
type CfnHookProps struct { // The type of the hook (for example, "AWS::CodeDeploy::BlueGreen"). Type *string `field:"required" json:"type" yaml:"type"` // The properties of the hook. // Default: - no properties. // Properties *map[string]interface{} `field:"optional" json:"properties" yaml:"properties"` }
Construction properties of `CfnHook`.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import cdk "github.com/aws/aws-cdk-go/awscdk" var properties interface{} cfnHookProps := &CfnHookProps{ Type: jsii.String("type"), // the properties below are optional Properties: map[string]interface{}{ "propertiesKey": properties, }, }
type CfnHookTypeConfig ¶ added in v2.13.0
type CfnHookTypeConfig interface { CfnResource IInspectable // The Amazon Resource Number (ARN) of the activated hook type configuration, in this account and Region. AttrConfigurationArn() *string // Options for this resource, such as condition, update policy etc. CfnOptions() ICfnResourceOptions CfnProperties() *map[string]interface{} // AWS resource type. CfnResourceType() *string // Specifies the activated hook type configuration, in this AWS account and AWS Region . Configuration() *string SetConfiguration(val *string) // Specifies the activated hook type configuration, in this AWS account and AWS Region . ConfigurationAlias() *string SetConfigurationAlias(val *string) // Returns: the stack trace of the point where this Resource was created from, sourced // from the +metadata+ entry typed +aws:cdk:logicalId+, and with the bottom-most // node +internal+ entries filtered. CreationStack() *[]*string // The logical ID for this CloudFormation stack element. // // The logical ID of the element // is calculated from the path of the resource node in the construct tree. // // To override this value, use `overrideLogicalId(newLogicalId)`. // // Returns: the logical ID as a stringified token. This value will only get // resolved during synthesis. LogicalId() *string // The tree node. Node() constructs.Node // Return a string that will be resolved to a CloudFormation `{ Ref }` for this element. // // If, by any chance, the intrinsic reference of a resource is not a string, you could // coerce it to an IResolvable through `Lazy.any({ produce: resource.ref })`. Ref() *string // The stack in which this element is defined. // // CfnElements must be defined within a stack scope (directly or indirectly). Stack() Stack // The Amazon Resource Number (ARN) for the hook to set `Configuration` for. TypeArn() *string SetTypeArn(val *string) // The unique name for your hook. TypeName() *string SetTypeName(val *string) // Deprecated. // Deprecated: use `updatedProperties` // // Return properties modified after initiation // // Resources that expose mutable properties should override this function to // collect and return the properties object for this resource. UpdatedProperites() *map[string]interface{} // Return properties modified after initiation. // // Resources that expose mutable properties should override this function to // collect and return the properties object for this resource. UpdatedProperties() *map[string]interface{} // Syntactic sugar for `addOverride(path, undefined)`. AddDeletionOverride(path *string) // Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned. // // This can be used for resources across stacks (or nested stack) boundaries // and the dependency will automatically be transferred to the relevant scope. AddDependency(target CfnResource) // Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned. // Deprecated: use addDependency. AddDependsOn(target CfnResource) // Add a value to the CloudFormation Resource Metadata. // See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html // // Note that this is a different set of metadata from CDK node metadata; this // metadata ends up in the stack template under the resource, whereas CDK // node metadata ends up in the Cloud Assembly. // AddMetadata(key *string, value interface{}) // Adds an override to the synthesized CloudFormation resource. // // To add a // property override, either use `addPropertyOverride` or prefix `path` with // "Properties." (i.e. `Properties.TopicName`). // // If the override is nested, separate each nested level using a dot (.) in the path parameter. // If there is an array as part of the nesting, specify the index in the path. // // To include a literal `.` in the property name, prefix with a `\`. In most // programming languages you will need to write this as `"\\."` because the // `\` itself will need to be escaped. // // For example, // “`typescript // cfnResource.addOverride('Properties.GlobalSecondaryIndexes.0.Projection.NonKeyAttributes', ['myattribute']); // cfnResource.addOverride('Properties.GlobalSecondaryIndexes.1.ProjectionType', 'INCLUDE'); // “` // would add the overrides // “`json // "Properties": { // "GlobalSecondaryIndexes": [ // { // "Projection": { // "NonKeyAttributes": [ "myattribute" ] // ... // } // ... // }, // { // "ProjectionType": "INCLUDE" // ... // }, // ] // ... // } // “` // // The `value` argument to `addOverride` will not be processed or translated // in any way. Pass raw JSON values in here with the correct capitalization // for CloudFormation. If you pass CDK classes or structs, they will be // rendered with lowercased key names, and CloudFormation will reject the // template. AddOverride(path *string, value interface{}) // Adds an override that deletes the value of a property from the resource definition. AddPropertyDeletionOverride(propertyPath *string) // Adds an override to a resource property. // // Syntactic sugar for `addOverride("Properties.<...>", value)`. AddPropertyOverride(propertyPath *string, value interface{}) // Sets the deletion policy of the resource based on the removal policy specified. // // The Removal Policy controls what happens to this resource when it stops // being managed by CloudFormation, either because you've removed it from the // CDK application or because you've made a change that requires the resource // to be replaced. // // The resource can be deleted (`RemovalPolicy.DESTROY`), or left in your AWS // account for data recovery and cleanup later (`RemovalPolicy.RETAIN`). In some // cases, a snapshot can be taken of the resource prior to deletion // (`RemovalPolicy.SNAPSHOT`). A list of resources that support this policy // can be found in the following link:. // See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html#aws-attribute-deletionpolicy-options // ApplyRemovalPolicy(policy RemovalPolicy, options *RemovalPolicyOptions) // Returns a token for an runtime attribute of this resource. // // Ideally, use generated attribute accessors (e.g. `resource.arn`), but this can be used for future compatibility // in case there is no generated attribute. GetAtt(attributeName *string, typeHint ResolutionTypeHint) Reference // Retrieve a value value from the CloudFormation Resource Metadata. // See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html // // Note that this is a different set of metadata from CDK node metadata; this // metadata ends up in the stack template under the resource, whereas CDK // node metadata ends up in the Cloud Assembly. // GetMetadata(key *string) interface{} // Examines the CloudFormation resource and discloses attributes. Inspect(inspector TreeInspector) // Retrieves an array of resources this resource depends on. // // This assembles dependencies on resources across stacks (including nested stacks) // automatically. ObtainDependencies() *[]interface{} // Get a shallow copy of dependencies between this resource and other resources in the same stack. ObtainResourceDependencies() *[]CfnResource // Overrides the auto-generated logical ID with a specific ID. OverrideLogicalId(newLogicalId *string) // Indicates that this resource no longer depends on another resource. // // This can be used for resources across stacks (including nested stacks) // and the dependency will automatically be removed from the relevant scope. RemoveDependency(target CfnResource) RenderProperties(props *map[string]interface{}) *map[string]interface{} // Replaces one dependency with another. ReplaceDependency(target CfnResource, newTarget CfnResource) // Can be overridden by subclasses to determine if this resource will be rendered into the cloudformation template. // // Returns: `true` if the resource should be included or `false` is the resource // should be omitted. ShouldSynthesize() *bool // Returns a string representation of this construct. // // Returns: a string representation of this resource. ToString() *string ValidateProperties(_properties interface{}) }
The `HookTypeConfig` resource specifies the configuration of a hook.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import cdk "github.com/aws/aws-cdk-go/awscdk" cfnHookTypeConfig := cdk.NewCfnHookTypeConfig(this, jsii.String("MyCfnHookTypeConfig"), &CfnHookTypeConfigProps{ Configuration: jsii.String("configuration"), // the properties below are optional ConfigurationAlias: jsii.String("configurationAlias"), TypeArn: jsii.String("typeArn"), TypeName: jsii.String("typeName"), })
func NewCfnHookTypeConfig ¶ added in v2.13.0
func NewCfnHookTypeConfig(scope constructs.Construct, id *string, props *CfnHookTypeConfigProps) CfnHookTypeConfig
type CfnHookTypeConfigProps ¶ added in v2.13.0
type CfnHookTypeConfigProps struct { // Specifies the activated hook type configuration, in this AWS account and AWS Region . // // You must specify either `TypeName` and `Configuration` or `TypeARN` and `Configuration` . // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudformation-hooktypeconfig.html#cfn-cloudformation-hooktypeconfig-configuration // Configuration *string `field:"required" json:"configuration" yaml:"configuration"` // Specifies the activated hook type configuration, in this AWS account and AWS Region . // // Defaults to `default` alias. Hook types currently support default configuration alias. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudformation-hooktypeconfig.html#cfn-cloudformation-hooktypeconfig-configurationalias // // Default: - "default". // ConfigurationAlias *string `field:"optional" json:"configurationAlias" yaml:"configurationAlias"` // The Amazon Resource Number (ARN) for the hook to set `Configuration` for. // // You must specify either `TypeName` and `Configuration` or `TypeARN` and `Configuration` . // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudformation-hooktypeconfig.html#cfn-cloudformation-hooktypeconfig-typearn // TypeArn *string `field:"optional" json:"typeArn" yaml:"typeArn"` // The unique name for your hook. // // Specifies a three-part namespace for your hook, with a recommended pattern of `Organization::Service::Hook` . // // You must specify either `TypeName` and `Configuration` or `TypeARN` and `Configuration` . // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudformation-hooktypeconfig.html#cfn-cloudformation-hooktypeconfig-typename // TypeName *string `field:"optional" json:"typeName" yaml:"typeName"` }
Properties for defining a `CfnHookTypeConfig`.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import cdk "github.com/aws/aws-cdk-go/awscdk" cfnHookTypeConfigProps := &CfnHookTypeConfigProps{ Configuration: jsii.String("configuration"), // the properties below are optional ConfigurationAlias: jsii.String("configurationAlias"), TypeArn: jsii.String("typeArn"), TypeName: jsii.String("typeName"), }
type CfnHookVersion ¶ added in v2.13.0
type CfnHookVersion interface { CfnResource IInspectable // The Amazon Resource Name (ARN) of the hook. AttrArn() *string // Whether the specified hook version is set as the default version. AttrIsDefaultVersion() IResolvable // The Amazon Resource Number (ARN) assigned to this version of the hook. AttrTypeArn() *string // The ID of this version of the hook. AttrVersionId() *string // The scope at which the resource is visible and usable in CloudFormation operations. // // Valid values include: // // - `PRIVATE` : The resource is only visible and usable within the account in which it's registered. CloudFormation marks any resources you register as `PRIVATE` . // - `PUBLIC` : The resource is publicly visible and usable within any Amazon account. AttrVisibility() *string // Options for this resource, such as condition, update policy etc. CfnOptions() ICfnResourceOptions CfnProperties() *map[string]interface{} // AWS resource type. CfnResourceType() *string // Returns: the stack trace of the point where this Resource was created from, sourced // from the +metadata+ entry typed +aws:cdk:logicalId+, and with the bottom-most // node +internal+ entries filtered. CreationStack() *[]*string // The Amazon Resource Name (ARN) of the task execution role that grants the hook permission. ExecutionRoleArn() *string SetExecutionRoleArn(val *string) // Contains logging configuration information for an extension. LoggingConfig() interface{} SetLoggingConfig(val interface{}) // The logical ID for this CloudFormation stack element. // // The logical ID of the element // is calculated from the path of the resource node in the construct tree. // // To override this value, use `overrideLogicalId(newLogicalId)`. // // Returns: the logical ID as a stringified token. This value will only get // resolved during synthesis. LogicalId() *string // The tree node. Node() constructs.Node // Return a string that will be resolved to a CloudFormation `{ Ref }` for this element. // // If, by any chance, the intrinsic reference of a resource is not a string, you could // coerce it to an IResolvable through `Lazy.any({ produce: resource.ref })`. Ref() *string // A URL to the Amazon S3 bucket containing the hook project package that contains the necessary files for the hook you want to register. SchemaHandlerPackage() *string SetSchemaHandlerPackage(val *string) // The stack in which this element is defined. // // CfnElements must be defined within a stack scope (directly or indirectly). Stack() Stack // The unique name for your hook. TypeName() *string SetTypeName(val *string) // Deprecated. // Deprecated: use `updatedProperties` // // Return properties modified after initiation // // Resources that expose mutable properties should override this function to // collect and return the properties object for this resource. UpdatedProperites() *map[string]interface{} // Return properties modified after initiation. // // Resources that expose mutable properties should override this function to // collect and return the properties object for this resource. UpdatedProperties() *map[string]interface{} // Syntactic sugar for `addOverride(path, undefined)`. AddDeletionOverride(path *string) // Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned. // // This can be used for resources across stacks (or nested stack) boundaries // and the dependency will automatically be transferred to the relevant scope. AddDependency(target CfnResource) // Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned. // Deprecated: use addDependency. AddDependsOn(target CfnResource) // Add a value to the CloudFormation Resource Metadata. // See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html // // Note that this is a different set of metadata from CDK node metadata; this // metadata ends up in the stack template under the resource, whereas CDK // node metadata ends up in the Cloud Assembly. // AddMetadata(key *string, value interface{}) // Adds an override to the synthesized CloudFormation resource. // // To add a // property override, either use `addPropertyOverride` or prefix `path` with // "Properties." (i.e. `Properties.TopicName`). // // If the override is nested, separate each nested level using a dot (.) in the path parameter. // If there is an array as part of the nesting, specify the index in the path. // // To include a literal `.` in the property name, prefix with a `\`. In most // programming languages you will need to write this as `"\\."` because the // `\` itself will need to be escaped. // // For example, // “`typescript // cfnResource.addOverride('Properties.GlobalSecondaryIndexes.0.Projection.NonKeyAttributes', ['myattribute']); // cfnResource.addOverride('Properties.GlobalSecondaryIndexes.1.ProjectionType', 'INCLUDE'); // “` // would add the overrides // “`json // "Properties": { // "GlobalSecondaryIndexes": [ // { // "Projection": { // "NonKeyAttributes": [ "myattribute" ] // ... // } // ... // }, // { // "ProjectionType": "INCLUDE" // ... // }, // ] // ... // } // “` // // The `value` argument to `addOverride` will not be processed or translated // in any way. Pass raw JSON values in here with the correct capitalization // for CloudFormation. If you pass CDK classes or structs, they will be // rendered with lowercased key names, and CloudFormation will reject the // template. AddOverride(path *string, value interface{}) // Adds an override that deletes the value of a property from the resource definition. AddPropertyDeletionOverride(propertyPath *string) // Adds an override to a resource property. // // Syntactic sugar for `addOverride("Properties.<...>", value)`. AddPropertyOverride(propertyPath *string, value interface{}) // Sets the deletion policy of the resource based on the removal policy specified. // // The Removal Policy controls what happens to this resource when it stops // being managed by CloudFormation, either because you've removed it from the // CDK application or because you've made a change that requires the resource // to be replaced. // // The resource can be deleted (`RemovalPolicy.DESTROY`), or left in your AWS // account for data recovery and cleanup later (`RemovalPolicy.RETAIN`). In some // cases, a snapshot can be taken of the resource prior to deletion // (`RemovalPolicy.SNAPSHOT`). A list of resources that support this policy // can be found in the following link:. // See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html#aws-attribute-deletionpolicy-options // ApplyRemovalPolicy(policy RemovalPolicy, options *RemovalPolicyOptions) // Returns a token for an runtime attribute of this resource. // // Ideally, use generated attribute accessors (e.g. `resource.arn`), but this can be used for future compatibility // in case there is no generated attribute. GetAtt(attributeName *string, typeHint ResolutionTypeHint) Reference // Retrieve a value value from the CloudFormation Resource Metadata. // See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html // // Note that this is a different set of metadata from CDK node metadata; this // metadata ends up in the stack template under the resource, whereas CDK // node metadata ends up in the Cloud Assembly. // GetMetadata(key *string) interface{} // Examines the CloudFormation resource and discloses attributes. Inspect(inspector TreeInspector) // Retrieves an array of resources this resource depends on. // // This assembles dependencies on resources across stacks (including nested stacks) // automatically. ObtainDependencies() *[]interface{} // Get a shallow copy of dependencies between this resource and other resources in the same stack. ObtainResourceDependencies() *[]CfnResource // Overrides the auto-generated logical ID with a specific ID. OverrideLogicalId(newLogicalId *string) // Indicates that this resource no longer depends on another resource. // // This can be used for resources across stacks (including nested stacks) // and the dependency will automatically be removed from the relevant scope. RemoveDependency(target CfnResource) RenderProperties(props *map[string]interface{}) *map[string]interface{} // Replaces one dependency with another. ReplaceDependency(target CfnResource, newTarget CfnResource) // Can be overridden by subclasses to determine if this resource will be rendered into the cloudformation template. // // Returns: `true` if the resource should be included or `false` is the resource // should be omitted. ShouldSynthesize() *bool // Returns a string representation of this construct. // // Returns: a string representation of this resource. ToString() *string ValidateProperties(_properties interface{}) }
The `HookVersion` resource publishes new or first hook version to the AWS CloudFormation registry.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import cdk "github.com/aws/aws-cdk-go/awscdk" cfnHookVersion := cdk.NewCfnHookVersion(this, jsii.String("MyCfnHookVersion"), &CfnHookVersionProps{ SchemaHandlerPackage: jsii.String("schemaHandlerPackage"), TypeName: jsii.String("typeName"), // the properties below are optional ExecutionRoleArn: jsii.String("executionRoleArn"), LoggingConfig: &LoggingConfigProperty{ LogGroupName: jsii.String("logGroupName"), LogRoleArn: jsii.String("logRoleArn"), }, })
func NewCfnHookVersion ¶ added in v2.13.0
func NewCfnHookVersion(scope constructs.Construct, id *string, props *CfnHookVersionProps) CfnHookVersion
type CfnHookVersionProps ¶ added in v2.13.0
type CfnHookVersionProps struct { // A URL to the Amazon S3 bucket containing the hook project package that contains the necessary files for the hook you want to register. // // For information on generating a schema handler package for the resource you want to register, see [submit](https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/resource-type-cli-submit.html) in the *CloudFormation CLI User Guide for Extension Development* . // // > The user registering the resource must be able to access the package in the S3 bucket. That's, the user must have [GetObject](https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObject.html) permissions for the schema handler package. For more information, see [Actions, Resources, and Condition Keys for Amazon S3](https://docs.aws.amazon.com/IAM/latest/UserGuide/list_amazons3.html) in the *AWS Identity and Access Management User Guide* . // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudformation-hookversion.html#cfn-cloudformation-hookversion-schemahandlerpackage // SchemaHandlerPackage *string `field:"required" json:"schemaHandlerPackage" yaml:"schemaHandlerPackage"` // The unique name for your hook. // // Specifies a three-part namespace for your hook, with a recommended pattern of `Organization::Service::Hook` . // // > The following organization namespaces are reserved and can't be used in your hook type names: // > // > - `Alexa` // > - `AMZN` // > - `Amazon` // > - `ASK` // > - `AWS` // > - `Custom` // > - `Dev`. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudformation-hookversion.html#cfn-cloudformation-hookversion-typename // TypeName *string `field:"required" json:"typeName" yaml:"typeName"` // The Amazon Resource Name (ARN) of the task execution role that grants the hook permission. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudformation-hookversion.html#cfn-cloudformation-hookversion-executionrolearn // ExecutionRoleArn *string `field:"optional" json:"executionRoleArn" yaml:"executionRoleArn"` // Contains logging configuration information for an extension. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudformation-hookversion.html#cfn-cloudformation-hookversion-loggingconfig // LoggingConfig interface{} `field:"optional" json:"loggingConfig" yaml:"loggingConfig"` }
Properties for defining a `CfnHookVersion`.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import cdk "github.com/aws/aws-cdk-go/awscdk" cfnHookVersionProps := &CfnHookVersionProps{ SchemaHandlerPackage: jsii.String("schemaHandlerPackage"), TypeName: jsii.String("typeName"), // the properties below are optional ExecutionRoleArn: jsii.String("executionRoleArn"), LoggingConfig: &LoggingConfigProperty{ LogGroupName: jsii.String("logGroupName"), LogRoleArn: jsii.String("logRoleArn"), }, }
type CfnHookVersion_LoggingConfigProperty ¶ added in v2.13.0
type CfnHookVersion_LoggingConfigProperty struct { // The Amazon CloudWatch Logs group to which CloudFormation sends error logging information when invoking the extension's handlers. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudformation-hookversion-loggingconfig.html#cfn-cloudformation-hookversion-loggingconfig-loggroupname // LogGroupName *string `field:"optional" json:"logGroupName" yaml:"logGroupName"` // The Amazon Resource Name (ARN) of the role that CloudFormation should assume when sending log entries to CloudWatch Logs. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudformation-hookversion-loggingconfig.html#cfn-cloudformation-hookversion-loggingconfig-logrolearn // LogRoleArn *string `field:"optional" json:"logRoleArn" yaml:"logRoleArn"` }
The `LoggingConfig` property type specifies logging configuration information for an extension.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import cdk "github.com/aws/aws-cdk-go/awscdk" loggingConfigProperty := &LoggingConfigProperty{ LogGroupName: jsii.String("logGroupName"), LogRoleArn: jsii.String("logRoleArn"), }
type CfnJson ¶
type CfnJson interface { constructs.Construct IResolvable // The creation stack of this resolvable which will be appended to errors thrown during resolution. // // This may return an array with a single informational element indicating how // to get this property populated, if it was skipped for performance reasons. CreationStack() *[]*string // The tree node. Node() constructs.Node // An Fn::GetAtt to the JSON object passed through `value` and resolved during synthesis. // // Normally there is no need to use this property since `CfnJson` is an // IResolvable, so it can be simply used as a value. Value() Reference // Produce the Token's value at resolution time. Resolve(_context IResolveContext) interface{} // This is required in case someone JSON.stringifys an object which references this object. Otherwise, we'll get a cyclic JSON reference. ToJSON() *string // Returns a string representation of this construct. ToString() *string }
Captures a synthesis-time JSON object a CloudFormation reference which resolves during deployment to the resolved values of the JSON object.
The main use case for this is to overcome a limitation in CloudFormation that does not allow using intrinsic functions as dictionary keys (because dictionary keys in JSON must be strings). Specifically this is common in IAM conditions such as `StringEquals: { lhs: "rhs" }` where you want "lhs" to be a reference.
This object is resolvable, so it can be used as a value.
This construct is backed by a custom resource.
Example:
tagParam := awscdk.NewCfnParameter(this, jsii.String("TagName")) stringEquals := awscdk.NewCfnJson(this, jsii.String("ConditionJson"), &CfnJsonProps{ Value: map[string]*bool{ fmt.Sprintf("aws:PrincipalTag/%v", tagParam.valueAsString): jsii.Boolean(true), }, }) principal := iam.NewAccountRootPrincipal().WithConditions(map[string]interface{}{ "StringEquals": stringEquals, }) iam.NewRole(this, jsii.String("MyRole"), &RoleProps{ AssumedBy: principal, })
func NewCfnJson ¶
func NewCfnJson(scope constructs.Construct, id *string, props *CfnJsonProps) CfnJson
type CfnJsonProps ¶
type CfnJsonProps struct { // The value to resolve. // // Can be any JavaScript object, including tokens and // references in keys or values. Value interface{} `field:"required" json:"value" yaml:"value"` }
Example:
tagParam := awscdk.NewCfnParameter(this, jsii.String("TagName")) stringEquals := awscdk.NewCfnJson(this, jsii.String("ConditionJson"), &CfnJsonProps{ Value: map[string]*bool{ fmt.Sprintf("aws:PrincipalTag/%v", tagParam.valueAsString): jsii.Boolean(true), }, }) principal := iam.NewAccountRootPrincipal().WithConditions(map[string]interface{}{ "StringEquals": stringEquals, }) iam.NewRole(this, jsii.String("MyRole"), &RoleProps{ AssumedBy: principal, })
type CfnMacro ¶
type CfnMacro interface { CfnResource IInspectable AttrId() *string // Options for this resource, such as condition, update policy etc. CfnOptions() ICfnResourceOptions CfnProperties() *map[string]interface{} // AWS resource type. CfnResourceType() *string // Returns: the stack trace of the point where this Resource was created from, sourced // from the +metadata+ entry typed +aws:cdk:logicalId+, and with the bottom-most // node +internal+ entries filtered. CreationStack() *[]*string // A description of the macro. Description() *string SetDescription(val *string) // The Amazon Resource Name (ARN) of the underlying AWS Lambda function that you want AWS CloudFormation to invoke when the macro is run. FunctionName() *string SetFunctionName(val *string) // The CloudWatch Logs group to which AWS CloudFormation sends error logging information when invoking the macro's underlying AWS Lambda function. LogGroupName() *string SetLogGroupName(val *string) // The logical ID for this CloudFormation stack element. // // The logical ID of the element // is calculated from the path of the resource node in the construct tree. // // To override this value, use `overrideLogicalId(newLogicalId)`. // // Returns: the logical ID as a stringified token. This value will only get // resolved during synthesis. LogicalId() *string // The ARN of the role AWS CloudFormation should assume when sending log entries to CloudWatch Logs . LogRoleArn() *string SetLogRoleArn(val *string) // The name of the macro. Name() *string SetName(val *string) // The tree node. Node() constructs.Node // Return a string that will be resolved to a CloudFormation `{ Ref }` for this element. // // If, by any chance, the intrinsic reference of a resource is not a string, you could // coerce it to an IResolvable through `Lazy.any({ produce: resource.ref })`. Ref() *string // The stack in which this element is defined. // // CfnElements must be defined within a stack scope (directly or indirectly). Stack() Stack // Deprecated. // Deprecated: use `updatedProperties` // // Return properties modified after initiation // // Resources that expose mutable properties should override this function to // collect and return the properties object for this resource. UpdatedProperites() *map[string]interface{} // Return properties modified after initiation. // // Resources that expose mutable properties should override this function to // collect and return the properties object for this resource. UpdatedProperties() *map[string]interface{} // Syntactic sugar for `addOverride(path, undefined)`. AddDeletionOverride(path *string) // Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned. // // This can be used for resources across stacks (or nested stack) boundaries // and the dependency will automatically be transferred to the relevant scope. AddDependency(target CfnResource) // Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned. // Deprecated: use addDependency. AddDependsOn(target CfnResource) // Add a value to the CloudFormation Resource Metadata. // See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html // // Note that this is a different set of metadata from CDK node metadata; this // metadata ends up in the stack template under the resource, whereas CDK // node metadata ends up in the Cloud Assembly. // AddMetadata(key *string, value interface{}) // Adds an override to the synthesized CloudFormation resource. // // To add a // property override, either use `addPropertyOverride` or prefix `path` with // "Properties." (i.e. `Properties.TopicName`). // // If the override is nested, separate each nested level using a dot (.) in the path parameter. // If there is an array as part of the nesting, specify the index in the path. // // To include a literal `.` in the property name, prefix with a `\`. In most // programming languages you will need to write this as `"\\."` because the // `\` itself will need to be escaped. // // For example, // “`typescript // cfnResource.addOverride('Properties.GlobalSecondaryIndexes.0.Projection.NonKeyAttributes', ['myattribute']); // cfnResource.addOverride('Properties.GlobalSecondaryIndexes.1.ProjectionType', 'INCLUDE'); // “` // would add the overrides // “`json // "Properties": { // "GlobalSecondaryIndexes": [ // { // "Projection": { // "NonKeyAttributes": [ "myattribute" ] // ... // } // ... // }, // { // "ProjectionType": "INCLUDE" // ... // }, // ] // ... // } // “` // // The `value` argument to `addOverride` will not be processed or translated // in any way. Pass raw JSON values in here with the correct capitalization // for CloudFormation. If you pass CDK classes or structs, they will be // rendered with lowercased key names, and CloudFormation will reject the // template. AddOverride(path *string, value interface{}) // Adds an override that deletes the value of a property from the resource definition. AddPropertyDeletionOverride(propertyPath *string) // Adds an override to a resource property. // // Syntactic sugar for `addOverride("Properties.<...>", value)`. AddPropertyOverride(propertyPath *string, value interface{}) // Sets the deletion policy of the resource based on the removal policy specified. // // The Removal Policy controls what happens to this resource when it stops // being managed by CloudFormation, either because you've removed it from the // CDK application or because you've made a change that requires the resource // to be replaced. // // The resource can be deleted (`RemovalPolicy.DESTROY`), or left in your AWS // account for data recovery and cleanup later (`RemovalPolicy.RETAIN`). In some // cases, a snapshot can be taken of the resource prior to deletion // (`RemovalPolicy.SNAPSHOT`). A list of resources that support this policy // can be found in the following link:. // See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html#aws-attribute-deletionpolicy-options // ApplyRemovalPolicy(policy RemovalPolicy, options *RemovalPolicyOptions) // Returns a token for an runtime attribute of this resource. // // Ideally, use generated attribute accessors (e.g. `resource.arn`), but this can be used for future compatibility // in case there is no generated attribute. GetAtt(attributeName *string, typeHint ResolutionTypeHint) Reference // Retrieve a value value from the CloudFormation Resource Metadata. // See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html // // Note that this is a different set of metadata from CDK node metadata; this // metadata ends up in the stack template under the resource, whereas CDK // node metadata ends up in the Cloud Assembly. // GetMetadata(key *string) interface{} // Examines the CloudFormation resource and discloses attributes. Inspect(inspector TreeInspector) // Retrieves an array of resources this resource depends on. // // This assembles dependencies on resources across stacks (including nested stacks) // automatically. ObtainDependencies() *[]interface{} // Get a shallow copy of dependencies between this resource and other resources in the same stack. ObtainResourceDependencies() *[]CfnResource // Overrides the auto-generated logical ID with a specific ID. OverrideLogicalId(newLogicalId *string) // Indicates that this resource no longer depends on another resource. // // This can be used for resources across stacks (including nested stacks) // and the dependency will automatically be removed from the relevant scope. RemoveDependency(target CfnResource) RenderProperties(props *map[string]interface{}) *map[string]interface{} // Replaces one dependency with another. ReplaceDependency(target CfnResource, newTarget CfnResource) // Can be overridden by subclasses to determine if this resource will be rendered into the cloudformation template. // // Returns: `true` if the resource should be included or `false` is the resource // should be omitted. ShouldSynthesize() *bool // Returns a string representation of this construct. // // Returns: a string representation of this resource. ToString() *string ValidateProperties(_properties interface{}) }
The `AWS::CloudFormation::Macro` resource is a CloudFormation resource type that creates a CloudFormation macro to perform custom processing on CloudFormation templates.
For more information, see [Using AWS CloudFormation macros to perform custom processing on templates](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-macros.html) .
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import cdk "github.com/aws/aws-cdk-go/awscdk" cfnMacro := cdk.NewCfnMacro(this, jsii.String("MyCfnMacro"), &CfnMacroProps{ FunctionName: jsii.String("functionName"), Name: jsii.String("name"), // the properties below are optional Description: jsii.String("description"), LogGroupName: jsii.String("logGroupName"), LogRoleArn: jsii.String("logRoleArn"), })
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudformation-macro.html
func NewCfnMacro ¶
func NewCfnMacro(scope constructs.Construct, id *string, props *CfnMacroProps) CfnMacro
type CfnMacroProps ¶
type CfnMacroProps struct { // The Amazon Resource Name (ARN) of the underlying AWS Lambda function that you want AWS CloudFormation to invoke when the macro is run. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudformation-macro.html#cfn-cloudformation-macro-functionname // FunctionName *string `field:"required" json:"functionName" yaml:"functionName"` // The name of the macro. // // The name of the macro must be unique across all macros in the account. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudformation-macro.html#cfn-cloudformation-macro-name // Name *string `field:"required" json:"name" yaml:"name"` // A description of the macro. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudformation-macro.html#cfn-cloudformation-macro-description // Description *string `field:"optional" json:"description" yaml:"description"` // The CloudWatch Logs group to which AWS CloudFormation sends error logging information when invoking the macro's underlying AWS Lambda function. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudformation-macro.html#cfn-cloudformation-macro-loggroupname // LogGroupName *string `field:"optional" json:"logGroupName" yaml:"logGroupName"` // The ARN of the role AWS CloudFormation should assume when sending log entries to CloudWatch Logs . // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudformation-macro.html#cfn-cloudformation-macro-logrolearn // LogRoleArn *string `field:"optional" json:"logRoleArn" yaml:"logRoleArn"` }
Properties for defining a `CfnMacro`.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import cdk "github.com/aws/aws-cdk-go/awscdk" cfnMacroProps := &CfnMacroProps{ FunctionName: jsii.String("functionName"), Name: jsii.String("name"), // the properties below are optional Description: jsii.String("description"), LogGroupName: jsii.String("logGroupName"), LogRoleArn: jsii.String("logRoleArn"), }
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudformation-macro.html
type CfnMapping ¶
type CfnMapping interface { CfnRefElement // Returns: the stack trace of the point where this Resource was created from, sourced // from the +metadata+ entry typed +aws:cdk:logicalId+, and with the bottom-most // node +internal+ entries filtered. CreationStack() *[]*string // The logical ID for this CloudFormation stack element. // // The logical ID of the element // is calculated from the path of the resource node in the construct tree. // // To override this value, use `overrideLogicalId(newLogicalId)`. // // Returns: the logical ID as a stringified token. This value will only get // resolved during synthesis. LogicalId() *string // The tree node. Node() constructs.Node // Return a string that will be resolved to a CloudFormation `{ Ref }` for this element. // // If, by any chance, the intrinsic reference of a resource is not a string, you could // coerce it to an IResolvable through `Lazy.any({ produce: resource.ref })`. Ref() *string // The stack in which this element is defined. // // CfnElements must be defined within a stack scope (directly or indirectly). Stack() Stack // Returns: A reference to a value in the map based on the two keys. // If mapping is lazy, the value from the map or default value is returned instead of the reference and the mapping is not rendered in the template. FindInMap(key1 *string, key2 *string, defaultValue *string) *string // Overrides the auto-generated logical ID with a specific ID. OverrideLogicalId(newLogicalId *string) // Sets a value in the map based on the two keys. SetValue(key1 *string, key2 *string, value interface{}) // Returns a string representation of this construct. ToString() *string }
Represents a CloudFormation mapping.
Example:
regionTable := awscdk.NewCfnMapping(this, jsii.String("RegionTable"), &CfnMappingProps{ Mapping: map[string]map[string]interface{}{ "us-east-1": map[string]interface{}{ "regionName": jsii.String("US East (N. Virginia)"), }, "us-east-2": map[string]interface{}{ "regionName": jsii.String("US East (Ohio)"), }, }, }) regionTable.FindInMap(awscdk.Aws_REGION(), jsii.String("regionName"))
func NewCfnMapping ¶
func NewCfnMapping(scope constructs.Construct, id *string, props *CfnMappingProps) CfnMapping
type CfnMappingProps ¶
type CfnMappingProps struct { Lazy *bool `field:"optional" json:"lazy" yaml:"lazy"` // Mapping of key to a set of corresponding set of named values. // // The key identifies a map of name-value pairs and must be unique within the mapping. // // For example, if you want to set values based on a region, you can create a mapping // that uses the region name as a key and contains the values you want to specify for // each specific region. // Default: - No mapping. // Mapping *map[string]*map[string]interface{} `field:"optional" json:"mapping" yaml:"mapping"` }
Example:
regionTable := awscdk.NewCfnMapping(this, jsii.String("RegionTable"), &CfnMappingProps{ Mapping: map[string]map[string]interface{}{ "us-east-1": map[string]interface{}{ "regionName": jsii.String("US East (N. Virginia)"), }, "us-east-2": map[string]interface{}{ "regionName": jsii.String("US East (Ohio)"), }, }, }) regionTable.FindInMap(awscdk.Aws_REGION(), jsii.String("regionName"))
type CfnModuleDefaultVersion ¶
type CfnModuleDefaultVersion interface { CfnResource IInspectable // The Amazon Resource Name (ARN) of the module version to set as the default version. Arn() *string SetArn(val *string) // Options for this resource, such as condition, update policy etc. CfnOptions() ICfnResourceOptions CfnProperties() *map[string]interface{} // AWS resource type. CfnResourceType() *string // Returns: the stack trace of the point where this Resource was created from, sourced // from the +metadata+ entry typed +aws:cdk:logicalId+, and with the bottom-most // node +internal+ entries filtered. CreationStack() *[]*string // The logical ID for this CloudFormation stack element. // // The logical ID of the element // is calculated from the path of the resource node in the construct tree. // // To override this value, use `overrideLogicalId(newLogicalId)`. // // Returns: the logical ID as a stringified token. This value will only get // resolved during synthesis. LogicalId() *string // The name of the module. ModuleName() *string SetModuleName(val *string) // The tree node. Node() constructs.Node // Return a string that will be resolved to a CloudFormation `{ Ref }` for this element. // // If, by any chance, the intrinsic reference of a resource is not a string, you could // coerce it to an IResolvable through `Lazy.any({ produce: resource.ref })`. Ref() *string // The stack in which this element is defined. // // CfnElements must be defined within a stack scope (directl