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. |
destinationBucketRequired
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.
sourcesRequired
public readonly sources: ISource[];
- Type: ISource[]
The sources from which to deploy the contents of this bucket.
logMonitoringOptional
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.
retainOnCreateOptional
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.
roleArnOptional
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.
timeoutOptional
public readonly timeout: number;
- Type: number
- Default: 60
The timeout period in seconds for the function to run.