Directory Bucket Args
Provides an Amazon S3 Express directory bucket resource.
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.s3.DirectoryBucket;
import com.pulumi.aws.s3.DirectoryBucketArgs;
import com.pulumi.aws.s3.inputs.DirectoryBucketLocationArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new DirectoryBucket("example", DirectoryBucketArgs.builder()
.bucket("example--usw2-az1--x-s3")
.location(DirectoryBucketLocationArgs.builder()
.name("usw2-az1")
.build())
.build());
}
}
Import
Using pulumi import
, import S3 bucket using bucket
. For example:
$ pulumi import aws:s3/directoryBucket:DirectoryBucket example example--usw2-az1--x-s3
Constructors
Functions
Properties
Boolean that indicates all objects should be deleted from the bucket when the bucket is destroyed so that the bucket can be destroyed without error. These objects are not recoverable. This only deletes objects when the bucket is destroyed, not when setting this parameter to true
. Once this parameter is set to true
, there must be a successful pulumi up
run before a destroy is required to update this value in the resource state. Without a successful pulumi up
after this parameter is set, this flag will have no effect. If setting this field in the same operation that would require replacing the bucket or destroying the bucket, this flag will not work. Additionally when importing a bucket, a successful pulumi up
is required to set this value in state before it will take effect on a destroy operation.