Skip to content

BucketDeploymentProps

Initializer

import com.aliyun.ros.cdk.ossdeployment.BucketDeploymentProps;
BucketDeploymentProps.builder()
    .destinationBucket(java.lang.String)
    .destinationBucket(IResolvable)
    .destinationBucket(Bucket)
    .sources(java.util.List<ISource>)
//  .logMonitoring(java.lang.Boolean)
//  .retainOnCreate(java.lang.Boolean)
//  .roleArn(java.lang.String)
//  .roleArn(IResolvable)
//  .timeout(java.lang.Number)
    .build();

Properties

Name Type Description
destinationBucket java.lang.String OR com.aliyun.ros.cdk.core.IResolvable OR com.aliyun.ros.cdk.oss.Bucket The OSS bucket to sync the contents of the zip file to.
sources java.util.List<ISource> The sources from which to deploy the contents of this bucket.
logMonitoring java.lang.Boolean Whether log monitoring is enabled.
retainOnCreate java.lang.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 java.lang.String OR com.aliyun.ros.cdk.core.IResolvable The ARN of the execution role associated with this function.
timeout java.lang.Number The timeout period in seconds for the function to run.

destinationBucketRequired

public java.lang.Object getDestinationBucket();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable OR com.aliyun.ros.cdk.oss.Bucket

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


sourcesRequired

public java.util.List<ISource> getSources();

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


logMonitoringOptional

public java.lang.Boolean getLogMonitoring();
  • Type: java.lang.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 java.lang.Boolean getRetainOnCreate();
  • Type: java.lang.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 java.lang.Object getRoleArn();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
  • Default: A role is automatically created

The ARN of the execution role associated with this function.


timeoutOptional

public java.lang.Number getTimeout();
  • Type: java.lang.Number
  • Default: 60

The timeout period in seconds for the function to run.