Skip to content

Commit

Permalink
Merge branch 'master' into ecs-bottlerocket-arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
mergify[bot] authored Aug 23, 2021
2 parents 037cd97 + b059124 commit 4b70e91
Show file tree
Hide file tree
Showing 7 changed files with 463 additions and 18 deletions.
2 changes: 1 addition & 1 deletion packages/@aws-cdk/aws-cloudfront/lib/cache-policy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ export class CacheHeaderBehavior {
return new CacheHeaderBehavior('whitelist', headers);
}

/** If the no headers will be passed, or an allow list of headers. */
/** If no headers will be passed, or an allow list of headers. */
public readonly behavior: string;
/** The headers for the allow/deny list, if applicable. */
public readonly headers?: string[];
Expand Down
6 changes: 3 additions & 3 deletions packages/@aws-cdk/aws-ses/lib/receipt-rule-set.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,12 @@ export class ReceiptRuleSet extends ReceiptRuleSetBase {
this.receiptRuleSetName = resource.ref;

if (props) {
const rules = props.rules || [];
rules.forEach((ruleOption, idx) => this.addRule(`Rule${idx}`, ruleOption));

if (props.dropSpam) {
this.addDropSpamRule();
}

const rules = props.rules || [];
rules.forEach((ruleOption, idx) => this.addRule(`Rule${idx}`, ruleOption));
}
}
}
35 changes: 35 additions & 0 deletions packages/@aws-cdk/aws-ses/test/test.receipt-rule-set.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,41 @@ export = {
test.done();
},

'drop spam rule should always appear first'(test: Test) {
// GIVEN
const stack = new Stack();

// WHEN
new ReceiptRuleSet(stack, 'RuleSet', {
dropSpam: true,
rules: [
{
scanEnabled: true,
recipients: ['foo@example.com'],
},
],
});

// THEN
expect(stack).to(haveResource('AWS::SES::ReceiptRule', {
Rule: {
Enabled: true,
Recipients: [
'foo@example.com',
],
ScanEnabled: true,
},
// All "regular" rules should come after the drop spam rule
After: {
Ref: 'RuleSetDropSpamRule5809F51B',
},
}));

expect(stack).to(haveResource('AWS::Lambda::Function'));

test.done();
},

'import receipt rule set'(test: Test) {
// GIVEN
const stack = new Stack();
Expand Down
83 changes: 83 additions & 0 deletions packages/@aws-cdk/cfnspec/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,86 @@
# CloudFormation Resource Specification v40.0.0

## New Resource Types


## Attribute Changes

* AWS::EC2::DHCPOptions Documentation (__changed__)
* Old: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-dhcp-options.html
* New: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-dhcpoptions.html
* AWS::EC2::DHCPOptions DhcpOptionsId (__added__)

## Property Changes

* AWS::AutoScaling::ScalingPolicy PredictiveScalingConfiguration (__added__)
* AWS::EC2::DHCPOptions DomainName.Documentation (__changed__)
* Old: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-dhcp-options.html#cfn-ec2-dhcpoptions-domainname
* New: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-dhcpoptions.html#cfn-ec2-dhcpoptions-domainname
* AWS::EC2::DHCPOptions DomainNameServers.Documentation (__changed__)
* Old: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-dhcp-options.html#cfn-ec2-dhcpoptions-domainnameservers
* New: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-dhcpoptions.html#cfn-ec2-dhcpoptions-domainnameservers
* AWS::EC2::DHCPOptions NetbiosNameServers.Documentation (__changed__)
* Old: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-dhcp-options.html#cfn-ec2-dhcpoptions-netbiosnameservers
* New: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-dhcpoptions.html#cfn-ec2-dhcpoptions-netbiosnameservers
* AWS::EC2::DHCPOptions NetbiosNodeType.Documentation (__changed__)
* Old: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-dhcp-options.html#cfn-ec2-dhcpoptions-netbiosnodetype
* New: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-dhcpoptions.html#cfn-ec2-dhcpoptions-netbiosnodetype
* AWS::EC2::DHCPOptions NtpServers.Documentation (__changed__)
* Old: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-dhcp-options.html#cfn-ec2-dhcpoptions-ntpservers
* New: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-dhcpoptions.html#cfn-ec2-dhcpoptions-ntpservers
* AWS::EC2::DHCPOptions Tags.Documentation (__changed__)
* Old: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-dhcp-options.html#cfn-ec2-dhcpoptions-tags
* New: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-dhcpoptions.html#cfn-ec2-dhcpoptions-tags
* AWS::Redshift::Cluster AquaConfigurationStatus (__added__)
* AWS::Redshift::Cluster AvailabilityZoneRelocation (__added__)
* AWS::Redshift::Cluster AvailabilityZoneRelocationStatus (__added__)
* AWS::Redshift::Cluster Classic (__added__)
* AWS::Redshift::Cluster DeferMaintenance (__added__)
* AWS::Redshift::Cluster DeferMaintenanceDuration (__added__)
* AWS::Redshift::Cluster DeferMaintenanceEndTime (__added__)
* AWS::Redshift::Cluster DeferMaintenanceIdentifier (__added__)
* AWS::Redshift::Cluster DeferMaintenanceStartTime (__added__)
* AWS::Redshift::Cluster DestinationRegion (__added__)
* AWS::Redshift::Cluster EnhancedVpcRouting (__added__)
* AWS::Redshift::Cluster MaintenanceTrackName (__added__)
* AWS::Redshift::Cluster ManualSnapshotRetentionPeriod (__added__)
* AWS::Redshift::Cluster ResourceAction (__added__)
* AWS::Redshift::Cluster RevisionTarget (__added__)
* AWS::Redshift::Cluster RotateEncryptionKey (__added__)
* AWS::Redshift::Cluster SnapshotCopyGrantName (__added__)
* AWS::Redshift::Cluster SnapshotCopyManual (__added__)
* AWS::Redshift::Cluster SnapshotCopyRetentionPeriod (__added__)
* AWS::Redshift::Cluster AvailabilityZone.UpdateType (__changed__)
* Old: Immutable
* New: Mutable
* AWS::Redshift::Cluster ElasticIp.UpdateType (__changed__)
* Old: Immutable
* New: Mutable
* AWS::Redshift::Cluster Encrypted.UpdateType (__changed__)
* Old: Immutable
* New: Mutable
* AWS::Redshift::Cluster KmsKeyId.UpdateType (__changed__)
* Old: Immutable
* New: Mutable
* AWS::Redshift::Cluster Port.UpdateType (__changed__)
* Old: Immutable
* New: Mutable
* AWS::SageMaker::EndpointConfig AsyncInferenceConfig (__added__)

## Property Type Changes

* AWS::AutoScaling::ScalingPolicy.PredictiveScalingConfiguration (__added__)
* AWS::AutoScaling::ScalingPolicy.PredictiveScalingMetricSpecification (__added__)
* AWS::AutoScaling::ScalingPolicy.PredictiveScalingPredefinedLoadMetric (__added__)
* AWS::AutoScaling::ScalingPolicy.PredictiveScalingPredefinedMetricPair (__added__)
* AWS::AutoScaling::ScalingPolicy.PredictiveScalingPredefinedScalingMetric (__added__)
* AWS::SageMaker::EndpointConfig.AsyncInferenceClientConfig (__added__)
* AWS::SageMaker::EndpointConfig.AsyncInferenceConfig (__added__)
* AWS::SageMaker::EndpointConfig.AsyncInferenceNotificationConfig (__added__)
* AWS::SageMaker::EndpointConfig.AsyncInferenceOutputConfig (__added__)
* AWS::WAFv2::WebACL.ManagedRuleGroupStatement Version (__added__)


# CloudFormation Resource Specification v39.10.0

## New Resource Types
Expand Down
5 changes: 5 additions & 0 deletions packages/@aws-cdk/cfnspec/build-tools/spec-diff.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,11 @@ async function main() {
});
}
break;
case 'Documentation':
describeChanges(resourceType, key, update.Documentation).forEach(change => {
attributeChanges.push(change);
});
break;
default:
throw new Error(`Unexpected update to ${resourceType}: ${key}`);
}
Expand Down
2 changes: 1 addition & 1 deletion packages/@aws-cdk/cfnspec/cfn.version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
39.10.0
40.0.0
Loading

0 comments on commit 4b70e91

Please sign in to comment.