/
awscdk_ResourceProps.go
40 lines (37 loc) · 1.65 KB
/
awscdk_ResourceProps.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// Version 2 of the AWS Cloud Development Kit library
package awscdk
// Construction properties for {@link Resource}.
//
// 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"
//
// resourceProps := &resourceProps{
// account: jsii.String("account"),
// environmentFromArn: jsii.String("environmentFromArn"),
// physicalName: jsii.String("physicalName"),
// region: jsii.String("region"),
// }
//
type ResourceProps struct {
// The AWS account ID this resource belongs to.
Account *string `field:"optional" json:"account" yaml:"account"`
// ARN to deduce region and account from.
//
// The ARN is parsed and the account and region are taken from the ARN.
// This should be used for imported resources.
//
// Cannot be supplied together with either `account` or `region`.
EnvironmentFromArn *string `field:"optional" json:"environmentFromArn" yaml:"environmentFromArn"`
// The value passed in by users to the physical name prop of the resource.
//
// - `undefined` implies that a physical name will be allocated by
// CloudFormation during deployment.
// - a concrete value implies a specific physical name
// - `PhysicalName.GENERATE_IF_NEEDED` is a marker that indicates that a physical will only be generated
// by the CDK if it is needed for cross-environment references. Otherwise, it will be allocated by CloudFormation.
PhysicalName *string `field:"optional" json:"physicalName" yaml:"physicalName"`
// The AWS region this resource belongs to.
Region *string `field:"optional" json:"region" yaml:"region"`
}