1. Packages
  2. MinIO
  3. API Docs
  4. S3Bucket
MinIO v0.15.2 published on Friday, Feb 23, 2024 by Pulumi

minio.S3Bucket

Explore with Pulumi AI

minio logo
MinIO v0.15.2 published on Friday, Feb 23, 2024 by Pulumi

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Minio = Pulumi.Minio;
    
    return await Deployment.RunAsync(() => 
    {
        var stateTerraformS3 = new Minio.S3Bucket("stateTerraformS3", new()
        {
            Acl = "public",
            Bucket = "state-terraform-s3",
        });
    
        return new Dictionary<string, object?>
        {
            ["minioId"] = stateTerraformS3.Id,
            ["minioUrl"] = stateTerraformS3.BucketDomainName,
        };
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-minio/sdk/go/minio"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		stateTerraformS3, err := minio.NewS3Bucket(ctx, "stateTerraformS3", &minio.S3BucketArgs{
    			Acl:    pulumi.String("public"),
    			Bucket: pulumi.String("state-terraform-s3"),
    		})
    		if err != nil {
    			return err
    		}
    		ctx.Export("minioId", stateTerraformS3.ID())
    		ctx.Export("minioUrl", stateTerraformS3.BucketDomainName)
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.minio.S3Bucket;
    import com.pulumi.minio.S3BucketArgs;
    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 stateTerraformS3 = new S3Bucket("stateTerraformS3", S3BucketArgs.builder()        
                .acl("public")
                .bucket("state-terraform-s3")
                .build());
    
            ctx.export("minioId", stateTerraformS3.id());
            ctx.export("minioUrl", stateTerraformS3.bucketDomainName());
        }
    }
    
    import pulumi
    import pulumi_minio as minio
    
    state_terraform_s3 = minio.S3Bucket("stateTerraformS3",
        acl="public",
        bucket="state-terraform-s3")
    pulumi.export("minioId", state_terraform_s3.id)
    pulumi.export("minioUrl", state_terraform_s3.bucket_domain_name)
    
    import * as pulumi from "@pulumi/pulumi";
    import * as minio from "@pulumi/minio";
    
    const stateTerraformS3 = new minio.S3Bucket("stateTerraformS3", {
        acl: "public",
        bucket: "state-terraform-s3",
    });
    export const minioId = stateTerraformS3.id;
    export const minioUrl = stateTerraformS3.bucketDomainName;
    
    resources:
      stateTerraformS3:
        type: minio:S3Bucket
        properties:
          acl: public
          bucket: state-terraform-s3
    outputs:
      minioId: ${stateTerraformS3.id}
      minioUrl: ${stateTerraformS3.bucketDomainName}
    

    Create S3Bucket Resource

    new S3Bucket(name: string, args?: S3BucketArgs, opts?: CustomResourceOptions);
    @overload
    def S3Bucket(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 acl: Optional[str] = None,
                 bucket: Optional[str] = None,
                 bucket_prefix: Optional[str] = None,
                 force_destroy: Optional[bool] = None,
                 object_locking: Optional[bool] = None,
                 quota: Optional[int] = None)
    @overload
    def S3Bucket(resource_name: str,
                 args: Optional[S3BucketArgs] = None,
                 opts: Optional[ResourceOptions] = None)
    func NewS3Bucket(ctx *Context, name string, args *S3BucketArgs, opts ...ResourceOption) (*S3Bucket, error)
    public S3Bucket(string name, S3BucketArgs? args = null, CustomResourceOptions? opts = null)
    public S3Bucket(String name, S3BucketArgs args)
    public S3Bucket(String name, S3BucketArgs args, CustomResourceOptions options)
    
    type: minio:S3Bucket
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args S3BucketArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args S3BucketArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args S3BucketArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args S3BucketArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args S3BucketArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    S3Bucket Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The S3Bucket resource accepts the following input properties:

    Acl string
    Bucket string
    BucketPrefix string
    ForceDestroy bool
    ObjectLocking bool
    Quota int
    Acl string
    Bucket string
    BucketPrefix string
    ForceDestroy bool
    ObjectLocking bool
    Quota int
    acl String
    bucket String
    bucketPrefix String
    forceDestroy Boolean
    objectLocking Boolean
    quota Integer
    acl string
    bucket string
    bucketPrefix string
    forceDestroy boolean
    objectLocking boolean
    quota number
    acl String
    bucket String
    bucketPrefix String
    forceDestroy Boolean
    objectLocking Boolean
    quota Number

    Outputs

    All input properties are implicitly available as output properties. Additionally, the S3Bucket resource produces the following output properties:

    Arn string
    BucketDomainName string
    Id string
    The provider-assigned unique ID for this managed resource.
    Arn string
    BucketDomainName string
    Id string
    The provider-assigned unique ID for this managed resource.
    arn String
    bucketDomainName String
    id String
    The provider-assigned unique ID for this managed resource.
    arn string
    bucketDomainName string
    id string
    The provider-assigned unique ID for this managed resource.
    arn str
    bucket_domain_name str
    id str
    The provider-assigned unique ID for this managed resource.
    arn String
    bucketDomainName String
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing S3Bucket Resource

    Get an existing S3Bucket resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: S3BucketState, opts?: CustomResourceOptions): S3Bucket
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            acl: Optional[str] = None,
            arn: Optional[str] = None,
            bucket: Optional[str] = None,
            bucket_domain_name: Optional[str] = None,
            bucket_prefix: Optional[str] = None,
            force_destroy: Optional[bool] = None,
            object_locking: Optional[bool] = None,
            quota: Optional[int] = None) -> S3Bucket
    func GetS3Bucket(ctx *Context, name string, id IDInput, state *S3BucketState, opts ...ResourceOption) (*S3Bucket, error)
    public static S3Bucket Get(string name, Input<string> id, S3BucketState? state, CustomResourceOptions? opts = null)
    public static S3Bucket get(String name, Output<String> id, S3BucketState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Acl string
    Arn string
    Bucket string
    BucketDomainName string
    BucketPrefix string
    ForceDestroy bool
    ObjectLocking bool
    Quota int
    Acl string
    Arn string
    Bucket string
    BucketDomainName string
    BucketPrefix string
    ForceDestroy bool
    ObjectLocking bool
    Quota int
    acl String
    arn String
    bucket String
    bucketDomainName String
    bucketPrefix String
    forceDestroy Boolean
    objectLocking Boolean
    quota Integer
    acl string
    arn string
    bucket string
    bucketDomainName string
    bucketPrefix string
    forceDestroy boolean
    objectLocking boolean
    quota number
    acl String
    arn String
    bucket String
    bucketDomainName String
    bucketPrefix String
    forceDestroy Boolean
    objectLocking Boolean
    quota Number

    Package Details

    Repository
    MinIO pulumi/pulumi-minio
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the minio Terraform Provider.
    minio logo
    MinIO v0.15.2 published on Friday, Feb 23, 2024 by Pulumi