1. Packages
  2. MinIO
  3. API Docs
  4. S3BucketVersioning
MinIO v0.15.4 published on Monday, Jun 24, 2024 by Pulumi

minio.S3BucketVersioning

Explore with Pulumi AI

minio logo
MinIO v0.15.4 published on Monday, Jun 24, 2024 by Pulumi

    Create S3BucketVersioning Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new S3BucketVersioning(name: string, args: S3BucketVersioningArgs, opts?: CustomResourceOptions);
    @overload
    def S3BucketVersioning(resource_name: str,
                           args: S3BucketVersioningArgs,
                           opts: Optional[ResourceOptions] = None)
    
    @overload
    def S3BucketVersioning(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           bucket: Optional[str] = None,
                           versioning_configuration: Optional[S3BucketVersioningVersioningConfigurationArgs] = None)
    func NewS3BucketVersioning(ctx *Context, name string, args S3BucketVersioningArgs, opts ...ResourceOption) (*S3BucketVersioning, error)
    public S3BucketVersioning(string name, S3BucketVersioningArgs args, CustomResourceOptions? opts = null)
    public S3BucketVersioning(String name, S3BucketVersioningArgs args)
    public S3BucketVersioning(String name, S3BucketVersioningArgs args, CustomResourceOptions options)
    
    type: minio:S3BucketVersioning
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args S3BucketVersioningArgs
    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 S3BucketVersioningArgs
    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 S3BucketVersioningArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args S3BucketVersioningArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args S3BucketVersioningArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var s3bucketVersioningResource = new Minio.S3BucketVersioning("s3bucketVersioningResource", new()
    {
        Bucket = "string",
        VersioningConfiguration = new Minio.Inputs.S3BucketVersioningVersioningConfigurationArgs
        {
            Status = "string",
            ExcludeFolders = false,
            ExcludedPrefixes = new[]
            {
                "string",
            },
        },
    });
    
    example, err := minio.NewS3BucketVersioning(ctx, "s3bucketVersioningResource", &minio.S3BucketVersioningArgs{
    	Bucket: pulumi.String("string"),
    	VersioningConfiguration: &minio.S3BucketVersioningVersioningConfigurationArgs{
    		Status:         pulumi.String("string"),
    		ExcludeFolders: pulumi.Bool(false),
    		ExcludedPrefixes: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    	},
    })
    
    var s3bucketVersioningResource = new S3BucketVersioning("s3bucketVersioningResource", S3BucketVersioningArgs.builder()
        .bucket("string")
        .versioningConfiguration(S3BucketVersioningVersioningConfigurationArgs.builder()
            .status("string")
            .excludeFolders(false)
            .excludedPrefixes("string")
            .build())
        .build());
    
    s3bucket_versioning_resource = minio.S3BucketVersioning("s3bucketVersioningResource",
        bucket="string",
        versioning_configuration=minio.S3BucketVersioningVersioningConfigurationArgs(
            status="string",
            exclude_folders=False,
            excluded_prefixes=["string"],
        ))
    
    const s3bucketVersioningResource = new minio.S3BucketVersioning("s3bucketVersioningResource", {
        bucket: "string",
        versioningConfiguration: {
            status: "string",
            excludeFolders: false,
            excludedPrefixes: ["string"],
        },
    });
    
    type: minio:S3BucketVersioning
    properties:
        bucket: string
        versioningConfiguration:
            excludeFolders: false
            excludedPrefixes:
                - string
            status: string
    

    S3BucketVersioning 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 S3BucketVersioning resource accepts the following input properties:

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing S3BucketVersioning Resource

    Get an existing S3BucketVersioning 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?: S3BucketVersioningState, opts?: CustomResourceOptions): S3BucketVersioning
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            bucket: Optional[str] = None,
            versioning_configuration: Optional[S3BucketVersioningVersioningConfigurationArgs] = None) -> S3BucketVersioning
    func GetS3BucketVersioning(ctx *Context, name string, id IDInput, state *S3BucketVersioningState, opts ...ResourceOption) (*S3BucketVersioning, error)
    public static S3BucketVersioning Get(string name, Input<string> id, S3BucketVersioningState? state, CustomResourceOptions? opts = null)
    public static S3BucketVersioning get(String name, Output<String> id, S3BucketVersioningState 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.

    Supporting Types

    S3BucketVersioningVersioningConfiguration, S3BucketVersioningVersioningConfigurationArgs

    Status string
    ExcludeFolders bool
    ExcludedPrefixes List<string>
    status String
    excludeFolders Boolean
    excludedPrefixes List<String>
    status string
    excludeFolders boolean
    excludedPrefixes string[]
    status String
    excludeFolders Boolean
    excludedPrefixes List<String>

    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.4 published on Monday, Jun 24, 2024 by Pulumi