@aws-cdk/aws-s3
Advanced tools
Comparing version 1.15.0 to 1.16.0
@@ -151,3 +151,3 @@ import events = require('@aws-cdk/aws-events'); | ||
/** | ||
* Define a CloudWatch event that triggers when something happens to this repository | ||
* Defines a CloudWatch event that triggers when something happens to this bucket | ||
* | ||
@@ -162,5 +162,9 @@ * Requires that there exists at least one CloudTrail Trail in your account | ||
/** | ||
* Defines an AWS CloudWatch event rule that can trigger a target when an image is pushed to this | ||
* repository. | ||
* Defines an AWS CloudWatch event that triggers when an object is uploaded | ||
* to the specified paths (keys) in this bucket using the PutObject API call. | ||
* | ||
* Note that some tools like `aws s3 cp` will automatically use either | ||
* PutObject or the multipart upload API depending on the file size, | ||
* so using `onCloudTrailWriteObject` may be preferable. | ||
* | ||
* Requires that there exists at least one CloudTrail Trail in your account | ||
@@ -173,2 +177,18 @@ * that captures the event. This method will not create the Trail. | ||
onCloudTrailPutObject(id: string, options?: OnCloudTrailBucketEventOptions): events.Rule; | ||
/** | ||
* Defines an AWS CloudWatch event that triggers when an object at the | ||
* specified paths (keys) in this bucket are written to. This includes | ||
* the events PutObject, CopyObject, and CompleteMultipartUpload. | ||
* | ||
* Note that some tools like `aws s3 cp` will automatically use either | ||
* PutObject or the multipart upload API depending on the file size, | ||
* so using this method may be preferable to `onCloudTrailPutObject`. | ||
* | ||
* Requires that there exists at least one CloudTrail Trail in your account | ||
* that captures the event. This method will not create the Trail. | ||
* | ||
* @param id The id of the rule | ||
* @param options Options for adding the rule | ||
*/ | ||
onCloudTrailWriteObject(id: string, options?: OnCloudTrailBucketEventOptions): events.Rule; | ||
} | ||
@@ -278,5 +298,9 @@ /** | ||
/** | ||
* Defines an AWS CloudWatch event rule that can trigger a target when an image is pushed to this | ||
* repository. | ||
* Defines an AWS CloudWatch event that triggers when an object is uploaded | ||
* to the specified paths (keys) in this bucket using the PutObject API call. | ||
* | ||
* Note that some tools like `aws s3 cp` will automatically use either | ||
* PutObject or the multipart upload API depending on the file size, | ||
* so using `onCloudTrailWriteObject` may be preferable. | ||
* | ||
* Requires that there exists at least one CloudTrail Trail in your account | ||
@@ -290,2 +314,18 @@ * that captures the event. This method will not create the Trail. | ||
/** | ||
* Defines an AWS CloudWatch event that triggers when an object at the | ||
* specified paths (keys) in this bucket are written to. This includes | ||
* the events PutObject, CopyObject, and CompleteMultipartUpload. | ||
* | ||
* Note that some tools like `aws s3 cp` will automatically use either | ||
* PutObject or the multipart upload API depending on the file size, | ||
* so using this method may be preferable to `onCloudTrailPutObject`. | ||
* | ||
* Requires that there exists at least one CloudTrail Trail in your account | ||
* that captures the event. This method will not create the Trail. | ||
* | ||
* @param id The id of the rule | ||
* @param options Options for adding the rule | ||
*/ | ||
onCloudTrailWriteObject(id: string, options?: OnCloudTrailBucketEventOptions): events.Rule; | ||
/** | ||
* Adds a statement to the resource policy for a principal (i.e. | ||
@@ -292,0 +332,0 @@ * account/role/service) to perform actions on this bucket and/or it's |
@@ -107,3 +107,3 @@ import cdk = require('@aws-cdk/core'); | ||
*/ | ||
export declare class CfnBucket extends cdk.CfnResource { | ||
export declare class CfnBucket extends cdk.CfnResource implements cdk.IInspectable { | ||
/** | ||
@@ -231,2 +231,10 @@ * The CloudFormation resource type name for this resource class. | ||
constructor(scope: cdk.Construct, id: string, props?: CfnBucketProps); | ||
/** | ||
* Examines the CloudFormation resource and discloses attributes. | ||
* | ||
* @param inspector - tree inspector to collect and process attributes | ||
* | ||
* @stability experimental | ||
*/ | ||
inspect(inspector: cdk.TreeInspector): void; | ||
protected readonly cfnProperties: { | ||
@@ -1180,3 +1188,3 @@ [key: string]: any; | ||
*/ | ||
export declare class CfnBucketPolicy extends cdk.CfnResource { | ||
export declare class CfnBucketPolicy extends cdk.CfnResource implements cdk.IInspectable { | ||
/** | ||
@@ -1204,2 +1212,10 @@ * The CloudFormation resource type name for this resource class. | ||
constructor(scope: cdk.Construct, id: string, props: CfnBucketPolicyProps); | ||
/** | ||
* Examines the CloudFormation resource and discloses attributes. | ||
* | ||
* @param inspector - tree inspector to collect and process attributes | ||
* | ||
* @stability experimental | ||
*/ | ||
inspect(inspector: cdk.TreeInspector): void; | ||
protected readonly cfnProperties: { | ||
@@ -1206,0 +1222,0 @@ [key: string]: any; |
{ | ||
"name": "@aws-cdk/aws-s3", | ||
"version": "1.15.0", | ||
"version": "1.16.0", | ||
"description": "CDK Constructs for AWS S3", | ||
@@ -48,3 +48,4 @@ "main": "lib/index.js", | ||
"build+test+package": "npm run build+test && npm run package", | ||
"build+test": "npm run build && npm test" | ||
"build+test": "npm run build && npm test", | ||
"compat": "cdk-compat" | ||
}, | ||
@@ -67,20 +68,20 @@ "cdk-build": { | ||
"devDependencies": { | ||
"@aws-cdk/assert": "1.15.0", | ||
"cdk-build-tools": "file:../../../tools/cdk-build-tools", | ||
"cdk-integ-tools": "file:../../../tools/cdk-integ-tools", | ||
"cfn2ts": "file:../../../tools/cfn2ts", | ||
"pkglint": "file:../../../tools/pkglint" | ||
"@aws-cdk/assert": "1.16.0", | ||
"cdk-build-tools": "1.16.0", | ||
"cdk-integ-tools": "1.16.0", | ||
"cfn2ts": "1.16.0", | ||
"pkglint": "1.16.0" | ||
}, | ||
"dependencies": { | ||
"@aws-cdk/aws-events": "1.15.0", | ||
"@aws-cdk/aws-iam": "1.15.0", | ||
"@aws-cdk/aws-kms": "1.15.0", | ||
"@aws-cdk/core": "1.15.0" | ||
"@aws-cdk/aws-events": "1.16.0", | ||
"@aws-cdk/aws-iam": "1.16.0", | ||
"@aws-cdk/aws-kms": "1.16.0", | ||
"@aws-cdk/core": "1.16.0" | ||
}, | ||
"homepage": "https://github.com/aws/aws-cdk", | ||
"peerDependencies": { | ||
"@aws-cdk/aws-events": "1.15.0", | ||
"@aws-cdk/aws-iam": "1.15.0", | ||
"@aws-cdk/aws-kms": "1.15.0", | ||
"@aws-cdk/core": "1.15.0" | ||
"@aws-cdk/aws-events": "1.16.0", | ||
"@aws-cdk/aws-iam": "1.16.0", | ||
"@aws-cdk/aws-kms": "1.16.0", | ||
"@aws-cdk/core": "1.16.0" | ||
}, | ||
@@ -93,6 +94,49 @@ "engines": { | ||
"props-physical-name:@aws-cdk/aws-s3.BucketPolicyProps", | ||
"no-unused-type:@aws-cdk/aws-s3.Location" | ||
"no-unused-type:@aws-cdk/aws-s3.Location", | ||
"props-default-doc:@aws-cdk/aws-s3.BucketAttributes.bucketDualStackDomainName", | ||
"docs-public-apis:@aws-cdk/aws-s3.RedirectProtocol.HTTPS", | ||
"docs-public-apis:@aws-cdk/aws-s3.RedirectProtocol.HTTP", | ||
"docs-public-apis:@aws-cdk/aws-s3.BlockPublicAccess", | ||
"docs-public-apis:@aws-cdk/aws-s3.BlockPublicAccess.BLOCK_ACLS", | ||
"docs-public-apis:@aws-cdk/aws-s3.BlockPublicAccess.BLOCK_ALL", | ||
"docs-public-apis:@aws-cdk/aws-s3.BlockPublicAccess.blockPublicAcls", | ||
"docs-public-apis:@aws-cdk/aws-s3.BlockPublicAccess.blockPublicPolicy", | ||
"docs-public-apis:@aws-cdk/aws-s3.BlockPublicAccess.ignorePublicAcls", | ||
"docs-public-apis:@aws-cdk/aws-s3.BlockPublicAccess.restrictPublicBuckets", | ||
"docs-public-apis:@aws-cdk/aws-s3.Bucket.fromBucketArn", | ||
"docs-public-apis:@aws-cdk/aws-s3.Bucket.fromBucketName", | ||
"docs-public-apis:@aws-cdk/aws-s3.ReplaceKey", | ||
"docs-public-apis:@aws-cdk/aws-s3.ReplaceKey.prefixWithKey", | ||
"docs-public-apis:@aws-cdk/aws-s3.ReplaceKey.withKey", | ||
"docs-public-apis:@aws-cdk/aws-s3.StorageClass.value", | ||
"docs-public-apis:@aws-cdk/aws-s3.StorageClass.toString", | ||
"docs-public-apis:@aws-cdk/aws-s3.BlockPublicAccessOptions", | ||
"props-default-doc:@aws-cdk/aws-s3.BlockPublicAccessOptions.blockPublicAcls", | ||
"props-default-doc:@aws-cdk/aws-s3.BlockPublicAccessOptions.blockPublicPolicy", | ||
"props-default-doc:@aws-cdk/aws-s3.BlockPublicAccessOptions.ignorePublicAcls", | ||
"props-default-doc:@aws-cdk/aws-s3.BlockPublicAccessOptions.restrictPublicBuckets", | ||
"props-default-doc:@aws-cdk/aws-s3.BucketAttributes.bucketArn", | ||
"docs-public-apis:@aws-cdk/aws-s3.BucketNotificationDestinationType.TOPIC", | ||
"props-default-doc:@aws-cdk/aws-s3.BucketAttributes.bucketName", | ||
"props-default-doc:@aws-cdk/aws-s3.BucketAttributes.bucketRegionalDomainName", | ||
"docs-public-apis:@aws-cdk/aws-s3.BucketAttributes.encryptionKey", | ||
"props-default-doc:@aws-cdk/aws-s3.BucketAttributes.encryptionKey", | ||
"props-default-doc:@aws-cdk/aws-s3.BucketMetrics.prefix", | ||
"props-default-doc:@aws-cdk/aws-s3.BucketMetrics.tagFilters", | ||
"props-default-doc:@aws-cdk/aws-s3.BucketNotificationDestinationConfig.dependencies", | ||
"docs-public-apis:@aws-cdk/aws-s3.BucketPolicyProps", | ||
"docs-public-apis:@aws-cdk/aws-s3.BucketProps", | ||
"docs-public-apis:@aws-cdk/aws-s3.IBucket", | ||
"props-default-doc:@aws-cdk/aws-s3.LifecycleRule.id", | ||
"props-default-doc:@aws-cdk/aws-s3.LifecycleRule.noncurrentVersionTransitions", | ||
"props-default-doc:@aws-cdk/aws-s3.Location.objectVersion", | ||
"docs-public-apis:@aws-cdk/aws-s3.NotificationKeyFilter", | ||
"props-default-doc:@aws-cdk/aws-s3.NotificationKeyFilter.prefix", | ||
"props-default-doc:@aws-cdk/aws-s3.NotificationKeyFilter.suffix", | ||
"docs-public-apis:@aws-cdk/aws-s3.RoutingRuleCondition", | ||
"docs-public-apis:@aws-cdk/aws-s3.BucketNotificationDestinationType.LAMBDA", | ||
"docs-public-apis:@aws-cdk/aws-s3.BucketNotificationDestinationType.QUEUE" | ||
] | ||
}, | ||
"stability": "stable" | ||
} | ||
} |
@@ -54,2 +54,8 @@ { | ||
{ | ||
"path": "../../../tools/cdk-integ-tools" | ||
}, | ||
{ | ||
"path": "../../../tools/cfn2ts" | ||
}, | ||
{ | ||
"path": "../../../tools/pkglint" | ||
@@ -56,0 +62,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1302561
8593
+ Added@aws-cdk/aws-events@1.16.0(transitive)
+ Added@aws-cdk/aws-iam@1.16.0(transitive)
+ Added@aws-cdk/aws-kms@1.16.0(transitive)
+ Added@aws-cdk/core@1.16.0(transitive)
+ Added@aws-cdk/cx-api@1.16.0(transitive)
+ Added@aws-cdk/region-info@1.16.0(transitive)
- Removed@aws-cdk/aws-events@1.15.0(transitive)
- Removed@aws-cdk/aws-iam@1.15.0(transitive)
- Removed@aws-cdk/aws-kms@1.15.0(transitive)
- Removed@aws-cdk/core@1.15.0(transitive)
- Removed@aws-cdk/cx-api@1.15.0(transitive)
- Removed@aws-cdk/region-info@1.15.0(transitive)
Updated@aws-cdk/aws-events@1.16.0
Updated@aws-cdk/aws-iam@1.16.0
Updated@aws-cdk/aws-kms@1.16.0
Updated@aws-cdk/core@1.16.0