BucketDeploymentProps
Initializer
import { BucketDeploymentProps } from '@alicloud/ros-cdk-ossdeployment'
const bucketDeploymentProps: BucketDeploymentProps = { ... }
Properties
Name | Type | Description |
---|---|---|
destinationBucket |
string | @alicloud/ros-cdk-core.IResolvable | @alicloud/ros-cdk-oss.Bucket |
The OSS bucket to sync the contents of the zip file to. |
sources |
ISource[] |
The sources from which to deploy the contents of this bucket. |
logMonitoring |
boolean |
Whether log monitoring is enabled. |
retainOnCreate |
boolean |
If this is set to false, the bucket temporarily storing the asset or data will be deleted after the asset or data is deployed to the destination bucket. |
roleArn |
string | @alicloud/ros-cdk-core.IResolvable |
The ARN of the execution role associated with this function. |
timeout |
number |
The timeout period in seconds for the function to run. |
destinationBucket
Required
public readonly destinationBucket: string | IResolvable | Bucket;
- Type: string | @alicloud/ros-cdk-core.IResolvable | @alicloud/ros-cdk-oss.Bucket
The OSS bucket to sync the contents of the zip file to.
sources
Required
public readonly sources: ISource[];
- Type: ISource[]
The sources from which to deploy the contents of this bucket.
logMonitoring
Optional
public readonly logMonitoring: boolean;
- Type: boolean
- Default: false
Whether log monitoring is enabled.
Enabling log monitoring allows you to record the details of your deployment, which makes it easier to troubleshoot when something goes wrong.
Enabling logging monitoring incurs an additional logging service fee.
retainOnCreate
Optional
public readonly retainOnCreate: boolean;
- Type: boolean
- Default: false
If this is set to false, the bucket temporarily storing the asset or data will be deleted after the asset or data is deployed to the destination bucket.
Otherwise, the temporary bucket will be deleted when the stack is destroyed.
roleArn
Optional
public readonly roleArn: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
- Default: A role is automatically created
The ARN of the execution role associated with this function.
timeout
Optional
public readonly timeout: number;
- Type: number
- Default: 60
The timeout period in seconds for the function to run.