Skip to content
This repository was archived by the owner on Jan 3, 2022. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -5350,6 +5350,9 @@ type RDSDBInstance struct {
// the Amazon Relational Database Service Developer Guide.
SourceDBInstanceIdentifier *StringExpr `json:"SourceDBInstanceIdentifier,omitempty"`

// The ID of the region that contains the source DB instance for the read replica.
SourceRegion *StringExpr `json:"SourceRegion,omitempty"`

// Indicates whether the DB instance is encrypted.
StorageEncrypted *BoolExpr `json:"StorageEncrypted,omitempty"`

Expand Down Expand Up @@ -10357,7 +10360,7 @@ func (l *EC2NetworkInterfacePrivateIPSpecificationList) UnmarshalJSON(buf []byte

// EC2SecurityGroupRule represents EC2 Security Group Rule Property Type
//
// see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-security-group-rule.html
// see http://docs.aws.amazon.com/AWSSecurityGroupEgress only)CloudFormation/latest/UserGuide/aws-properties-ec2-security-group-rule.html
type EC2SecurityGroupRule struct {
// Specifies an IPv4 CIDR range.
CidrIp *StringExpr `json:"CidrIp,omitempty"`
Expand All @@ -10367,10 +10370,10 @@ type EC2SecurityGroupRule struct {

// The AWS service prefix of an Amazon VPC endpoint. For more
// information, see VPC Endpoints in the Amazon VPC User Guide.
DestinationPrefixListIdXXSecurityGroupEgressXOnlyX *StringExpr `json:"DestinationPrefixListId (SecurityGroupEgress only),omitempty"`
DestinationPrefixListIdXXSecurityGroupEgressXOnlyX *StringExpr `json:"DestinationPrefixListId,omitempty"`

// Specifies the GroupId of the destination Amazon VPC security group.
DestinationSecurityGroupIdXXSecurityGroupEgressXOnlyX *StringExpr `json:"DestinationSecurityGroupId (SecurityGroupEgress only),omitempty"`
DestinationSecurityGroupIdXXSecurityGroupEgressXOnlyX *StringExpr `json:"DestinationSecurityGroupId,omitempty"`

// The start of port range for the TCP and UDP protocols, or an ICMP type
// number. An ICMP type number of -1 indicates a wildcard (i.e., any ICMP
Expand All @@ -10385,17 +10388,17 @@ type EC2SecurityGroupRule struct {
// Security Group to allow access. You can use the Ref intrinsic function
// to refer to the logical ID of a security group defined in the same
// template.
SourceSecurityGroupIdXXSecurityGroupIngressXOnlyX *StringExpr `json:"SourceSecurityGroupId (SecurityGroupIngress only),omitempty"`
SourceSecurityGroupIdXXSecurityGroupIngressXOnlyX *StringExpr `json:"SourceSecurityGroupId,omitempty"`

// For non-VPC security groups only. Specifies the name of the Amazon EC2
// Security Group to use for access. You can use the Ref intrinsic
// function to refer to the logical name of a security group that is
// defined in the same template.
SourceSecurityGroupNameXXSecurityGroupIngressXOnlyX *StringExpr `json:"SourceSecurityGroupName (SecurityGroupIngress only),omitempty"`
SourceSecurityGroupNameXXSecurityGroupIngressXOnlyX *StringExpr `json:"SourceSecurityGroupName,omitempty"`

// Specifies the AWS Account ID of the owner of the Amazon EC2 Security
// Group that is specified in the SourceSecurityGroupName property.
SourceSecurityGroupOwnerIdXXSecurityGroupIngressXOnlyX *StringExpr `json:"SourceSecurityGroupOwnerId (SecurityGroupIngress only),omitempty"`
SourceSecurityGroupOwnerIdXXSecurityGroupIngressXOnlyX *StringExpr `json:"SourceSecurityGroupOwnerId,omitempty"`

// The end of port range for the TCP and UDP protocols, or an ICMP code.
// An ICMP code of -1 indicates a wildcard (i.e., any ICMP code).
Expand Down
10 changes: 10 additions & 0 deletions update_policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,19 @@ package cloudformation
//
// see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-updatepolicy.html
type UpdatePolicy struct {
AutoScalingReplacingUpdate *UpdatePolicyAutoScalingReplacingUpdate `json:"AutoScalingReplacingUpdate,omitempty"`
AutoScalingRollingUpdate *UpdatePolicyAutoScalingRollingUpdate `json:"AutoScalingRollingUpdate,omitempty"`
AutoScalingScheduledAction *UpdatePolicyAutoScalingScheduledAction `json:"AutoScalingScheduledAction,omitempty"`
}

// UpdatePolicyAutoScalingReplacingUpdate represents an AutoScalingReplacingUpdate
//
// You can use the AutoScalingReplacingUpdate policy to specify whether AWS CloudFormation replaces an Auto Scaling group with a new one or replaces only the instances in the Auto Scaling group.
type UpdatePolicyAutoScalingReplacingUpdate struct {
// Specifies whether an Auto Scaling group and the instances it contains are replaced during an update. During replacement, AWS CloudFormation retains the old group until it finishes creating the new one. If the update fails, AWS CloudFormation can roll back to the old Auto Scaling group and delete the new Auto Scaling group.
WillReplace *BoolExpr `json:"WillReplace,omitempty"`
}

// UpdatePolicyAutoScalingRollingUpdate represents an AutoScalingRollingUpdate
//
// You can use the AutoScalingRollingUpdate policy to specify how AWS CloudFormation handles rolling updates for a particular resource.
Expand Down Expand Up @@ -49,3 +58,4 @@ type UpdatePolicyAutoScalingScheduledAction struct {
// During a stack update, indicates whether AWS CloudFormation ignores any group size property differences between your current Auto Scaling group and the Auto Scaling group that is described in the AWS::AutoScaling::AutoScalingGroup resource of your template. However, if you modified any group size property values in your template, AWS CloudFormation will always use the modified values and update your Auto Scaling group.
IgnoreUnmodifiedGroupSizeProperties *BoolExpr `json:"IgnoreUnmodifiedGroupSizeProperties,omitempty"`
}