Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
msambol committed Feb 17, 2024
1 parent 5862a48 commit f261eb1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/aws-cdk-lib/aws-s3/test/bucket.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ describe('bucket', () => {
});
});

test('enforceSSL can be enabled', () => {
test('enforceSsl can be enabled', () => {
const stack = new cdk.Stack();
new s3.Bucket(stack, 'MyBucket', { enforceSSL: true });

Expand Down
8 changes: 4 additions & 4 deletions packages/aws-cdk-lib/aws-sns/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ const topicPolicy = new sns.TopicPolicy(this, 'Policy', {

### Enforce encryption of data in transit when publishing to a topic

You can enforce SSL when creating a topic policy by setting the `enforceSsl` flag:
You can enforce SSL when creating a topic policy by setting the `enforceSSL` flag:

```ts
const topic = new sns.Topic(this, 'Topic');
Expand All @@ -228,11 +228,11 @@ const policyDocument = new iam.PolicyDocument({
const topicPolicy = new sns.TopicPolicy(this, 'Policy', {
topics: [topic],
policyDocument,
enforceSsl: true,
enforceSSL: true,
});
```

Similiarly for `addToResourcePolicy`, you can enforce SSL by setting the `enforceSsl` flag:
Similiarly for `addToResourcePolicy`, you can enforce SSL by setting the `enforceSSL` flag:

```ts
const topic = new sns.Topic(this, 'TopicAddPolicy');
Expand All @@ -242,7 +242,7 @@ topic.addToResourcePolicy(new iam.PolicyStatement({
actions: ['sns:Publish'],
resources: [topic.topicArn],
}), {
enforceSsl: true,
enforceSSL: true,
});
```

Expand Down

0 comments on commit f261eb1

Please sign in to comment.