Skip to content

Commit

Permalink
chore(aws-s3): fixed broken documentation example (aws#2401)
Browse files Browse the repository at this point in the history
fixes aws#2384
  • Loading branch information
Sean Schofield authored and SanderKnape committed May 14, 2019
1 parent 17e9cf4 commit 90aae20
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/@aws-cdk/aws-s3/lib/bucket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,12 +147,12 @@ export interface IBucket extends IResource {
* Without arguments, this method will grant read ("s3:GetObject") access to
* all objects ("*") in the bucket.
*
* The method returns the `iam.PolicyStatement` object, which can then be modified
* The method returns the `iam.Grant` object, which can then be modified
* as needed. For example, you can add a condition that will restrict access only
* to an IPv4 range like this:
*
* const statement = bucket.grantPublicAccess();
* statement.addCondition('IpAddress', { "aws:SourceIp": "54.240.143.0/24" });
* const grant = bucket.grantPublicAccess();
* grant.resourceStatement!.addCondition(IpAddress, { aws:SourceIp”: “54.240.143.0/24 });
*
*
* @param keyPrefix the prefix of S3 object keys (e.g. `home/*`). Default is "*".
Expand Down Expand Up @@ -454,12 +454,12 @@ export abstract class BucketBase extends Resource implements IBucket {
* Without arguments, this method will grant read ("s3:GetObject") access to
* all objects ("*") in the bucket.
*
* The method returns the `iam.PolicyStatement` object, which can then be modified
* The method returns the `iam.Grant` object, which can then be modified
* as needed. For example, you can add a condition that will restrict access only
* to an IPv4 range like this:
*
* const statement = bucket.grantPublicAccess();
* statement.addCondition('IpAddress', { "aws:SourceIp": "54.240.143.0/24" });
* const grant = bucket.grantPublicAccess();
* grant.resourceStatement!.addCondition(IpAddress, { aws:SourceIp”: “54.240.143.0/24 });
*
*
* @param keyPrefix the prefix of S3 object keys (e.g. `home/*`). Default is "*".
Expand Down

0 comments on commit 90aae20

Please sign in to comment.