Skip to content

BucketDeploymentProps

Initializer

import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkossdeployment"
&alicloudroscdkossdeployment.BucketDeploymentProps {
    DestinationBucket: interface{},
    Sources: *[]github.com/alibabacloud-go/ros-cdk/alicloudroscdkossdeployment.ISource,
    LogMonitoring: *bool,
    RetainOnCreate: *bool,
    RoleArn: interface{},
    Timeout: *f64,
}

Properties

Name Type Description
DestinationBucket interface{} 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 *bool Whether log monitoring is enabled.
RetainOnCreate *bool 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 interface{} The ARN of the execution role associated with this function.
Timeout *f64 The timeout period in seconds for the function to run.

DestinationBucketRequired

DestinationBucket interface{}
  • Type: interface{}

The OSS bucket to sync the contents of the zip file to.


SourcesRequired

Sources *[]ISource

The sources from which to deploy the contents of this bucket.


LogMonitoringOptional

LogMonitoring *bool
  • Type: *bool
  • 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

RetainOnCreate *bool
  • Type: *bool
  • 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

RoleArn interface{}
  • Type: interface{}
  • Default: A role is automatically created

The ARN of the execution role associated with this function.


TimeoutOptional

Timeout *f64
  • Type: *f64
  • Default: 60

The timeout period in seconds for the function to run.