Documentation ¶
Index ¶
- func CfnApp_CFN_RESOURCE_TYPE_NAME() *string
- func CfnApp_IsCfnElement(x interface{}) *bool
- func CfnApp_IsCfnResource(x interface{}) *bool
- func CfnApp_IsConstruct(x interface{}) *bool
- func CfnBranch_CFN_RESOURCE_TYPE_NAME() *string
- func CfnBranch_IsCfnElement(x interface{}) *bool
- func CfnBranch_IsCfnResource(x interface{}) *bool
- func CfnBranch_IsConstruct(x interface{}) *bool
- func CfnDomain_CFN_RESOURCE_TYPE_NAME() *string
- func CfnDomain_IsCfnElement(x interface{}) *bool
- func CfnDomain_IsCfnResource(x interface{}) *bool
- func CfnDomain_IsConstruct(x interface{}) *bool
- func NewCfnApp_Override(c CfnApp, scope constructs.Construct, id *string, props *CfnAppProps)
- func NewCfnBranch_Override(c CfnBranch, scope constructs.Construct, id *string, props *CfnBranchProps)
- func NewCfnDomain_Override(c CfnDomain, scope constructs.Construct, id *string, props *CfnDomainProps)
- type CfnApp
- type CfnAppProps
- type CfnApp_AutoBranchCreationConfigProperty
- type CfnApp_BasicAuthConfigProperty
- type CfnApp_CacheConfigProperty
- type CfnApp_CustomRuleProperty
- type CfnApp_EnvironmentVariableProperty
- type CfnBranch
- type CfnBranchProps
- type CfnBranch_BackendProperty
- type CfnBranch_BasicAuthConfigProperty
- type CfnBranch_EnvironmentVariableProperty
- type CfnDomain
- type CfnDomainProps
- type CfnDomain_CertificateProperty
- type CfnDomain_CertificateSettingsProperty
- type CfnDomain_SubDomainSettingProperty
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CfnApp_CFN_RESOURCE_TYPE_NAME ¶
func CfnApp_CFN_RESOURCE_TYPE_NAME() *string
func CfnApp_IsCfnElement ¶
func CfnApp_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 CfnApp_IsCfnResource ¶
func CfnApp_IsCfnResource(x interface{}) *bool
Check whether the given object is a CfnResource.
func CfnApp_IsConstruct ¶
func CfnApp_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 CfnBranch_CFN_RESOURCE_TYPE_NAME ¶
func CfnBranch_CFN_RESOURCE_TYPE_NAME() *string
func CfnBranch_IsCfnElement ¶
func CfnBranch_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 CfnBranch_IsCfnResource ¶
func CfnBranch_IsCfnResource(x interface{}) *bool
Check whether the given object is a CfnResource.
func CfnBranch_IsConstruct ¶
func CfnBranch_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 CfnDomain_CFN_RESOURCE_TYPE_NAME ¶
func CfnDomain_CFN_RESOURCE_TYPE_NAME() *string
func CfnDomain_IsCfnElement ¶
func CfnDomain_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 CfnDomain_IsCfnResource ¶
func CfnDomain_IsCfnResource(x interface{}) *bool
Check whether the given object is a CfnResource.
func CfnDomain_IsConstruct ¶
func CfnDomain_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 NewCfnApp_Override ¶
func NewCfnApp_Override(c CfnApp, scope constructs.Construct, id *string, props *CfnAppProps)
func NewCfnBranch_Override ¶
func NewCfnBranch_Override(c CfnBranch, scope constructs.Construct, id *string, props *CfnBranchProps)
func NewCfnDomain_Override ¶
func NewCfnDomain_Override(c CfnDomain, scope constructs.Construct, id *string, props *CfnDomainProps)
Types ¶
type CfnApp ¶
type CfnApp interface { awscdk.CfnResource awscdk.IInspectable awscdk.ITaggable // The personal access token for a GitHub repository for an Amplify app. AccessToken() *string SetAccessToken(val *string) // Unique Id for the Amplify App. AttrAppId() *string // Name for the Amplify App. AttrAppName() *string // ARN for the Amplify App. AttrArn() *string // Default domain for the Amplify App. AttrDefaultDomain() *string // Sets the configuration for your automatic branch creation. AutoBranchCreationConfig() interface{} SetAutoBranchCreationConfig(val interface{}) // The credentials for basic authorization for an Amplify app. BasicAuthConfig() interface{} SetBasicAuthConfig(val interface{}) // The build specification (build spec) for an Amplify app. BuildSpec() *string SetBuildSpec(val *string) // The cache configuration for the Amplify app. CacheConfig() interface{} SetCacheConfig(val interface{}) // Options for this resource, such as condition, update policy etc. CfnOptions() awscdk.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 custom HTTP headers for an Amplify app. CustomHeaders() *string SetCustomHeaders(val *string) // The custom rewrite and redirect rules for an Amplify app. CustomRules() interface{} SetCustomRules(val interface{}) // The description of the Amplify app. Description() *string SetDescription(val *string) // Automatically disconnect a branch in Amplify Hosting when you delete a branch from your Git repository. EnableBranchAutoDeletion() interface{} SetEnableBranchAutoDeletion(val interface{}) // The environment variables for the Amplify app. EnvironmentVariables() interface{} SetEnvironmentVariables(val interface{}) // AWS Identity and Access Management ( IAM ) service role for the Amazon Resource Name (ARN) of the Amplify app. IamServiceRole() *string SetIamServiceRole(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 name of the Amplify app. Name() *string SetName(val *string) // The tree node. Node() constructs.Node // The OAuth token for a third-party source control system for an Amplify app. OauthToken() *string SetOauthToken(val *string) // The platform for the Amplify app. Platform() *string SetPlatform(val *string) // 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 Git repository for the Amplify app. Repository() *string SetRepository(val *string) // The stack in which this element is defined. // // CfnElements must be defined within a stack scope (directly or indirectly). Stack() awscdk.Stack // Tag Manager which manages the tags for this resource. Tags() awscdk.TagManager // The tag for an Amplify app. TagsRaw() *[]*awscdk.CfnTag SetTagsRaw(val *[]*awscdk.CfnTag) // 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 awscdk.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 awscdk.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 awscdk.RemovalPolicy, options *awscdk.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 awscdk.ResolutionTypeHint) awscdk.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 awscdk.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() *[]awscdk.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 awscdk.CfnResource) RenderProperties(props *map[string]interface{}) *map[string]interface{} // Replaces one dependency with another. ReplaceDependency(target awscdk.CfnResource, newTarget awscdk.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::Amplify::App resource specifies Apps in Amplify Hosting.
An App is a collection of branches.
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" cfnApp := awscdk.Aws_amplify.NewCfnApp(this, jsii.String("MyCfnApp"), &CfnAppProps{ Name: jsii.String("name"), // the properties below are optional AccessToken: jsii.String("accessToken"), AutoBranchCreationConfig: &AutoBranchCreationConfigProperty{ AutoBranchCreationPatterns: []*string{ jsii.String("autoBranchCreationPatterns"), }, BasicAuthConfig: &BasicAuthConfigProperty{ EnableBasicAuth: jsii.Boolean(false), Password: jsii.String("password"), Username: jsii.String("username"), }, BuildSpec: jsii.String("buildSpec"), EnableAutoBranchCreation: jsii.Boolean(false), EnableAutoBuild: jsii.Boolean(false), EnablePerformanceMode: jsii.Boolean(false), EnablePullRequestPreview: jsii.Boolean(false), EnvironmentVariables: []interface{}{ &EnvironmentVariableProperty{ Name: jsii.String("name"), Value: jsii.String("value"), }, }, Framework: jsii.String("framework"), PullRequestEnvironmentName: jsii.String("pullRequestEnvironmentName"), Stage: jsii.String("stage"), }, BasicAuthConfig: &BasicAuthConfigProperty{ EnableBasicAuth: jsii.Boolean(false), Password: jsii.String("password"), Username: jsii.String("username"), }, BuildSpec: jsii.String("buildSpec"), CacheConfig: &CacheConfigProperty{ Type: jsii.String("type"), }, CustomHeaders: jsii.String("customHeaders"), CustomRules: []interface{}{ &CustomRuleProperty{ Source: jsii.String("source"), Target: jsii.String("target"), // the properties below are optional Condition: jsii.String("condition"), Status: jsii.String("status"), }, }, Description: jsii.String("description"), EnableBranchAutoDeletion: jsii.Boolean(false), EnvironmentVariables: []interface{}{ &EnvironmentVariableProperty{ Name: jsii.String("name"), Value: jsii.String("value"), }, }, IamServiceRole: jsii.String("iamServiceRole"), OauthToken: jsii.String("oauthToken"), Platform: jsii.String("platform"), Repository: jsii.String("repository"), Tags: []cfnTag{ &cfnTag{ Key: jsii.String("key"), Value: jsii.String("value"), }, }, })
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amplify-app.html
func NewCfnApp ¶
func NewCfnApp(scope constructs.Construct, id *string, props *CfnAppProps) CfnApp
type CfnAppProps ¶
type CfnAppProps struct { // The name of the Amplify app. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amplify-app.html#cfn-amplify-app-name // Name *string `field:"required" json:"name" yaml:"name"` // The personal access token for a GitHub repository for an Amplify app. // // The personal access token is used to authorize access to a GitHub repository using the Amplify GitHub App. The token is not stored. // // Use `AccessToken` for GitHub repositories only. To authorize access to a repository provider such as Bitbucket or CodeCommit, use `OauthToken` . // // You must specify either `AccessToken` or `OauthToken` when you create a new app. // // Existing Amplify apps deployed from a GitHub repository using OAuth continue to work with CI/CD. However, we strongly recommend that you migrate these apps to use the GitHub App. For more information, see [Migrating an existing OAuth app to the Amplify GitHub App](https://docs.aws.amazon.com/amplify/latest/userguide/setting-up-GitHub-access.html#migrating-to-github-app-auth) in the *Amplify User Guide* . // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amplify-app.html#cfn-amplify-app-accesstoken // AccessToken *string `field:"optional" json:"accessToken" yaml:"accessToken"` // Sets the configuration for your automatic branch creation. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amplify-app.html#cfn-amplify-app-autobranchcreationconfig // AutoBranchCreationConfig interface{} `field:"optional" json:"autoBranchCreationConfig" yaml:"autoBranchCreationConfig"` // The credentials for basic authorization for an Amplify app. // // You must base64-encode the authorization credentials and provide them in the format `user:password` . // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amplify-app.html#cfn-amplify-app-basicauthconfig // BasicAuthConfig interface{} `field:"optional" json:"basicAuthConfig" yaml:"basicAuthConfig"` // The build specification (build spec) for an Amplify app. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amplify-app.html#cfn-amplify-app-buildspec // BuildSpec *string `field:"optional" json:"buildSpec" yaml:"buildSpec"` // The cache configuration for the Amplify app. // // If you don't specify the cache configuration `type` , Amplify uses the default `AMPLIFY_MANAGED` setting. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amplify-app.html#cfn-amplify-app-cacheconfig // CacheConfig interface{} `field:"optional" json:"cacheConfig" yaml:"cacheConfig"` // The custom HTTP headers for an Amplify app. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amplify-app.html#cfn-amplify-app-customheaders // CustomHeaders *string `field:"optional" json:"customHeaders" yaml:"customHeaders"` // The custom rewrite and redirect rules for an Amplify app. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amplify-app.html#cfn-amplify-app-customrules // CustomRules interface{} `field:"optional" json:"customRules" yaml:"customRules"` // The description of the Amplify app. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amplify-app.html#cfn-amplify-app-description // Description *string `field:"optional" json:"description" yaml:"description"` // Automatically disconnect a branch in Amplify Hosting when you delete a branch from your Git repository. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amplify-app.html#cfn-amplify-app-enablebranchautodeletion // EnableBranchAutoDeletion interface{} `field:"optional" json:"enableBranchAutoDeletion" yaml:"enableBranchAutoDeletion"` // The environment variables for the Amplify app. // // For a list of the environment variables that are accessible to Amplify by default, see [Amplify Environment variables](https://docs.aws.amazon.com/amplify/latest/userguide/amplify-console-environment-variables.html) in the *Amplify Hosting User Guide* . // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amplify-app.html#cfn-amplify-app-environmentvariables // EnvironmentVariables interface{} `field:"optional" json:"environmentVariables" yaml:"environmentVariables"` // AWS Identity and Access Management ( IAM ) service role for the Amazon Resource Name (ARN) of the Amplify app. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amplify-app.html#cfn-amplify-app-iamservicerole // IamServiceRole *string `field:"optional" json:"iamServiceRole" yaml:"iamServiceRole"` // The OAuth token for a third-party source control system for an Amplify app. // // The OAuth token is used to create a webhook and a read-only deploy key using SSH cloning. The OAuth token is not stored. // // Use `OauthToken` for repository providers other than GitHub, such as Bitbucket or CodeCommit. To authorize access to GitHub as your repository provider, use `AccessToken` . // // You must specify either `OauthToken` or `AccessToken` when you create a new app. // // Existing Amplify apps deployed from a GitHub repository using OAuth continue to work with CI/CD. However, we strongly recommend that you migrate these apps to use the GitHub App. For more information, see [Migrating an existing OAuth app to the Amplify GitHub App](https://docs.aws.amazon.com/amplify/latest/userguide/setting-up-GitHub-access.html#migrating-to-github-app-auth) in the *Amplify User Guide* . // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amplify-app.html#cfn-amplify-app-oauthtoken // OauthToken *string `field:"optional" json:"oauthToken" yaml:"oauthToken"` // The platform for the Amplify app. // // For a static app, set the platform type to `WEB` . For a dynamic server-side rendered (SSR) app, set the platform type to `WEB_COMPUTE` . For an app requiring Amplify Hosting's original SSR support only, set the platform type to `WEB_DYNAMIC` . // // If you are deploying an SSG only app with Next.js version 14 or later, you must set the platform type to `WEB_COMPUTE` and set the artifacts `baseDirectory` to `.next` in the application's build settings. For an example of the build specification settings, see [Amplify build settings for a Next.js 14 SSG application](https://docs.aws.amazon.com/amplify/latest/userguide/deploy-nextjs-app.html#build-setting-detection-ssg-14) in the *Amplify Hosting User Guide* . // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amplify-app.html#cfn-amplify-app-platform // Platform *string `field:"optional" json:"platform" yaml:"platform"` // The Git repository for the Amplify app. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amplify-app.html#cfn-amplify-app-repository // Repository *string `field:"optional" json:"repository" yaml:"repository"` // The tag for an Amplify app. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amplify-app.html#cfn-amplify-app-tags // Tags *[]*awscdk.CfnTag `field:"optional" json:"tags" yaml:"tags"` }
Properties for defining a `CfnApp`.
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" cfnAppProps := &CfnAppProps{ Name: jsii.String("name"), // the properties below are optional AccessToken: jsii.String("accessToken"), AutoBranchCreationConfig: &AutoBranchCreationConfigProperty{ AutoBranchCreationPatterns: []*string{ jsii.String("autoBranchCreationPatterns"), }, BasicAuthConfig: &BasicAuthConfigProperty{ EnableBasicAuth: jsii.Boolean(false), Password: jsii.String("password"), Username: jsii.String("username"), }, BuildSpec: jsii.String("buildSpec"), EnableAutoBranchCreation: jsii.Boolean(false), EnableAutoBuild: jsii.Boolean(false), EnablePerformanceMode: jsii.Boolean(false), EnablePullRequestPreview: jsii.Boolean(false), EnvironmentVariables: []interface{}{ &EnvironmentVariableProperty{ Name: jsii.String("name"), Value: jsii.String("value"), }, }, Framework: jsii.String("framework"), PullRequestEnvironmentName: jsii.String("pullRequestEnvironmentName"), Stage: jsii.String("stage"), }, BasicAuthConfig: &BasicAuthConfigProperty{ EnableBasicAuth: jsii.Boolean(false), Password: jsii.String("password"), Username: jsii.String("username"), }, BuildSpec: jsii.String("buildSpec"), CacheConfig: &CacheConfigProperty{ Type: jsii.String("type"), }, CustomHeaders: jsii.String("customHeaders"), CustomRules: []interface{}{ &CustomRuleProperty{ Source: jsii.String("source"), Target: jsii.String("target"), // the properties below are optional Condition: jsii.String("condition"), Status: jsii.String("status"), }, }, Description: jsii.String("description"), EnableBranchAutoDeletion: jsii.Boolean(false), EnvironmentVariables: []interface{}{ &EnvironmentVariableProperty{ Name: jsii.String("name"), Value: jsii.String("value"), }, }, IamServiceRole: jsii.String("iamServiceRole"), OauthToken: jsii.String("oauthToken"), Platform: jsii.String("platform"), Repository: jsii.String("repository"), Tags: []cfnTag{ &cfnTag{ Key: jsii.String("key"), Value: jsii.String("value"), }, }, }
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amplify-app.html
type CfnApp_AutoBranchCreationConfigProperty ¶
type CfnApp_AutoBranchCreationConfigProperty struct { // Automated branch creation glob patterns for the Amplify app. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplify-app-autobranchcreationconfig.html#cfn-amplify-app-autobranchcreationconfig-autobranchcreationpatterns // AutoBranchCreationPatterns *[]*string `field:"optional" json:"autoBranchCreationPatterns" yaml:"autoBranchCreationPatterns"` // Sets password protection for your auto created branch. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplify-app-autobranchcreationconfig.html#cfn-amplify-app-autobranchcreationconfig-basicauthconfig // BasicAuthConfig interface{} `field:"optional" json:"basicAuthConfig" yaml:"basicAuthConfig"` // The build specification (build spec) for the autocreated branch. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplify-app-autobranchcreationconfig.html#cfn-amplify-app-autobranchcreationconfig-buildspec // BuildSpec *string `field:"optional" json:"buildSpec" yaml:"buildSpec"` // Enables automated branch creation for the Amplify app. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplify-app-autobranchcreationconfig.html#cfn-amplify-app-autobranchcreationconfig-enableautobranchcreation // EnableAutoBranchCreation interface{} `field:"optional" json:"enableAutoBranchCreation" yaml:"enableAutoBranchCreation"` // Enables auto building for the auto created branch. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplify-app-autobranchcreationconfig.html#cfn-amplify-app-autobranchcreationconfig-enableautobuild // EnableAutoBuild interface{} `field:"optional" json:"enableAutoBuild" yaml:"enableAutoBuild"` // Enables performance mode for the branch. // // Performance mode optimizes for faster hosting performance by keeping content cached at the edge for a longer interval. When performance mode is enabled, hosting configuration or code changes can take up to 10 minutes to roll out. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplify-app-autobranchcreationconfig.html#cfn-amplify-app-autobranchcreationconfig-enableperformancemode // EnablePerformanceMode interface{} `field:"optional" json:"enablePerformanceMode" yaml:"enablePerformanceMode"` // Sets whether pull request previews are enabled for each branch that Amplify Hosting automatically creates for your app. // // Amplify creates previews by deploying your app to a unique URL whenever a pull request is opened for the branch. Development and QA teams can use this preview to test the pull request before it's merged into a production or integration branch. // // To provide backend support for your preview, Amplify Hosting automatically provisions a temporary backend environment that it deletes when the pull request is closed. If you want to specify a dedicated backend environment for your previews, use the `PullRequestEnvironmentName` property. // // For more information, see [Web Previews](https://docs.aws.amazon.com/amplify/latest/userguide/pr-previews.html) in the *AWS Amplify Hosting User Guide* . // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplify-app-autobranchcreationconfig.html#cfn-amplify-app-autobranchcreationconfig-enablepullrequestpreview // EnablePullRequestPreview interface{} `field:"optional" json:"enablePullRequestPreview" yaml:"enablePullRequestPreview"` // The environment variables for the autocreated branch. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplify-app-autobranchcreationconfig.html#cfn-amplify-app-autobranchcreationconfig-environmentvariables // EnvironmentVariables interface{} `field:"optional" json:"environmentVariables" yaml:"environmentVariables"` // The framework for the autocreated branch. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplify-app-autobranchcreationconfig.html#cfn-amplify-app-autobranchcreationconfig-framework // Framework *string `field:"optional" json:"framework" yaml:"framework"` // If pull request previews are enabled, you can use this property to specify a dedicated backend environment for your previews. // // For example, you could specify an environment named `prod` , `test` , or `dev` that you initialized with the Amplify CLI. // // To enable pull request previews, set the `EnablePullRequestPreview` property to `true` . // // If you don't specify an environment, Amplify Hosting provides backend support for each preview by automatically provisioning a temporary backend environment. Amplify deletes this environment when the pull request is closed. // // For more information about creating backend environments, see [Feature Branch Deployments and Team Workflows](https://docs.aws.amazon.com/amplify/latest/userguide/multi-environments.html) in the *AWS Amplify Hosting User Guide* . // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplify-app-autobranchcreationconfig.html#cfn-amplify-app-autobranchcreationconfig-pullrequestenvironmentname // PullRequestEnvironmentName *string `field:"optional" json:"pullRequestEnvironmentName" yaml:"pullRequestEnvironmentName"` // Stage for the auto created branch. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplify-app-autobranchcreationconfig.html#cfn-amplify-app-autobranchcreationconfig-stage // Stage *string `field:"optional" json:"stage" yaml:"stage"` }
Use the AutoBranchCreationConfig property type to automatically create branches that match a certain pattern.
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" autoBranchCreationConfigProperty := &AutoBranchCreationConfigProperty{ AutoBranchCreationPatterns: []*string{ jsii.String("autoBranchCreationPatterns"), }, BasicAuthConfig: &BasicAuthConfigProperty{ EnableBasicAuth: jsii.Boolean(false), Password: jsii.String("password"), Username: jsii.String("username"), }, BuildSpec: jsii.String("buildSpec"), EnableAutoBranchCreation: jsii.Boolean(false), EnableAutoBuild: jsii.Boolean(false), EnablePerformanceMode: jsii.Boolean(false), EnablePullRequestPreview: jsii.Boolean(false), EnvironmentVariables: []interface{}{ &EnvironmentVariableProperty{ Name: jsii.String("name"), Value: jsii.String("value"), }, }, Framework: jsii.String("framework"), PullRequestEnvironmentName: jsii.String("pullRequestEnvironmentName"), Stage: jsii.String("stage"), }
type CfnApp_BasicAuthConfigProperty ¶
type CfnApp_BasicAuthConfigProperty struct { // Enables basic authorization for the Amplify app's branches. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplify-app-basicauthconfig.html#cfn-amplify-app-basicauthconfig-enablebasicauth // EnableBasicAuth interface{} `field:"optional" json:"enableBasicAuth" yaml:"enableBasicAuth"` // The password for basic authorization. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplify-app-basicauthconfig.html#cfn-amplify-app-basicauthconfig-password // Password *string `field:"optional" json:"password" yaml:"password"` // The user name for basic authorization. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplify-app-basicauthconfig.html#cfn-amplify-app-basicauthconfig-username // Username *string `field:"optional" json:"username" yaml:"username"` }
Use the BasicAuthConfig property type to set password protection at an app level to all your branches.
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" basicAuthConfigProperty := &BasicAuthConfigProperty{ EnableBasicAuth: jsii.Boolean(false), Password: jsii.String("password"), Username: jsii.String("username"), }
type CfnApp_CacheConfigProperty ¶ added in v2.157.0
type CfnApp_CacheConfigProperty struct { // The type of cache configuration to use for an Amplify app. // // The `AMPLIFY_MANAGED` cache configuration automatically applies an optimized cache configuration for your app based on its platform, routing rules, and rewrite rules. This is the default setting. // // The `AMPLIFY_MANAGED_NO_COOKIES` cache configuration type is the same as `AMPLIFY_MANAGED` , except that it excludes all cookies from the cache key. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplify-app-cacheconfig.html#cfn-amplify-app-cacheconfig-type // Type *string `field:"optional" json:"type" yaml:"type"` }
Describes the cache configuration for an Amplify app.
For more information about how Amplify applies an optimal cache configuration for your app based on the type of content that is being served, see [Managing cache configuration](https://docs.aws.amazon.com/amplify/latest/userguide/managing-cache-configuration) in the *Amplify User guide* .
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" cacheConfigProperty := &CacheConfigProperty{ Type: jsii.String("type"), }
type CfnApp_CustomRuleProperty ¶
type CfnApp_CustomRuleProperty struct { // The source pattern for a URL rewrite or redirect rule. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplify-app-customrule.html#cfn-amplify-app-customrule-source // Source *string `field:"required" json:"source" yaml:"source"` // The target pattern for a URL rewrite or redirect rule. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplify-app-customrule.html#cfn-amplify-app-customrule-target // Target *string `field:"required" json:"target" yaml:"target"` // The condition for a URL rewrite or redirect rule, such as a country code. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplify-app-customrule.html#cfn-amplify-app-customrule-condition // Condition *string `field:"optional" json:"condition" yaml:"condition"` // The status code for a URL rewrite or redirect rule. // // - **200** - Represents a 200 rewrite rule. // - **301** - Represents a 301 (moved pemanently) redirect rule. This and all future requests should be directed to the target URL. // - **302** - Represents a 302 temporary redirect rule. // - **404** - Represents a 404 redirect rule. // - **404-200** - Represents a 404 rewrite rule. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplify-app-customrule.html#cfn-amplify-app-customrule-status // Status *string `field:"optional" json:"status" yaml:"status"` }
The CustomRule property type allows you to specify redirects, rewrites, and reverse proxies.
Redirects enable a web app to reroute navigation from one URL to another.
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" customRuleProperty := &CustomRuleProperty{ Source: jsii.String("source"), Target: jsii.String("target"), // the properties below are optional Condition: jsii.String("condition"), Status: jsii.String("status"), }
type CfnApp_EnvironmentVariableProperty ¶
type CfnApp_EnvironmentVariableProperty struct { // The environment variable name. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplify-app-environmentvariable.html#cfn-amplify-app-environmentvariable-name // Name *string `field:"required" json:"name" yaml:"name"` // The environment variable value. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplify-app-environmentvariable.html#cfn-amplify-app-environmentvariable-value // Value *string `field:"required" json:"value" yaml:"value"` }
Environment variables are key-value pairs that are available at build time.
Set environment variables for all branches in your app.
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" environmentVariableProperty := &EnvironmentVariableProperty{ Name: jsii.String("name"), Value: jsii.String("value"), }
type CfnBranch ¶
type CfnBranch interface { awscdk.CfnResource awscdk.IInspectable awscdk.ITaggable // The unique ID for an Amplify app. AppId() *string SetAppId(val *string) // ARN for a branch, part of an Amplify App. AttrArn() *string // Name for a branch, part of an Amplify App. AttrBranchName() *string // The backend for a `Branch` of an Amplify app. // // Use for a backend created from an AWS CloudFormation stack. Backend() interface{} SetBackend(val interface{}) // The basic authorization credentials for a branch of an Amplify app. BasicAuthConfig() interface{} SetBasicAuthConfig(val interface{}) // The name for the branch. BranchName() *string SetBranchName(val *string) // The build specification (build spec) for the branch. BuildSpec() *string SetBuildSpec(val *string) // Options for this resource, such as condition, update policy etc. CfnOptions() awscdk.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 description for the branch that is part of an Amplify app. Description() *string SetDescription(val *string) // Enables auto building for the branch. EnableAutoBuild() interface{} SetEnableAutoBuild(val interface{}) // Enables performance mode for the branch. EnablePerformanceMode() interface{} SetEnablePerformanceMode(val interface{}) // Specifies whether Amplify Hosting creates a preview for each pull request that is made for this branch. EnablePullRequestPreview() interface{} SetEnablePullRequestPreview(val interface{}) // The environment variables for the branch. EnvironmentVariables() interface{} SetEnvironmentVariables(val interface{}) // The framework for the branch. Framework() *string SetFramework(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 tree node. Node() constructs.Node // If pull request previews are enabled for this branch, you can use this property to specify a dedicated backend environment for your previews. PullRequestEnvironmentName() *string SetPullRequestEnvironmentName(val *string) // 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() awscdk.Stack // Describes the current stage for the branch. Stage() *string SetStage(val *string) // Tag Manager which manages the tags for this resource. Tags() awscdk.TagManager // The tag for the branch. TagsRaw() *[]*awscdk.CfnTag SetTagsRaw(val *[]*awscdk.CfnTag) // 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 awscdk.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 awscdk.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 awscdk.RemovalPolicy, options *awscdk.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 awscdk.ResolutionTypeHint) awscdk.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 awscdk.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() *[]awscdk.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 awscdk.CfnResource) RenderProperties(props *map[string]interface{}) *map[string]interface{} // Replaces one dependency with another. ReplaceDependency(target awscdk.CfnResource, newTarget awscdk.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::Amplify::Branch resource specifies a new branch within an app.
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" cfnBranch := awscdk.Aws_amplify.NewCfnBranch(this, jsii.String("MyCfnBranch"), &CfnBranchProps{ AppId: jsii.String("appId"), BranchName: jsii.String("branchName"), // the properties below are optional Backend: &BackendProperty{ StackArn: jsii.String("stackArn"), }, BasicAuthConfig: &BasicAuthConfigProperty{ Password: jsii.String("password"), Username: jsii.String("username"), // the properties below are optional EnableBasicAuth: jsii.Boolean(false), }, BuildSpec: jsii.String("buildSpec"), Description: jsii.String("description"), EnableAutoBuild: jsii.Boolean(false), EnablePerformanceMode: jsii.Boolean(false), EnablePullRequestPreview: jsii.Boolean(false), EnvironmentVariables: []interface{}{ &EnvironmentVariableProperty{ Name: jsii.String("name"), Value: jsii.String("value"), }, }, Framework: jsii.String("framework"), PullRequestEnvironmentName: jsii.String("pullRequestEnvironmentName"), Stage: jsii.String("stage"), Tags: []cfnTag{ &cfnTag{ Key: jsii.String("key"), Value: jsii.String("value"), }, }, })
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amplify-branch.html
func NewCfnBranch ¶
func NewCfnBranch(scope constructs.Construct, id *string, props *CfnBranchProps) CfnBranch
type CfnBranchProps ¶
type CfnBranchProps struct { // The unique ID for an Amplify app. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amplify-branch.html#cfn-amplify-branch-appid // AppId *string `field:"required" json:"appId" yaml:"appId"` // The name for the branch. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amplify-branch.html#cfn-amplify-branch-branchname // BranchName *string `field:"required" json:"branchName" yaml:"branchName"` // The backend for a `Branch` of an Amplify app. Use for a backend created from an AWS CloudFormation stack. // // This field is available to Amplify Gen 2 apps only. When you deploy an application with Amplify Gen 2, you provision the app's backend infrastructure using Typescript code. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amplify-branch.html#cfn-amplify-branch-backend // Backend interface{} `field:"optional" json:"backend" yaml:"backend"` // The basic authorization credentials for a branch of an Amplify app. // // You must base64-encode the authorization credentials and provide them in the format `user:password` . // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amplify-branch.html#cfn-amplify-branch-basicauthconfig // BasicAuthConfig interface{} `field:"optional" json:"basicAuthConfig" yaml:"basicAuthConfig"` // The build specification (build spec) for the branch. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amplify-branch.html#cfn-amplify-branch-buildspec // BuildSpec *string `field:"optional" json:"buildSpec" yaml:"buildSpec"` // The description for the branch that is part of an Amplify app. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amplify-branch.html#cfn-amplify-branch-description // Description *string `field:"optional" json:"description" yaml:"description"` // Enables auto building for the branch. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amplify-branch.html#cfn-amplify-branch-enableautobuild // EnableAutoBuild interface{} `field:"optional" json:"enableAutoBuild" yaml:"enableAutoBuild"` // Enables performance mode for the branch. // // Performance mode optimizes for faster hosting performance by keeping content cached at the edge for a longer interval. When performance mode is enabled, hosting configuration or code changes can take up to 10 minutes to roll out. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amplify-branch.html#cfn-amplify-branch-enableperformancemode // EnablePerformanceMode interface{} `field:"optional" json:"enablePerformanceMode" yaml:"enablePerformanceMode"` // Specifies whether Amplify Hosting creates a preview for each pull request that is made for this branch. // // If this property is enabled, Amplify deploys your app to a unique preview URL after each pull request is opened. Development and QA teams can use this preview to test the pull request before it's merged into a production or integration branch. // // To provide backend support for your preview, Amplify automatically provisions a temporary backend environment that it deletes when the pull request is closed. If you want to specify a dedicated backend environment for your previews, use the `PullRequestEnvironmentName` property. // // For more information, see [Web Previews](https://docs.aws.amazon.com/amplify/latest/userguide/pr-previews.html) in the *AWS Amplify Hosting User Guide* . // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amplify-branch.html#cfn-amplify-branch-enablepullrequestpreview // EnablePullRequestPreview interface{} `field:"optional" json:"enablePullRequestPreview" yaml:"enablePullRequestPreview"` // The environment variables for the branch. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amplify-branch.html#cfn-amplify-branch-environmentvariables // EnvironmentVariables interface{} `field:"optional" json:"environmentVariables" yaml:"environmentVariables"` // The framework for the branch. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amplify-branch.html#cfn-amplify-branch-framework // Framework *string `field:"optional" json:"framework" yaml:"framework"` // If pull request previews are enabled for this branch, you can use this property to specify a dedicated backend environment for your previews. // // For example, you could specify an environment named `prod` , `test` , or `dev` that you initialized with the Amplify CLI and mapped to this branch. // // To enable pull request previews, set the `EnablePullRequestPreview` property to `true` . // // If you don't specify an environment, Amplify Hosting provides backend support for each preview by automatically provisioning a temporary backend environment. Amplify Hosting deletes this environment when the pull request is closed. // // For more information about creating backend environments, see [Feature Branch Deployments and Team Workflows](https://docs.aws.amazon.com/amplify/latest/userguide/multi-environments.html) in the *AWS Amplify Hosting User Guide* . // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amplify-branch.html#cfn-amplify-branch-pullrequestenvironmentname // PullRequestEnvironmentName *string `field:"optional" json:"pullRequestEnvironmentName" yaml:"pullRequestEnvironmentName"` // Describes the current stage for the branch. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amplify-branch.html#cfn-amplify-branch-stage // Stage *string `field:"optional" json:"stage" yaml:"stage"` // The tag for the branch. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amplify-branch.html#cfn-amplify-branch-tags // Tags *[]*awscdk.CfnTag `field:"optional" json:"tags" yaml:"tags"` }
Properties for defining a `CfnBranch`.
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" cfnBranchProps := &CfnBranchProps{ AppId: jsii.String("appId"), BranchName: jsii.String("branchName"), // the properties below are optional Backend: &BackendProperty{ StackArn: jsii.String("stackArn"), }, BasicAuthConfig: &BasicAuthConfigProperty{ Password: jsii.String("password"), Username: jsii.String("username"), // the properties below are optional EnableBasicAuth: jsii.Boolean(false), }, BuildSpec: jsii.String("buildSpec"), Description: jsii.String("description"), EnableAutoBuild: jsii.Boolean(false), EnablePerformanceMode: jsii.Boolean(false), EnablePullRequestPreview: jsii.Boolean(false), EnvironmentVariables: []interface{}{ &EnvironmentVariableProperty{ Name: jsii.String("name"), Value: jsii.String("value"), }, }, Framework: jsii.String("framework"), PullRequestEnvironmentName: jsii.String("pullRequestEnvironmentName"), Stage: jsii.String("stage"), Tags: []cfnTag{ &cfnTag{ Key: jsii.String("key"), Value: jsii.String("value"), }, }, }
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amplify-branch.html
type CfnBranch_BackendProperty ¶ added in v2.103.0
type CfnBranch_BackendProperty struct { // The Amazon Resource Name (ARN) for the AWS CloudFormation stack. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplify-branch-backend.html#cfn-amplify-branch-backend-stackarn // StackArn *string `field:"optional" json:"stackArn" yaml:"stackArn"` }
Describes the backend associated with an Amplify `Branch` .
This property is available to Amplify Gen 2 apps only. When you deploy an application with Amplify Gen 2, you provision the app's backend infrastructure using Typescript code.
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" backendProperty := &BackendProperty{ StackArn: jsii.String("stackArn"), }
type CfnBranch_BasicAuthConfigProperty ¶
type CfnBranch_BasicAuthConfigProperty struct { // The password for basic authorization. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplify-branch-basicauthconfig.html#cfn-amplify-branch-basicauthconfig-password // Password *string `field:"required" json:"password" yaml:"password"` // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplify-branch-basicauthconfig.html#cfn-amplify-branch-basicauthconfig-username // Username *string `field:"required" json:"username" yaml:"username"` // Enables basic authorization for the branch. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplify-branch-basicauthconfig.html#cfn-amplify-branch-basicauthconfig-enablebasicauth // EnableBasicAuth interface{} `field:"optional" json:"enableBasicAuth" yaml:"enableBasicAuth"` }
Use the BasicAuthConfig property type to set password protection for a specific branch.
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" basicAuthConfigProperty := &BasicAuthConfigProperty{ Password: jsii.String("password"), Username: jsii.String("username"), // the properties below are optional EnableBasicAuth: jsii.Boolean(false), }
type CfnBranch_EnvironmentVariableProperty ¶
type CfnBranch_EnvironmentVariableProperty struct { // The environment variable name. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplify-branch-environmentvariable.html#cfn-amplify-branch-environmentvariable-name // Name *string `field:"required" json:"name" yaml:"name"` // The environment variable value. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplify-branch-environmentvariable.html#cfn-amplify-branch-environmentvariable-value // Value *string `field:"required" json:"value" yaml:"value"` }
The EnvironmentVariable property type sets environment variables for a specific branch.
Environment variables are key-value pairs that are available at build time.
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" environmentVariableProperty := &EnvironmentVariableProperty{ Name: jsii.String("name"), Value: jsii.String("value"), }
type CfnDomain ¶
type CfnDomain interface { awscdk.CfnResource awscdk.IInspectable // The unique ID for an Amplify app. AppId() *string SetAppId(val *string) // ARN for the Domain Association. AttrArn() *string // Branch patterns for the automatically created subdomain. AttrAutoSubDomainCreationPatterns() *[]*string // The IAM service role for the subdomain. AttrAutoSubDomainIamRole() *string AttrCertificate() awscdk.IResolvable // DNS Record for certificate verification. AttrCertificateRecord() *string // Name of the domain. AttrDomainName() *string // Status for the Domain Association. AttrDomainStatus() *string // Specifies whether the automated creation of subdomains for branches is enabled. AttrEnableAutoSubDomain() awscdk.IResolvable // Reason for the current status of the domain. AttrStatusReason() *string // The status of the domain update operation that is currently in progress. // // The following list describes the valid update states. // // - **REQUESTING_CERTIFICATE** - The certificate is in the process of being updated. // - **PENDING_VERIFICATION** - Indicates that an Amplify managed certificate is in the process of being verified. This occurs during the creation of a custom domain or when a custom domain is updated to use a managed certificate. // - **IMPORTING_CUSTOM_CERTIFICATE** - Indicates that an Amplify custom certificate is in the process of being imported. This occurs during the creation of a custom domain or when a custom domain is updated to use a custom certificate. // - **PENDING_DEPLOYMENT** - Indicates that the subdomain or certificate changes are being propagated. // - **AWAITING_APP_CNAME** - Amplify is waiting for CNAME records corresponding to subdomains to be propagated. If your custom domain is on Route 53, Amplify handles this for you automatically. For more information about custom domains, see [Setting up custom domains](https://docs.aws.amazon.com/amplify/latest/userguide/custom-domains.html) in the *Amplify Hosting User Guide* . // - **UPDATE_COMPLETE** - The certificate has been associated with a domain. // - **UPDATE_FAILED** - The certificate has failed to be provisioned or associated, and there is no existing active certificate to roll back to. AttrUpdateStatus() *string // Sets the branch patterns for automatic subdomain creation. AutoSubDomainCreationPatterns() *[]*string SetAutoSubDomainCreationPatterns(val *[]*string) // The required AWS Identity and Access Management (IAMlong) service role for the Amazon Resource Name (ARN) for automatically creating subdomains. AutoSubDomainIamRole() *string SetAutoSubDomainIamRole(val *string) // The type of SSL/TLS certificate to use for your custom domain. CertificateSettings() interface{} SetCertificateSettings(val interface{}) // Options for this resource, such as condition, update policy etc. CfnOptions() awscdk.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 domain name for the domain association. DomainName() *string SetDomainName(val *string) // Enables the automated creation of subdomains for branches. EnableAutoSubDomain() interface{} SetEnableAutoSubDomain(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 // The stack in which this element is defined. // // CfnElements must be defined within a stack scope (directly or indirectly). Stack() awscdk.Stack // The setting for the subdomain. SubDomainSettings() interface{} SetSubDomainSettings(val interface{}) // 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 awscdk.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 awscdk.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 awscdk.RemovalPolicy, options *awscdk.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 awscdk.ResolutionTypeHint) awscdk.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 awscdk.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() *[]awscdk.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 awscdk.CfnResource) RenderProperties(props *map[string]interface{}) *map[string]interface{} // Replaces one dependency with another. ReplaceDependency(target awscdk.CfnResource, newTarget awscdk.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{}) }
Specifies the AWS::Amplify::Domain resource that enables you to connect a custom domain to your app.
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" cfnDomain := awscdk.Aws_amplify.NewCfnDomain(this, jsii.String("MyCfnDomain"), &CfnDomainProps{ AppId: jsii.String("appId"), DomainName: jsii.String("domainName"), SubDomainSettings: []interface{}{ &SubDomainSettingProperty{ BranchName: jsii.String("branchName"), Prefix: jsii.String("prefix"), }, }, // the properties below are optional AutoSubDomainCreationPatterns: []*string{ jsii.String("autoSubDomainCreationPatterns"), }, AutoSubDomainIamRole: jsii.String("autoSubDomainIamRole"), CertificateSettings: &CertificateSettingsProperty{ CertificateType: jsii.String("certificateType"), CustomCertificateArn: jsii.String("customCertificateArn"), }, EnableAutoSubDomain: jsii.Boolean(false), })
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amplify-domain.html
func NewCfnDomain ¶
func NewCfnDomain(scope constructs.Construct, id *string, props *CfnDomainProps) CfnDomain
type CfnDomainProps ¶
type CfnDomainProps struct { // The unique ID for an Amplify app. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amplify-domain.html#cfn-amplify-domain-appid // AppId *string `field:"required" json:"appId" yaml:"appId"` // The domain name for the domain association. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amplify-domain.html#cfn-amplify-domain-domainname // DomainName *string `field:"required" json:"domainName" yaml:"domainName"` // The setting for the subdomain. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amplify-domain.html#cfn-amplify-domain-subdomainsettings // SubDomainSettings interface{} `field:"required" json:"subDomainSettings" yaml:"subDomainSettings"` // Sets the branch patterns for automatic subdomain creation. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amplify-domain.html#cfn-amplify-domain-autosubdomaincreationpatterns // AutoSubDomainCreationPatterns *[]*string `field:"optional" json:"autoSubDomainCreationPatterns" yaml:"autoSubDomainCreationPatterns"` // The required AWS Identity and Access Management (IAMlong) service role for the Amazon Resource Name (ARN) for automatically creating subdomains. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amplify-domain.html#cfn-amplify-domain-autosubdomainiamrole // AutoSubDomainIamRole *string `field:"optional" json:"autoSubDomainIamRole" yaml:"autoSubDomainIamRole"` // The type of SSL/TLS certificate to use for your custom domain. // // If you don't specify a certificate type, Amplify uses the default certificate that it provisions and manages for you. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amplify-domain.html#cfn-amplify-domain-certificatesettings // CertificateSettings interface{} `field:"optional" json:"certificateSettings" yaml:"certificateSettings"` // Enables the automated creation of subdomains for branches. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amplify-domain.html#cfn-amplify-domain-enableautosubdomain // EnableAutoSubDomain interface{} `field:"optional" json:"enableAutoSubDomain" yaml:"enableAutoSubDomain"` }
Properties for defining a `CfnDomain`.
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" cfnDomainProps := &CfnDomainProps{ AppId: jsii.String("appId"), DomainName: jsii.String("domainName"), SubDomainSettings: []interface{}{ &SubDomainSettingProperty{ BranchName: jsii.String("branchName"), Prefix: jsii.String("prefix"), }, }, // the properties below are optional AutoSubDomainCreationPatterns: []*string{ jsii.String("autoSubDomainCreationPatterns"), }, AutoSubDomainIamRole: jsii.String("autoSubDomainIamRole"), CertificateSettings: &CertificateSettingsProperty{ CertificateType: jsii.String("certificateType"), CustomCertificateArn: jsii.String("customCertificateArn"), }, EnableAutoSubDomain: jsii.Boolean(false), }
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amplify-domain.html
type CfnDomain_CertificateProperty ¶ added in v2.132.0
type CfnDomain_CertificateProperty struct { // The Amazon resource name (ARN) for a custom certificate that you have already added to AWS Certificate Manager in your AWS account . // // This field is required only when the certificate type is `CUSTOM` . // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplify-domain-certificate.html#cfn-amplify-domain-certificate-certificatearn // CertificateArn *string `field:"optional" json:"certificateArn" yaml:"certificateArn"` // The type of SSL/TLS certificate that you want to use. // // Specify `AMPLIFY_MANAGED` to use the default certificate that Amplify provisions for you. // // Specify `CUSTOM` to use your own certificate that you have already added to AWS Certificate Manager in your AWS account . Make sure you request (or import) the certificate in the US East (N. Virginia) Region (us-east-1). For more information about using ACM, see [Importing certificates into AWS Certificate Manager](https://docs.aws.amazon.com/acm/latest/userguide/import-certificate.html) in the *ACM User guide* . // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplify-domain-certificate.html#cfn-amplify-domain-certificate-certificatetype // CertificateType *string `field:"optional" json:"certificateType" yaml:"certificateType"` // The DNS record for certificate verification. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplify-domain-certificate.html#cfn-amplify-domain-certificate-certificateverificationdnsrecord // CertificateVerificationDnsRecord *string `field:"optional" json:"certificateVerificationDnsRecord" yaml:"certificateVerificationDnsRecord"` }
Describes the SSL/TLS certificate for the domain association.
This can be your own custom certificate or the default certificate that Amplify provisions for you.
If you are updating your domain to use a different certificate, `Certificate` points to the new certificate that is being created instead of the current active certificate. Otherwise, `Certificate` points to the current active certificate.
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" certificateProperty := &CertificateProperty{ CertificateArn: jsii.String("certificateArn"), CertificateType: jsii.String("certificateType"), CertificateVerificationDnsRecord: jsii.String("certificateVerificationDnsRecord"), }
type CfnDomain_CertificateSettingsProperty ¶ added in v2.132.0
type CfnDomain_CertificateSettingsProperty struct { // The certificate type. // // Specify `AMPLIFY_MANAGED` to use the default certificate that Amplify provisions for you. // // Specify `CUSTOM` to use your own certificate that you have already added to AWS Certificate Manager in your AWS account . Make sure you request (or import) the certificate in the US East (N. Virginia) Region (us-east-1). For more information about using ACM, see [Importing certificates into AWS Certificate Manager](https://docs.aws.amazon.com/acm/latest/userguide/import-certificate.html) in the *ACM User guide* . // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplify-domain-certificatesettings.html#cfn-amplify-domain-certificatesettings-certificatetype // CertificateType *string `field:"optional" json:"certificateType" yaml:"certificateType"` // The Amazon resource name (ARN) for the custom certificate that you have already added to AWS Certificate Manager in your AWS account . // // This field is required only when the certificate type is `CUSTOM` . // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplify-domain-certificatesettings.html#cfn-amplify-domain-certificatesettings-customcertificatearn // CustomCertificateArn *string `field:"optional" json:"customCertificateArn" yaml:"customCertificateArn"` }
The type of SSL/TLS certificate to use for your custom domain.
If a certificate type isn't specified, Amplify uses the default `AMPLIFY_MANAGED` certificate.
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" certificateSettingsProperty := &CertificateSettingsProperty{ CertificateType: jsii.String("certificateType"), CustomCertificateArn: jsii.String("customCertificateArn"), }
type CfnDomain_SubDomainSettingProperty ¶
type CfnDomain_SubDomainSettingProperty struct { // The branch name setting for the subdomain. // // *Length Constraints:* Minimum length of 1. Maximum length of 255. // // *Pattern:* (?s).+ // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplify-domain-subdomainsetting.html#cfn-amplify-domain-subdomainsetting-branchname // BranchName *string `field:"required" json:"branchName" yaml:"branchName"` // The prefix setting for the subdomain. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplify-domain-subdomainsetting.html#cfn-amplify-domain-subdomainsetting-prefix // Prefix *string `field:"required" json:"prefix" yaml:"prefix"` }
The SubDomainSetting property type enables you to connect a subdomain (for example, example.exampledomain.com) to a specific branch.
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" subDomainSettingProperty := &SubDomainSettingProperty{ BranchName: jsii.String("branchName"), Prefix: jsii.String("prefix"), }
Source Files ¶
- CfnApp.go
- CfnAppProps.go
- CfnApp_AutoBranchCreationConfigProperty.go
- CfnApp_BasicAuthConfigProperty.go
- CfnApp_CacheConfigProperty.go
- CfnApp_CustomRuleProperty.go
- CfnApp_EnvironmentVariableProperty.go
- CfnApp__checks.go
- CfnBranch.go
- CfnBranchProps.go
- CfnBranch_BackendProperty.go
- CfnBranch_BasicAuthConfigProperty.go
- CfnBranch_EnvironmentVariableProperty.go
- CfnBranch__checks.go
- CfnDomain.go
- CfnDomainProps.go
- CfnDomain_CertificateProperty.go
- CfnDomain_CertificateSettingsProperty.go
- CfnDomain_SubDomainSettingProperty.go
- CfnDomain__checks.go
- main.go