diff --git a/schema.go b/schema.go index 34390ed..8737712 100644 --- a/schema.go +++ b/schema.go @@ -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"` @@ -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"` @@ -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 @@ -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). diff --git a/update_policy.go b/update_policy.go index 2fcf443..d1966e2 100644 --- a/update_policy.go +++ b/update_policy.go @@ -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. @@ -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"` } +