Documentation ¶
Index ¶
- func CfnAlarm_CFN_RESOURCE_TYPE_NAME() *string
- func CfnAlarm_IsCfnElement(x interface{}) *bool
- func CfnAlarm_IsCfnResource(construct constructs.IConstruct) *bool
- func CfnAlarm_IsConstruct(x interface{}) *bool
- func CfnBucket_CFN_RESOURCE_TYPE_NAME() *string
- func CfnBucket_IsCfnElement(x interface{}) *bool
- func CfnBucket_IsCfnResource(construct constructs.IConstruct) *bool
- func CfnBucket_IsConstruct(x interface{}) *bool
- func CfnDatabase_CFN_RESOURCE_TYPE_NAME() *string
- func CfnDatabase_IsCfnElement(x interface{}) *bool
- func CfnDatabase_IsCfnResource(construct constructs.IConstruct) *bool
- func CfnDatabase_IsConstruct(x interface{}) *bool
- func CfnDisk_CFN_RESOURCE_TYPE_NAME() *string
- func CfnDisk_IsCfnElement(x interface{}) *bool
- func CfnDisk_IsCfnResource(construct constructs.IConstruct) *bool
- func CfnDisk_IsConstruct(x interface{}) *bool
- func CfnInstance_CFN_RESOURCE_TYPE_NAME() *string
- func CfnInstance_IsCfnElement(x interface{}) *bool
- func CfnInstance_IsCfnResource(construct constructs.IConstruct) *bool
- func CfnInstance_IsConstruct(x interface{}) *bool
- func CfnLoadBalancerTlsCertificate_CFN_RESOURCE_TYPE_NAME() *string
- func CfnLoadBalancerTlsCertificate_IsCfnElement(x interface{}) *bool
- func CfnLoadBalancerTlsCertificate_IsCfnResource(construct constructs.IConstruct) *bool
- func CfnLoadBalancerTlsCertificate_IsConstruct(x interface{}) *bool
- func CfnLoadBalancer_CFN_RESOURCE_TYPE_NAME() *string
- func CfnLoadBalancer_IsCfnElement(x interface{}) *bool
- func CfnLoadBalancer_IsCfnResource(construct constructs.IConstruct) *bool
- func CfnLoadBalancer_IsConstruct(x interface{}) *bool
- func CfnStaticIp_CFN_RESOURCE_TYPE_NAME() *string
- func CfnStaticIp_IsCfnElement(x interface{}) *bool
- func CfnStaticIp_IsCfnResource(construct constructs.IConstruct) *bool
- func CfnStaticIp_IsConstruct(x interface{}) *bool
- func NewCfnAlarm_Override(c CfnAlarm, scope constructs.Construct, id *string, props *CfnAlarmProps)
- func NewCfnBucket_Override(c CfnBucket, scope constructs.Construct, id *string, props *CfnBucketProps)
- func NewCfnDatabase_Override(c CfnDatabase, scope constructs.Construct, id *string, props *CfnDatabaseProps)
- func NewCfnDisk_Override(c CfnDisk, scope constructs.Construct, id *string, props *CfnDiskProps)
- func NewCfnInstance_Override(c CfnInstance, scope constructs.Construct, id *string, props *CfnInstanceProps)
- func NewCfnLoadBalancerTlsCertificate_Override(c CfnLoadBalancerTlsCertificate, scope constructs.Construct, id *string, ...)
- func NewCfnLoadBalancer_Override(c CfnLoadBalancer, scope constructs.Construct, id *string, ...)
- func NewCfnStaticIp_Override(c CfnStaticIp, scope constructs.Construct, id *string, props *CfnStaticIpProps)
- type CfnAlarm
- type CfnAlarmProps
- type CfnBucket
- type CfnBucketProps
- type CfnBucket_AccessRulesProperty
- type CfnDatabase
- type CfnDatabaseProps
- type CfnDatabase_RelationalDatabaseParameterProperty
- type CfnDisk
- type CfnDiskProps
- type CfnDisk_AddOnProperty
- type CfnDisk_AutoSnapshotAddOnProperty
- type CfnInstance
- type CfnInstanceProps
- type CfnInstance_AddOnProperty
- type CfnInstance_AutoSnapshotAddOnProperty
- type CfnInstance_DiskProperty
- type CfnInstance_HardwareProperty
- type CfnInstance_LocationProperty
- type CfnInstance_MonthlyTransferProperty
- type CfnInstance_NetworkingProperty
- type CfnInstance_PortProperty
- type CfnInstance_StateProperty
- type CfnLoadBalancer
- type CfnLoadBalancerProps
- type CfnLoadBalancerTlsCertificate
- type CfnLoadBalancerTlsCertificateProps
- type CfnStaticIp
- type CfnStaticIpProps
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CfnAlarm_CFN_RESOURCE_TYPE_NAME ¶ added in v2.9.0
func CfnAlarm_CFN_RESOURCE_TYPE_NAME() *string
func CfnAlarm_IsCfnElement ¶ added in v2.9.0
func CfnAlarm_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 CfnAlarm_IsCfnResource ¶ added in v2.9.0
func CfnAlarm_IsCfnResource(construct constructs.IConstruct) *bool
Check whether the given construct is a CfnResource.
func CfnAlarm_IsConstruct ¶ added in v2.9.0
func CfnAlarm_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Returns: true if `x` is an object created from a class which extends `Construct`. Deprecated: use `x instanceof Construct` instead
func CfnBucket_CFN_RESOURCE_TYPE_NAME ¶ added in v2.9.0
func CfnBucket_CFN_RESOURCE_TYPE_NAME() *string
func CfnBucket_IsCfnElement ¶ added in v2.9.0
func CfnBucket_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 CfnBucket_IsCfnResource ¶ added in v2.9.0
func CfnBucket_IsCfnResource(construct constructs.IConstruct) *bool
Check whether the given construct is a CfnResource.
func CfnBucket_IsConstruct ¶ added in v2.9.0
func CfnBucket_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Returns: true if `x` is an object created from a class which extends `Construct`. Deprecated: use `x instanceof Construct` instead
func CfnDatabase_CFN_RESOURCE_TYPE_NAME ¶
func CfnDatabase_CFN_RESOURCE_TYPE_NAME() *string
func CfnDatabase_IsCfnElement ¶
func CfnDatabase_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 CfnDatabase_IsCfnResource ¶
func CfnDatabase_IsCfnResource(construct constructs.IConstruct) *bool
Check whether the given construct is a CfnResource.
func CfnDatabase_IsConstruct ¶
func CfnDatabase_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Returns: true if `x` is an object created from a class which extends `Construct`. Deprecated: use `x instanceof Construct` instead
func CfnDisk_CFN_RESOURCE_TYPE_NAME ¶
func CfnDisk_CFN_RESOURCE_TYPE_NAME() *string
func CfnDisk_IsCfnElement ¶
func CfnDisk_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 CfnDisk_IsCfnResource ¶
func CfnDisk_IsCfnResource(construct constructs.IConstruct) *bool
Check whether the given construct is a CfnResource.
func CfnDisk_IsConstruct ¶
func CfnDisk_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Returns: true if `x` is an object created from a class which extends `Construct`. Deprecated: use `x instanceof Construct` instead
func CfnInstance_CFN_RESOURCE_TYPE_NAME ¶
func CfnInstance_CFN_RESOURCE_TYPE_NAME() *string
func CfnInstance_IsCfnElement ¶
func CfnInstance_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 CfnInstance_IsCfnResource ¶
func CfnInstance_IsCfnResource(construct constructs.IConstruct) *bool
Check whether the given construct is a CfnResource.
func CfnInstance_IsConstruct ¶
func CfnInstance_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Returns: true if `x` is an object created from a class which extends `Construct`. Deprecated: use `x instanceof Construct` instead
func CfnLoadBalancerTlsCertificate_CFN_RESOURCE_TYPE_NAME ¶ added in v2.9.0
func CfnLoadBalancerTlsCertificate_CFN_RESOURCE_TYPE_NAME() *string
func CfnLoadBalancerTlsCertificate_IsCfnElement ¶ added in v2.9.0
func CfnLoadBalancerTlsCertificate_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 CfnLoadBalancerTlsCertificate_IsCfnResource ¶ added in v2.9.0
func CfnLoadBalancerTlsCertificate_IsCfnResource(construct constructs.IConstruct) *bool
Check whether the given construct is a CfnResource.
func CfnLoadBalancerTlsCertificate_IsConstruct ¶ added in v2.9.0
func CfnLoadBalancerTlsCertificate_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Returns: true if `x` is an object created from a class which extends `Construct`. Deprecated: use `x instanceof Construct` instead
func CfnLoadBalancer_CFN_RESOURCE_TYPE_NAME ¶ added in v2.9.0
func CfnLoadBalancer_CFN_RESOURCE_TYPE_NAME() *string
func CfnLoadBalancer_IsCfnElement ¶ added in v2.9.0
func CfnLoadBalancer_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 CfnLoadBalancer_IsCfnResource ¶ added in v2.9.0
func CfnLoadBalancer_IsCfnResource(construct constructs.IConstruct) *bool
Check whether the given construct is a CfnResource.
func CfnLoadBalancer_IsConstruct ¶ added in v2.9.0
func CfnLoadBalancer_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Returns: true if `x` is an object created from a class which extends `Construct`. Deprecated: use `x instanceof Construct` instead
func CfnStaticIp_CFN_RESOURCE_TYPE_NAME ¶
func CfnStaticIp_CFN_RESOURCE_TYPE_NAME() *string
func CfnStaticIp_IsCfnElement ¶
func CfnStaticIp_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 CfnStaticIp_IsCfnResource ¶
func CfnStaticIp_IsCfnResource(construct constructs.IConstruct) *bool
Check whether the given construct is a CfnResource.
func CfnStaticIp_IsConstruct ¶
func CfnStaticIp_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Returns: true if `x` is an object created from a class which extends `Construct`. Deprecated: use `x instanceof Construct` instead
func NewCfnAlarm_Override ¶ added in v2.9.0
func NewCfnAlarm_Override(c CfnAlarm, scope constructs.Construct, id *string, props *CfnAlarmProps)
Create a new `AWS::Lightsail::Alarm`.
func NewCfnBucket_Override ¶ added in v2.9.0
func NewCfnBucket_Override(c CfnBucket, scope constructs.Construct, id *string, props *CfnBucketProps)
Create a new `AWS::Lightsail::Bucket`.
func NewCfnDatabase_Override ¶
func NewCfnDatabase_Override(c CfnDatabase, scope constructs.Construct, id *string, props *CfnDatabaseProps)
Create a new `AWS::Lightsail::Database`.
func NewCfnDisk_Override ¶
func NewCfnDisk_Override(c CfnDisk, scope constructs.Construct, id *string, props *CfnDiskProps)
Create a new `AWS::Lightsail::Disk`.
func NewCfnInstance_Override ¶
func NewCfnInstance_Override(c CfnInstance, scope constructs.Construct, id *string, props *CfnInstanceProps)
Create a new `AWS::Lightsail::Instance`.
func NewCfnLoadBalancerTlsCertificate_Override ¶ added in v2.9.0
func NewCfnLoadBalancerTlsCertificate_Override(c CfnLoadBalancerTlsCertificate, scope constructs.Construct, id *string, props *CfnLoadBalancerTlsCertificateProps)
Create a new `AWS::Lightsail::LoadBalancerTlsCertificate`.
func NewCfnLoadBalancer_Override ¶ added in v2.9.0
func NewCfnLoadBalancer_Override(c CfnLoadBalancer, scope constructs.Construct, id *string, props *CfnLoadBalancerProps)
Create a new `AWS::Lightsail::LoadBalancer`.
func NewCfnStaticIp_Override ¶
func NewCfnStaticIp_Override(c CfnStaticIp, scope constructs.Construct, id *string, props *CfnStaticIpProps)
Create a new `AWS::Lightsail::StaticIp`.
Types ¶
type CfnAlarm ¶ added in v2.9.0
type CfnAlarm interface { awscdk.CfnResource awscdk.IInspectable AlarmName() *string SetAlarmName(val *string) AttrAlarmArn() *string AttrState() *string CfnOptions() awscdk.ICfnResourceOptions CfnProperties() *map[string]interface{} CfnResourceType() *string ComparisonOperator() *string SetComparisonOperator(val *string) ContactProtocols() *[]*string SetContactProtocols(val *[]*string) CreationStack() *[]*string DatapointsToAlarm() *float64 SetDatapointsToAlarm(val *float64) EvaluationPeriods() *float64 SetEvaluationPeriods(val *float64) LogicalId() *string MetricName() *string SetMetricName(val *string) MonitoredResourceName() *string SetMonitoredResourceName(val *string) Node() constructs.Node NotificationEnabled() interface{} SetNotificationEnabled(val interface{}) NotificationTriggers() *[]*string SetNotificationTriggers(val *[]*string) Ref() *string Stack() awscdk.Stack Threshold() *float64 SetThreshold(val *float64) TreatMissingData() *string SetTreatMissingData(val *string) UpdatedProperites() *map[string]interface{} AddDeletionOverride(path *string) AddDependsOn(target awscdk.CfnResource) AddMetadata(key *string, value interface{}) AddOverride(path *string, value interface{}) AddPropertyDeletionOverride(propertyPath *string) AddPropertyOverride(propertyPath *string, value interface{}) ApplyRemovalPolicy(policy awscdk.RemovalPolicy, options *awscdk.RemovalPolicyOptions) GetAtt(attributeName *string) awscdk.Reference GetMetadata(key *string) interface{} Inspect(inspector awscdk.TreeInspector) OverrideLogicalId(newLogicalId *string) RenderProperties(props *map[string]interface{}) *map[string]interface{} ShouldSynthesize() *bool ToString() *string ValidateProperties(_properties interface{}) }
A CloudFormation `AWS::Lightsail::Alarm`.
The `AWS::Lightsail::Alarm` resource specifies an alarm that can be used to monitor a single metric for one of your Lightsail resources.
TODO: EXAMPLE
func NewCfnAlarm ¶ added in v2.9.0
func NewCfnAlarm(scope constructs.Construct, id *string, props *CfnAlarmProps) CfnAlarm
Create a new `AWS::Lightsail::Alarm`.
type CfnAlarmProps ¶ added in v2.9.0
type CfnAlarmProps struct { // The name of the alarm. AlarmName *string `json:"alarmName" yaml:"alarmName"` // The arithmetic operation to use when comparing the specified statistic and threshold. ComparisonOperator *string `json:"comparisonOperator" yaml:"comparisonOperator"` // The number of periods over which data is compared to the specified threshold. EvaluationPeriods *float64 `json:"evaluationPeriods" yaml:"evaluationPeriods"` // The name of the metric associated with the alarm. MetricName *string `json:"metricName" yaml:"metricName"` // The name of the Lightsail resource that the alarm monitors. MonitoredResourceName *string `json:"monitoredResourceName" yaml:"monitoredResourceName"` // The value against which the specified statistic is compared. Threshold *float64 `json:"threshold" yaml:"threshold"` // The contact protocols for the alarm, such as `Email` , `SMS` (text messaging), or both. // // *Allowed Values* : `Email` | `SMS` ContactProtocols *[]*string `json:"contactProtocols" yaml:"contactProtocols"` // The number of data points within the evaluation periods that must be breaching to cause the alarm to go to the `ALARM` state. DatapointsToAlarm *float64 `json:"datapointsToAlarm" yaml:"datapointsToAlarm"` // A Boolean value indicating whether the alarm is enabled. NotificationEnabled interface{} `json:"notificationEnabled" yaml:"notificationEnabled"` // The alarm states that trigger a notification. // // > To specify the `OK` and `INSUFFICIENT_DATA` values, you must also specify `ContactProtocols` values. Otherwise, the `OK` and `INSUFFICIENT_DATA` values will not take effect and the stack will drift. // // *Allowed Values* : `OK` | `ALARM` | `INSUFFICIENT_DATA` NotificationTriggers *[]*string `json:"notificationTriggers" yaml:"notificationTriggers"` // Specifies how the alarm handles missing data points. // // An alarm can treat missing data in the following ways: // // - `breaching` - Assumes the missing data is not within the threshold. Missing data counts towards the number of times that the metric is not within the threshold. // - `notBreaching` - Assumes the missing data is within the threshold. Missing data does not count towards the number of times that the metric is not within the threshold. // - `ignore` - Ignores the missing data. Maintains the current alarm state. // - `missing` - Missing data is treated as missing. TreatMissingData *string `json:"treatMissingData" yaml:"treatMissingData"` }
Properties for defining a `CfnAlarm`.
TODO: EXAMPLE
type CfnBucket ¶ added in v2.9.0
type CfnBucket interface { awscdk.CfnResource awscdk.IInspectable AccessRules() interface{} SetAccessRules(val interface{}) AttrAbleToUpdateBundle() awscdk.IResolvable AttrBucketArn() *string AttrUrl() *string BucketName() *string SetBucketName(val *string) BundleId() *string SetBundleId(val *string) CfnOptions() awscdk.ICfnResourceOptions CfnProperties() *map[string]interface{} CfnResourceType() *string CreationStack() *[]*string LogicalId() *string Node() constructs.Node ObjectVersioning() interface{} SetObjectVersioning(val interface{}) ReadOnlyAccessAccounts() *[]*string SetReadOnlyAccessAccounts(val *[]*string) Ref() *string ResourcesReceivingAccess() *[]*string SetResourcesReceivingAccess(val *[]*string) Stack() awscdk.Stack Tags() awscdk.TagManager UpdatedProperites() *map[string]interface{} AddDeletionOverride(path *string) AddDependsOn(target awscdk.CfnResource) AddMetadata(key *string, value interface{}) AddOverride(path *string, value interface{}) AddPropertyDeletionOverride(propertyPath *string) AddPropertyOverride(propertyPath *string, value interface{}) ApplyRemovalPolicy(policy awscdk.RemovalPolicy, options *awscdk.RemovalPolicyOptions) GetAtt(attributeName *string) awscdk.Reference GetMetadata(key *string) interface{} Inspect(inspector awscdk.TreeInspector) OverrideLogicalId(newLogicalId *string) RenderProperties(props *map[string]interface{}) *map[string]interface{} ShouldSynthesize() *bool ToString() *string ValidateProperties(_properties interface{}) }
A CloudFormation `AWS::Lightsail::Bucket`.
The `AWS::Lightsail::Bucket` resource specifies a bucket.
TODO: EXAMPLE
func NewCfnBucket ¶ added in v2.9.0
func NewCfnBucket(scope constructs.Construct, id *string, props *CfnBucketProps) CfnBucket
Create a new `AWS::Lightsail::Bucket`.
type CfnBucketProps ¶ added in v2.9.0
type CfnBucketProps struct { // The name of the bucket. BucketName *string `json:"bucketName" yaml:"bucketName"` // The bundle ID for the bucket (for example, `small_1_0` ). // // A bucket bundle specifies the monthly cost, storage space, and data transfer quota for a bucket. BundleId *string `json:"bundleId" yaml:"bundleId"` // An object that describes the access rules for the bucket. AccessRules interface{} `json:"accessRules" yaml:"accessRules"` // Indicates whether object versioning is enabled for the bucket. // // The following options can be configured: // // - `Enabled` - Object versioning is enabled. // - `Suspended` - Object versioning was previously enabled but is currently suspended. Existing object versions are retained. // - `NeverEnabled` - Object versioning has never been enabled. ObjectVersioning interface{} `json:"objectVersioning" yaml:"objectVersioning"` // An array of AWS account IDs that have read-only access to the bucket. ReadOnlyAccessAccounts *[]*string `json:"readOnlyAccessAccounts" yaml:"readOnlyAccessAccounts"` // An array of Lightsail instances that have access to the bucket. ResourcesReceivingAccess *[]*string `json:"resourcesReceivingAccess" yaml:"resourcesReceivingAccess"` // An array of key-value pairs to apply to this resource. // // For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) in the *AWS CloudFormation User Guide* . // // > The `Value` of `Tags` is optional for Lightsail resources. Tags *[]*awscdk.CfnTag `json:"tags" yaml:"tags"` }
Properties for defining a `CfnBucket`.
TODO: EXAMPLE
type CfnBucket_AccessRulesProperty ¶ added in v2.9.0
type CfnBucket_AccessRulesProperty struct { // A Boolean value indicating whether the access control list (ACL) permissions that are applied to individual objects override the `GetObject` option that is currently specified. // // When this is true, you can use the [PutObjectAcl](https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutObjectAcl.html) Amazon S3 API operation to set individual objects to public (read-only) or private, using either the `public-read` ACL or the `private` ACL. AllowPublicOverrides interface{} `json:"allowPublicOverrides" yaml:"allowPublicOverrides"` // Specifies the anonymous access to all objects in a bucket. // // The following options can be specified: // // - `public` - Sets all objects in the bucket to public (read-only), making them readable by everyone on the internet. // // If the `GetObject` value is set to `public` , then all objects in the bucket default to public regardless of the `allowPublicOverrides` value. // - `private` - Sets all objects in the bucket to private, making them readable only by you and anyone that you grant access to. // // If the `GetObject` value is set to `private` , and the `allowPublicOverrides` value is set to `true` , then all objects in the bucket default to private unless they are configured with a `public-read` ACL. Individual objects with a `public-read` ACL are readable by everyone on the internet. ObjectAccess *string `json:"objectAccess" yaml:"objectAccess"` }
`AccessRules` is a property of the [AWS::Lightsail::Bucket](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lightsail-bucket.html) resource. It describes access rules for a bucket.
TODO: EXAMPLE
type CfnDatabase ¶
type CfnDatabase interface { awscdk.CfnResource awscdk.IInspectable AttrDatabaseArn() *string AvailabilityZone() *string SetAvailabilityZone(val *string) BackupRetention() interface{} SetBackupRetention(val interface{}) CaCertificateIdentifier() *string SetCaCertificateIdentifier(val *string) CfnOptions() awscdk.ICfnResourceOptions CfnProperties() *map[string]interface{} CfnResourceType() *string CreationStack() *[]*string LogicalId() *string MasterDatabaseName() *string SetMasterDatabaseName(val *string) MasterUsername() *string SetMasterUsername(val *string) MasterUserPassword() *string SetMasterUserPassword(val *string) Node() constructs.Node PreferredBackupWindow() *string SetPreferredBackupWindow(val *string) PreferredMaintenanceWindow() *string SetPreferredMaintenanceWindow(val *string) PubliclyAccessible() interface{} SetPubliclyAccessible(val interface{}) Ref() *string RelationalDatabaseBlueprintId() *string SetRelationalDatabaseBlueprintId(val *string) RelationalDatabaseBundleId() *string SetRelationalDatabaseBundleId(val *string) RelationalDatabaseName() *string SetRelationalDatabaseName(val *string) RelationalDatabaseParameters() interface{} SetRelationalDatabaseParameters(val interface{}) RotateMasterUserPassword() interface{} SetRotateMasterUserPassword(val interface{}) Stack() awscdk.Stack Tags() awscdk.TagManager UpdatedProperites() *map[string]interface{} AddDeletionOverride(path *string) AddDependsOn(target awscdk.CfnResource) AddMetadata(key *string, value interface{}) AddOverride(path *string, value interface{}) AddPropertyDeletionOverride(propertyPath *string) AddPropertyOverride(propertyPath *string, value interface{}) ApplyRemovalPolicy(policy awscdk.RemovalPolicy, options *awscdk.RemovalPolicyOptions) GetAtt(attributeName *string) awscdk.Reference GetMetadata(key *string) interface{} Inspect(inspector awscdk.TreeInspector) OverrideLogicalId(newLogicalId *string) RenderProperties(props *map[string]interface{}) *map[string]interface{} ShouldSynthesize() *bool ToString() *string ValidateProperties(_properties interface{}) }
A CloudFormation `AWS::Lightsail::Database`.
The `AWS::Lightsail::Database` resource specifies an Amazon Lightsail database.
TODO: EXAMPLE
func NewCfnDatabase ¶
func NewCfnDatabase(scope constructs.Construct, id *string, props *CfnDatabaseProps) CfnDatabase
Create a new `AWS::Lightsail::Database`.
type CfnDatabaseProps ¶
type CfnDatabaseProps struct { // The meaning of this parameter differs according to the database engine you use. // // *MySQL* // // The name of the database to create when the Lightsail database resource is created. If this parameter isn't specified, no database is created in the database resource. // // Constraints: // // - Must contain 1-64 letters or numbers. // - Must begin with a letter. Subsequent characters can be letters, underscores, or numbers (0-9). // - Can't be a word reserved by the specified database engine. // // For more information about reserved words in MySQL, see the Keywords and Reserved Words articles for [MySQL 5.6](https://docs.aws.amazon.com/https://dev.mysql.com/doc/refman/5.6/en/keywords.html) , [MySQL 5.7](https://docs.aws.amazon.com/https://dev.mysql.com/doc/refman/5.7/en/keywords.html) , and [MySQL 8.0](https://docs.aws.amazon.com/https://dev.mysql.com/doc/refman/8.0/en/keywords.html) . // // *PostgreSQL* // // The name of the database to create when the Lightsail database resource is created. If this parameter isn't specified, a database named `postgres` is created in the database resource. // // Constraints: // // - Must contain 1-63 letters or numbers. // - Must begin with a letter. Subsequent characters can be letters, underscores, or numbers (0-9). // - Can't be a word reserved by the specified database engine. // // For more information about reserved words in PostgreSQL, see the SQL Key Words articles for [PostgreSQL 9.6](https://docs.aws.amazon.com/https://www.postgresql.org/docs/9.6/sql-keywords-appendix.html) , [PostgreSQL 10](https://docs.aws.amazon.com/https://www.postgresql.org/docs/10/sql-keywords-appendix.html) , [PostgreSQL 11](https://docs.aws.amazon.com/https://www.postgresql.org/docs/11/sql-keywords-appendix.html) , and [PostgreSQL 12](https://docs.aws.amazon.com/https://www.postgresql.org/docs/12/sql-keywords-appendix.html) . MasterDatabaseName *string `json:"masterDatabaseName" yaml:"masterDatabaseName"` // The name for the primary user. // // *MySQL* // // Constraints: // // - Required for MySQL. // - Must be 1-16 letters or numbers. Can contain underscores. // - First character must be a letter. // - Can't be a reserved word for the chosen database engine. // // For more information about reserved words in MySQL 5.6 or 5.7, see the Keywords and Reserved Words articles for [MySQL 5.6](https://docs.aws.amazon.com/https://dev.mysql.com/doc/refman/5.6/en/keywords.html) , [MySQL 5.7](https://docs.aws.amazon.com/https://dev.mysql.com/doc/refman/5.7/en/keywords.html) , or [MySQL 8.0](https://docs.aws.amazon.com/https://dev.mysql.com/doc/refman/8.0/en/keywords.html) . // // *PostgreSQL* // // Constraints: // // - Required for PostgreSQL. // - Must be 1-63 letters or numbers. Can contain underscores. // - First character must be a letter. // - Can't be a reserved word for the chosen database engine. // // For more information about reserved words in MySQL 5.6 or 5.7, see the Keywords and Reserved Words articles for [PostgreSQL 9.6](https://docs.aws.amazon.com/https://www.postgresql.org/docs/9.6/sql-keywords-appendix.html) , [PostgreSQL 10](https://docs.aws.amazon.com/https://www.postgresql.org/docs/10/sql-keywords-appendix.html) , [PostgreSQL 11](https://docs.aws.amazon.com/https://www.postgresql.org/docs/11/sql-keywords-appendix.html) , and [PostgreSQL 12](https://docs.aws.amazon.com/https://www.postgresql.org/docs/12/sql-keywords-appendix.html) . MasterUsername *string `json:"masterUsername" yaml:"masterUsername"` // The blueprint ID for the database (for example, `mysql_8_0` ). RelationalDatabaseBlueprintId *string `json:"relationalDatabaseBlueprintId" yaml:"relationalDatabaseBlueprintId"` // The bundle ID for the database (for example, `medium_1_0` ). RelationalDatabaseBundleId *string `json:"relationalDatabaseBundleId" yaml:"relationalDatabaseBundleId"` // The name of the instance. RelationalDatabaseName *string `json:"relationalDatabaseName" yaml:"relationalDatabaseName"` // The Availability Zone for the database. AvailabilityZone *string `json:"availabilityZone" yaml:"availabilityZone"` // A Boolean value indicating whether automated backup retention is enabled for the database. BackupRetention interface{} `json:"backupRetention" yaml:"backupRetention"` // The certificate associated with the database. CaCertificateIdentifier *string `json:"caCertificateIdentifier" yaml:"caCertificateIdentifier"` // The password for the primary user of the database. // // The password can include any printable ASCII character except the following: /, ", or @. It cannot contain spaces. // // > The `MasterUserPassword` and `RotateMasterUserPassword` parameters cannot be used together in the same template. // // *MySQL* // // Constraints: Must contain 8-41 characters. // // *PostgreSQL* // // Constraints: Must contain 8-128 characters. MasterUserPassword *string `json:"masterUserPassword" yaml:"masterUserPassword"` // The daily time range during which automated backups are created for the database (for example, `16:00-16:30` ). PreferredBackupWindow *string `json:"preferredBackupWindow" yaml:"preferredBackupWindow"` // The weekly time range during which system maintenance can occur for the database, formatted as follows: `ddd:hh24:mi-ddd:hh24:mi` . // // For example, `Tue:17:00-Tue:17:30` . PreferredMaintenanceWindow *string `json:"preferredMaintenanceWindow" yaml:"preferredMaintenanceWindow"` // A Boolean value indicating whether the database is accessible to anyone on the internet. PubliclyAccessible interface{} `json:"publiclyAccessible" yaml:"publiclyAccessible"` // An array of parameters for the database. RelationalDatabaseParameters interface{} `json:"relationalDatabaseParameters" yaml:"relationalDatabaseParameters"` // A Boolean value indicating whether to change the primary user password to a new, strong password generated by Lightsail . // // > The `RotateMasterUserPassword` and `MasterUserPassword` parameters cannot be used together in the same template. RotateMasterUserPassword interface{} `json:"rotateMasterUserPassword" yaml:"rotateMasterUserPassword"` // An array of key-value pairs to apply to this resource. // // For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) in the *AWS CloudFormation User Guide* . // // > The `Value` of `Tags` is optional for Lightsail resources. Tags *[]*awscdk.CfnTag `json:"tags" yaml:"tags"` }
Properties for defining a `CfnDatabase`.
TODO: EXAMPLE
type CfnDatabase_RelationalDatabaseParameterProperty ¶
type CfnDatabase_RelationalDatabaseParameterProperty struct { // The valid range of values for the parameter. AllowedValues *string `json:"allowedValues" yaml:"allowedValues"` // Indicates when parameter updates are applied. // // Can be `immediate` or `pending-reboot` . ApplyMethod *string `json:"applyMethod" yaml:"applyMethod"` // Specifies the engine-specific parameter type. ApplyType *string `json:"applyType" yaml:"applyType"` // The valid data type of the parameter. DataType *string `json:"dataType" yaml:"dataType"` // A description of the parameter. Description *string `json:"description" yaml:"description"` // A Boolean value indicating whether the parameter can be modified. IsModifiable interface{} `json:"isModifiable" yaml:"isModifiable"` // The name of the parameter. ParameterName *string `json:"parameterName" yaml:"parameterName"` // The value for the parameter. ParameterValue *string `json:"parameterValue" yaml:"parameterValue"` }
`RelationalDatabaseParameter` is a property of the [AWS::Lightsail::Database](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lightsail-database.html) resource. It describes parameters for the database.
TODO: EXAMPLE
type CfnDisk ¶
type CfnDisk interface { awscdk.CfnResource awscdk.IInspectable AddOns() interface{} SetAddOns(val interface{}) AttrAttachedTo() *string AttrAttachmentState() *string AttrDiskArn() *string AttrIops() *float64 AttrIsAttached() awscdk.IResolvable AttrPath() *string AttrResourceType() *string AttrState() *string AttrSupportCode() *string AvailabilityZone() *string SetAvailabilityZone(val *string) CfnOptions() awscdk.ICfnResourceOptions CfnProperties() *map[string]interface{} CfnResourceType() *string CreationStack() *[]*string DiskName() *string SetDiskName(val *string) LogicalId() *string Node() constructs.Node Ref() *string SizeInGb() *float64 SetSizeInGb(val *float64) Stack() awscdk.Stack Tags() awscdk.TagManager UpdatedProperites() *map[string]interface{} AddDeletionOverride(path *string) AddDependsOn(target awscdk.CfnResource) AddMetadata(key *string, value interface{}) AddOverride(path *string, value interface{}) AddPropertyDeletionOverride(propertyPath *string) AddPropertyOverride(propertyPath *string, value interface{}) ApplyRemovalPolicy(policy awscdk.RemovalPolicy, options *awscdk.RemovalPolicyOptions) GetAtt(attributeName *string) awscdk.Reference GetMetadata(key *string) interface{} Inspect(inspector awscdk.TreeInspector) OverrideLogicalId(newLogicalId *string) RenderProperties(props *map[string]interface{}) *map[string]interface{} ShouldSynthesize() *bool ToString() *string ValidateProperties(_properties interface{}) }
A CloudFormation `AWS::Lightsail::Disk`.
The `AWS::Lightsail::Disk` resource specifies a disk that can be attached to an Amazon Lightsail instance that is in the same AWS Region and Availability Zone.
TODO: EXAMPLE
func NewCfnDisk ¶
func NewCfnDisk(scope constructs.Construct, id *string, props *CfnDiskProps) CfnDisk
Create a new `AWS::Lightsail::Disk`.
type CfnDiskProps ¶
type CfnDiskProps struct { // The name of the disk. DiskName *string `json:"diskName" yaml:"diskName"` // The size of the disk in GB. SizeInGb *float64 `json:"sizeInGb" yaml:"sizeInGb"` // An array of add-ons for the disk. // // > If the disk has an add-on enabled when performing a delete disk request, the add-on is automatically disabled before the disk is deleted. AddOns interface{} `json:"addOns" yaml:"addOns"` // The AWS Region and Availability Zone location for the disk (for example, `us-east-1a` ). AvailabilityZone *string `json:"availabilityZone" yaml:"availabilityZone"` // An array of key-value pairs to apply to this resource. // // For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) in the *AWS CloudFormation User Guide* . // // > The `Value` of `Tags` is optional for Lightsail resources. Tags *[]*awscdk.CfnTag `json:"tags" yaml:"tags"` }
Properties for defining a `CfnDisk`.
TODO: EXAMPLE
type CfnDisk_AddOnProperty ¶
type CfnDisk_AddOnProperty struct { // The add-on type (for example, `AutoSnapshot` ). // // > `AutoSnapshot` is the only add-on that can be enabled for a disk. AddOnType *string `json:"addOnType" yaml:"addOnType"` // The parameters for the automatic snapshot add-on, such as the daily time when an automatic snapshot will be created. AutoSnapshotAddOnRequest interface{} `json:"autoSnapshotAddOnRequest" yaml:"autoSnapshotAddOnRequest"` // The status of the add-on. // // Valid Values: `Enabled` | `Disabled` Status *string `json:"status" yaml:"status"` }
`AddOn` is a property of the [AWS::Lightsail::Disk](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lightsail-disk.html) resource. It describes the add-ons for a disk.
TODO: EXAMPLE
type CfnDisk_AutoSnapshotAddOnProperty ¶
type CfnDisk_AutoSnapshotAddOnProperty struct { // The daily time when an automatic snapshot will be created. // // Constraints: // // - Must be in `HH:00` format, and in an hourly increment. // - Specified in Coordinated Universal Time (UTC). // - The snapshot will be automatically created between the time specified and up to 45 minutes after. SnapshotTimeOfDay *string `json:"snapshotTimeOfDay" yaml:"snapshotTimeOfDay"` }
`AutoSnapshotAddOn` is a property of the [AddOn](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lightsail-disk-addon.html) property. It describes the automatic snapshot add-on for a disk.
TODO: EXAMPLE
type CfnInstance ¶
type CfnInstance interface { awscdk.CfnResource awscdk.IInspectable AddOns() interface{} SetAddOns(val interface{}) AttrHardwareCpuCount() *float64 AttrHardwareRamSizeInGb() *float64 AttrInstanceArn() *string AttrIsStaticIp() awscdk.IResolvable AttrLocationAvailabilityZone() *string AttrLocationRegionName() *string AttrNetworkingMonthlyTransferGbPerMonthAllocated() *string AttrPrivateIpAddress() *string AttrPublicIpAddress() *string AttrResourceType() *string AttrSshKeyName() *string AttrStateCode() *float64 AttrStateName() *string AttrSupportCode() *string AttrUserName() *string AvailabilityZone() *string SetAvailabilityZone(val *string) BlueprintId() *string SetBlueprintId(val *string) BundleId() *string SetBundleId(val *string) CfnOptions() awscdk.ICfnResourceOptions CfnProperties() *map[string]interface{} CfnResourceType() *string CreationStack() *[]*string Hardware() interface{} SetHardware(val interface{}) InstanceName() *string SetInstanceName(val *string) KeyPairName() *string SetKeyPairName(val *string) LogicalId() *string Networking() interface{} SetNetworking(val interface{}) Node() constructs.Node Ref() *string Stack() awscdk.Stack Tags() awscdk.TagManager UpdatedProperites() *map[string]interface{} UserData() *string SetUserData(val *string) AddDeletionOverride(path *string) AddDependsOn(target awscdk.CfnResource) AddMetadata(key *string, value interface{}) AddOverride(path *string, value interface{}) AddPropertyDeletionOverride(propertyPath *string) AddPropertyOverride(propertyPath *string, value interface{}) ApplyRemovalPolicy(policy awscdk.RemovalPolicy, options *awscdk.RemovalPolicyOptions) GetAtt(attributeName *string) awscdk.Reference GetMetadata(key *string) interface{} Inspect(inspector awscdk.TreeInspector) OverrideLogicalId(newLogicalId *string) RenderProperties(props *map[string]interface{}) *map[string]interface{} ShouldSynthesize() *bool ToString() *string ValidateProperties(_properties interface{}) }
A CloudFormation `AWS::Lightsail::Instance`.
The `AWS::Lightsail::Instance` resource specifies an Amazon Lightsail instance.
TODO: EXAMPLE
func NewCfnInstance ¶
func NewCfnInstance(scope constructs.Construct, id *string, props *CfnInstanceProps) CfnInstance
Create a new `AWS::Lightsail::Instance`.
type CfnInstanceProps ¶
type CfnInstanceProps struct { // The blueprint ID for the instance (for example, `os_amlinux_2016_03` ). BlueprintId *string `json:"blueprintId" yaml:"blueprintId"` // The bundle ID for the instance (for example, `micro_1_0` ). BundleId *string `json:"bundleId" yaml:"bundleId"` // The name of the instance. InstanceName *string `json:"instanceName" yaml:"instanceName"` // An array of add-ons for the instance. // // > If the instance has an add-on enabled when performing a delete instance request, the add-on is automatically disabled before the instance is deleted. AddOns interface{} `json:"addOns" yaml:"addOns"` // The Availability Zone for the instance. AvailabilityZone *string `json:"availabilityZone" yaml:"availabilityZone"` // The hardware properties for the instance, such as the vCPU count, attached disks, and amount of RAM. // // > The instance restarts when performing an attach disk or detach disk request. This resets the public IP address of your instance if a static IP isn't attached to it. Hardware interface{} `json:"hardware" yaml:"hardware"` // The name of the key pair to use for the instance. // // If no key pair name is specified, the Regional Lightsail default key pair is used. KeyPairName *string `json:"keyPairName" yaml:"keyPairName"` // The public ports and the monthly amount of data transfer allocated for the instance. Networking interface{} `json:"networking" yaml:"networking"` // An array of key-value pairs to apply to this resource. // // For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) in the *AWS CloudFormation User Guide* . // // > The `Value` of `Tags` is optional for Lightsail resources. Tags *[]*awscdk.CfnTag `json:"tags" yaml:"tags"` // The optional launch script for the instance. // // Specify a launch script to configure an instance with additional user data. For example, you might want to specify `apt-get -y update` as a launch script. // // > Depending on the blueprint of your instance, the command to get software on your instance varies. Amazon Linux and CentOS use `yum` , Debian and Ubuntu use `apt-get` , and FreeBSD uses `pkg` . UserData *string `json:"userData" yaml:"userData"` }
Properties for defining a `CfnInstance`.
TODO: EXAMPLE
type CfnInstance_AddOnProperty ¶
type CfnInstance_AddOnProperty struct { // The add-on type (for example, `AutoSnapshot` ). // // > `AutoSnapshot` is the only add-on that can be enabled for an instance. AddOnType *string `json:"addOnType" yaml:"addOnType"` // The parameters for the automatic snapshot add-on, such as the daily time when an automatic snapshot will be created. AutoSnapshotAddOnRequest interface{} `json:"autoSnapshotAddOnRequest" yaml:"autoSnapshotAddOnRequest"` // The status of the add-on. // // Valid Values: `Enabled` | `Disabled` Status *string `json:"status" yaml:"status"` }
`AddOn` is a property of the [AWS::Lightsail::Instance](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lightsail-instance.html) resource. It describes the add-ons for an instance.
TODO: EXAMPLE
type CfnInstance_AutoSnapshotAddOnProperty ¶
type CfnInstance_AutoSnapshotAddOnProperty struct { // The daily time when an automatic snapshot will be created. // // Constraints: // // - Must be in `HH:00` format, and in an hourly increment. // - Specified in Coordinated Universal Time (UTC). // - The snapshot will be automatically created between the time specified and up to 45 minutes after. SnapshotTimeOfDay *string `json:"snapshotTimeOfDay" yaml:"snapshotTimeOfDay"` }
`AutoSnapshotAddOn` is a property of the [AddOn](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lightsail-instance-addon.html) property. It describes the automatic snapshot add-on for an instance.
TODO: EXAMPLE
type CfnInstance_DiskProperty ¶
type CfnInstance_DiskProperty struct { // The unique name of the disk. DiskName *string `json:"diskName" yaml:"diskName"` // The disk path. Path *string `json:"path" yaml:"path"` // The resources to which the disk is attached. AttachedTo *string `json:"attachedTo" yaml:"attachedTo"` // (Deprecated) The attachment state of the disk. // // > In releases prior to November 14, 2017, this parameter returned `attached` for system disks in the API response. It is now deprecated, but still included in the response. Use `isAttached` instead. AttachmentState *string `json:"attachmentState" yaml:"attachmentState"` // The input/output operations per second (IOPS) of the disk. Iops *float64 `json:"iops" yaml:"iops"` // A Boolean value indicating whether this disk is a system disk (has an operating system loaded on it). IsSystemDisk interface{} `json:"isSystemDisk" yaml:"isSystemDisk"` // The size of the disk in GB. SizeInGb *string `json:"sizeInGb" yaml:"sizeInGb"` }
`Disk` is a property of the [Hardware](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lightsail-instance-hardware.html) property. It describes a disk attached to an instance.
TODO: EXAMPLE
type CfnInstance_HardwareProperty ¶
type CfnInstance_HardwareProperty struct { // The number of vCPUs the instance has. // // > The `CpuCount` property is read-only and should not be specified in a create instance or update instance request. CpuCount *float64 `json:"cpuCount" yaml:"cpuCount"` // The disks attached to the instance. // // The instance restarts when performing an attach disk or detach disk request. This resets the public IP address of your instance if a static IP isn't attached to it. Disks interface{} `json:"disks" yaml:"disks"` // The amount of RAM in GB on the instance (for example, `1.0` ). // // > The `RamSizeInGb` property is read-only and should not be specified in a create instance or update instance request. RamSizeInGb *float64 `json:"ramSizeInGb" yaml:"ramSizeInGb"` }
`Hardware` is a property of the [AWS::Lightsail::Instance](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lightsail-instance.html) resource. It describes the hardware properties for the instance, such as the vCPU count, attached disks, and amount of RAM.
TODO: EXAMPLE
type CfnInstance_LocationProperty ¶
type CfnInstance_LocationProperty struct { // The Availability Zone for the instance. AvailabilityZone *string `json:"availabilityZone" yaml:"availabilityZone"` // The name of the AWS Region for the instance. RegionName *string `json:"regionName" yaml:"regionName"` }
`Location` is a property of the [AWS::Lightsail::Instance](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lightsail-instance.html) resource. It describes the location for an instance.
TODO: EXAMPLE
type CfnInstance_MonthlyTransferProperty ¶
type CfnInstance_MonthlyTransferProperty struct { // The amount of allocated monthly data transfer (in GB) for an instance. GbPerMonthAllocated *string `json:"gbPerMonthAllocated" yaml:"gbPerMonthAllocated"` }
`MonthlyTransfer` is a property of the [Networking](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lightsail-instance-networking.html) property. It describes the amount of allocated monthly data transfer (in GB) for an instance.
TODO: EXAMPLE
type CfnInstance_NetworkingProperty ¶
type CfnInstance_NetworkingProperty struct { // An array of ports to open on the instance. Ports interface{} `json:"ports" yaml:"ports"` // The monthly amount of data transfer, in GB, allocated for the instance. MonthlyTransfer *float64 `json:"monthlyTransfer" yaml:"monthlyTransfer"` }
`Networking` is a property of the [AWS::Lightsail::Instance](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lightsail-instance.html) resource. It describes the public ports and the monthly amount of data transfer allocated for the instance.
TODO: EXAMPLE
type CfnInstance_PortProperty ¶
type CfnInstance_PortProperty struct { // The access direction ( `inbound` or `outbound` ). // // > Lightsail currently supports only `inbound` access direction. AccessDirection *string `json:"accessDirection" yaml:"accessDirection"` // The location from which access is allowed. // // For example, `Anywhere (0.0.0.0/0)` , or `Custom` if a specific IP address or range of IP addresses is allowed. AccessFrom *string `json:"accessFrom" yaml:"accessFrom"` // The type of access ( `Public` or `Private` ). AccessType *string `json:"accessType" yaml:"accessType"` // An alias that defines access for a preconfigured range of IP addresses. // // The only alias currently supported is `lightsail-connect` , which allows IP addresses of the browser-based RDP/SSH client in the Lightsail console to connect to your instance. CidrListAliases *[]*string `json:"cidrListAliases" yaml:"cidrListAliases"` // The IPv4 address, or range of IPv4 addresses (in CIDR notation) that are allowed to connect to an instance through the ports, and the protocol. // // > The `ipv6Cidrs` parameter lists the IPv6 addresses that are allowed to connect to an instance. // // Examples: // // - To allow the IP address `192.0.2.44` , specify `192.0.2.44` or `192.0.2.44/32` . // - To allow the IP addresses `192.0.2.0` to `192.0.2.255` , specify `192.0.2.0/24` . Cidrs *[]*string `json:"cidrs" yaml:"cidrs"` // The common name of the port information. CommonName *string `json:"commonName" yaml:"commonName"` // The first port in a range of open ports on an instance. // // Allowed ports: // // - TCP and UDP - `0` to `65535` // - ICMP - The ICMP type for IPv4 addresses. For example, specify `8` as the `fromPort` (ICMP type), and `-1` as the `toPort` (ICMP code), to enable ICMP Ping. // - ICMPv6 - The ICMP type for IPv6 addresses. For example, specify `128` as the `fromPort` (ICMPv6 type), and `0` as `toPort` (ICMPv6 code). FromPort *float64 `json:"fromPort" yaml:"fromPort"` // The IPv6 address, or range of IPv6 addresses (in CIDR notation) that are allowed to connect to an instance through the ports, and the protocol. // // Only devices with an IPv6 address can connect to an instance through IPv6; otherwise, IPv4 should be used. // // > The `cidrs` parameter lists the IPv4 addresses that are allowed to connect to an instance. Ipv6Cidrs *[]*string `json:"ipv6Cidrs" yaml:"ipv6Cidrs"` // The IP protocol name. // // The name can be one of the following: // // - `tcp` - Transmission Control Protocol (TCP) provides reliable, ordered, and error-checked delivery of streamed data between applications running on hosts communicating by an IP network. If you have an application that doesn't require reliable data stream service, use UDP instead. // - `all` - All transport layer protocol types. // - `udp` - With User Datagram Protocol (UDP), computer applications can send messages (or datagrams) to other hosts on an Internet Protocol (IP) network. Prior communications are not required to set up transmission channels or data paths. Applications that don't require reliable data stream service can use UDP, which provides a connectionless datagram service that emphasizes reduced latency over reliability. If you do require reliable data stream service, use TCP instead. // - `icmp` - Internet Control Message Protocol (ICMP) is used to send error messages and operational information indicating success or failure when communicating with an instance. For example, an error is indicated when an instance could not be reached. When you specify `icmp` as the `protocol` , you must specify the ICMP type using the `fromPort` parameter, and ICMP code using the `toPort` parameter. Protocol *string `json:"protocol" yaml:"protocol"` // The last port in a range of open ports on an instance. // // Allowed ports: // // - TCP and UDP - `0` to `65535` // - ICMP - The ICMP code for IPv4 addresses. For example, specify `8` as the `fromPort` (ICMP type), and `-1` as the `toPort` (ICMP code), to enable ICMP Ping. // - ICMPv6 - The ICMP code for IPv6 addresses. For example, specify `128` as the `fromPort` (ICMPv6 type), and `0` as `toPort` (ICMPv6 code). ToPort *float64 `json:"toPort" yaml:"toPort"` }
`Port` is a property of the [Networking](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lightsail-instance-networking.html) property. It describes information about ports for an instance.
TODO: EXAMPLE
type CfnInstance_StateProperty ¶
type CfnInstance_StateProperty struct { // The status code of the instance. Code *float64 `json:"code" yaml:"code"` // The state of the instance (for example, `running` or `pending` ). Name *string `json:"name" yaml:"name"` }
`State` is a property of the [AWS::Lightsail::Instance](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lightsail-instance.html) resource. It describes the status code and the state (for example, `running` ) of an instance.
TODO: EXAMPLE
type CfnLoadBalancer ¶ added in v2.9.0
type CfnLoadBalancer interface { awscdk.CfnResource awscdk.IInspectable AttachedInstances() *[]*string SetAttachedInstances(val *[]*string) AttrLoadBalancerArn() *string CfnOptions() awscdk.ICfnResourceOptions CfnProperties() *map[string]interface{} CfnResourceType() *string CreationStack() *[]*string HealthCheckPath() *string SetHealthCheckPath(val *string) InstancePort() *float64 SetInstancePort(val *float64) IpAddressType() *string SetIpAddressType(val *string) LoadBalancerName() *string SetLoadBalancerName(val *string) LogicalId() *string Node() constructs.Node Ref() *string SessionStickinessEnabled() interface{} SetSessionStickinessEnabled(val interface{}) SessionStickinessLbCookieDurationSeconds() *string SetSessionStickinessLbCookieDurationSeconds(val *string) Stack() awscdk.Stack Tags() awscdk.TagManager UpdatedProperites() *map[string]interface{} AddDeletionOverride(path *string) AddDependsOn(target awscdk.CfnResource) AddMetadata(key *string, value interface{}) AddOverride(path *string, value interface{}) AddPropertyDeletionOverride(propertyPath *string) AddPropertyOverride(propertyPath *string, value interface{}) ApplyRemovalPolicy(policy awscdk.RemovalPolicy, options *awscdk.RemovalPolicyOptions) GetAtt(attributeName *string) awscdk.Reference GetMetadata(key *string) interface{} Inspect(inspector awscdk.TreeInspector) OverrideLogicalId(newLogicalId *string) RenderProperties(props *map[string]interface{}) *map[string]interface{} ShouldSynthesize() *bool ToString() *string ValidateProperties(_properties interface{}) }
A CloudFormation `AWS::Lightsail::LoadBalancer`.
The `AWS::Lightsail::LoadBalancer` resource specifies a load balancer that can be used with Lightsail instances.
> You cannot attach attach TLS certificates to a load balancer using the `AWS::Lightsail::LoadBalancer` resource type. Instead, use the `LoadBalancerTlsCertificate` resource type to create a certificate and attach it to a load balancer.
TODO: EXAMPLE
func NewCfnLoadBalancer ¶ added in v2.9.0
func NewCfnLoadBalancer(scope constructs.Construct, id *string, props *CfnLoadBalancerProps) CfnLoadBalancer
Create a new `AWS::Lightsail::LoadBalancer`.
type CfnLoadBalancerProps ¶ added in v2.9.0
type CfnLoadBalancerProps struct { // The port that the load balancer uses to direct traffic to your Lightsail instances. // // For HTTP traffic, specify port `80` . For HTTPS traffic, specify port `443` . InstancePort *float64 `json:"instancePort" yaml:"instancePort"` // The name of the load balancer. LoadBalancerName *string `json:"loadBalancerName" yaml:"loadBalancerName"` // The Lightsail instances to attach to the load balancer. AttachedInstances *[]*string `json:"attachedInstances" yaml:"attachedInstances"` // The path on the attached instance where the health check will be performed. // // If no path is specified, the load balancer tries to make a request to the default (root) page ( `/index.html` ). HealthCheckPath *string `json:"healthCheckPath" yaml:"healthCheckPath"` // The IP address type of the load balancer. // // The possible values are `ipv4` for IPv4 only, and `dualstack` for both IPv4 and IPv6. IpAddressType *string `json:"ipAddressType" yaml:"ipAddressType"` // A Boolean value indicating whether session stickiness is enabled. // // Enable session stickiness (also known as *session affinity* ) to bind a user's session to a specific instance. This ensures that all requests from the user during the session are sent to the same instance. SessionStickinessEnabled interface{} `json:"sessionStickinessEnabled" yaml:"sessionStickinessEnabled"` // The time period, in seconds, after which the load balancer session stickiness cookie should be considered stale. // // If you do not specify this parameter, the default value is 0, which indicates that the sticky session should last for the duration of the browser session. SessionStickinessLbCookieDurationSeconds *string `json:"sessionStickinessLbCookieDurationSeconds" yaml:"sessionStickinessLbCookieDurationSeconds"` // An array of key-value pairs to apply to this resource. // // For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) in the *AWS CloudFormation User Guide* . // // > The `Value` of `Tags` is optional for Lightsail resources. Tags *[]*awscdk.CfnTag `json:"tags" yaml:"tags"` }
Properties for defining a `CfnLoadBalancer`.
TODO: EXAMPLE
type CfnLoadBalancerTlsCertificate ¶ added in v2.9.0
type CfnLoadBalancerTlsCertificate interface { awscdk.CfnResource awscdk.IInspectable AttrLoadBalancerTlsCertificateArn() *string AttrStatus() *string CertificateAlternativeNames() *[]*string SetCertificateAlternativeNames(val *[]*string) CertificateDomainName() *string SetCertificateDomainName(val *string) CertificateName() *string SetCertificateName(val *string) CfnOptions() awscdk.ICfnResourceOptions CfnProperties() *map[string]interface{} CfnResourceType() *string CreationStack() *[]*string IsAttached() interface{} SetIsAttached(val interface{}) LoadBalancerName() *string SetLoadBalancerName(val *string) LogicalId() *string Node() constructs.Node Ref() *string Stack() awscdk.Stack UpdatedProperites() *map[string]interface{} AddDeletionOverride(path *string) AddDependsOn(target awscdk.CfnResource) AddMetadata(key *string, value interface{}) AddOverride(path *string, value interface{}) AddPropertyDeletionOverride(propertyPath *string) AddPropertyOverride(propertyPath *string, value interface{}) ApplyRemovalPolicy(policy awscdk.RemovalPolicy, options *awscdk.RemovalPolicyOptions) GetAtt(attributeName *string) awscdk.Reference GetMetadata(key *string) interface{} Inspect(inspector awscdk.TreeInspector) OverrideLogicalId(newLogicalId *string) RenderProperties(props *map[string]interface{}) *map[string]interface{} ShouldSynthesize() *bool ToString() *string ValidateProperties(_properties interface{}) }
A CloudFormation `AWS::Lightsail::LoadBalancerTlsCertificate`.
The `AWS::Lightsail::LoadBalancerTlsCertificate` resource specifies a TLS certificate that can be used with a Lightsail load balancer.
TODO: EXAMPLE
func NewCfnLoadBalancerTlsCertificate ¶ added in v2.9.0
func NewCfnLoadBalancerTlsCertificate(scope constructs.Construct, id *string, props *CfnLoadBalancerTlsCertificateProps) CfnLoadBalancerTlsCertificate
Create a new `AWS::Lightsail::LoadBalancerTlsCertificate`.
type CfnLoadBalancerTlsCertificateProps ¶ added in v2.9.0
type CfnLoadBalancerTlsCertificateProps struct { // The domain name for the SSL/TLS certificate. // // For example, `example.com` or `www.example.com` . CertificateDomainName *string `json:"certificateDomainName" yaml:"certificateDomainName"` // The name of the SSL/TLS certificate. CertificateName *string `json:"certificateName" yaml:"certificateName"` // The name of the load balancer that the SSL/TLS certificate is attached to. LoadBalancerName *string `json:"loadBalancerName" yaml:"loadBalancerName"` // An array of alternative domain names and subdomain names for your SSL/TLS certificate. // // In addition to the primary domain name, you can have up to nine alternative domain names. Wildcards (such as `*.example.com` ) are not supported. CertificateAlternativeNames *[]*string `json:"certificateAlternativeNames" yaml:"certificateAlternativeNames"` // A Boolean value indicating whether the SSL/TLS certificate is attached to a Lightsail load balancer. IsAttached interface{} `json:"isAttached" yaml:"isAttached"` }
Properties for defining a `CfnLoadBalancerTlsCertificate`.
TODO: EXAMPLE
type CfnStaticIp ¶
type CfnStaticIp interface { awscdk.CfnResource awscdk.IInspectable AttachedTo() *string SetAttachedTo(val *string) AttrIpAddress() *string AttrIsAttached() awscdk.IResolvable AttrStaticIpArn() *string CfnOptions() awscdk.ICfnResourceOptions CfnProperties() *map[string]interface{} CfnResourceType() *string CreationStack() *[]*string LogicalId() *string Node() constructs.Node Ref() *string Stack() awscdk.Stack StaticIpName() *string SetStaticIpName(val *string) UpdatedProperites() *map[string]interface{} AddDeletionOverride(path *string) AddDependsOn(target awscdk.CfnResource) AddMetadata(key *string, value interface{}) AddOverride(path *string, value interface{}) AddPropertyDeletionOverride(propertyPath *string) AddPropertyOverride(propertyPath *string, value interface{}) ApplyRemovalPolicy(policy awscdk.RemovalPolicy, options *awscdk.RemovalPolicyOptions) GetAtt(attributeName *string) awscdk.Reference GetMetadata(key *string) interface{} Inspect(inspector awscdk.TreeInspector) OverrideLogicalId(newLogicalId *string) RenderProperties(props *map[string]interface{}) *map[string]interface{} ShouldSynthesize() *bool ToString() *string ValidateProperties(_properties interface{}) }
A CloudFormation `AWS::Lightsail::StaticIp`.
The `AWS::Lightsail::StaticIp` resource specifies a static IP that can be attached to an Amazon Lightsail instance that is in the same AWS Region and Availability Zone.
TODO: EXAMPLE
func NewCfnStaticIp ¶
func NewCfnStaticIp(scope constructs.Construct, id *string, props *CfnStaticIpProps) CfnStaticIp
Create a new `AWS::Lightsail::StaticIp`.
type CfnStaticIpProps ¶
type CfnStaticIpProps struct { // The name of the static IP. StaticIpName *string `json:"staticIpName" yaml:"staticIpName"` // The instance that the static IP is attached to. AttachedTo *string `json:"attachedTo" yaml:"attachedTo"` }
Properties for defining a `CfnStaticIp`.
TODO: EXAMPLE