1. Packages
  2. Minio Provider
  3. API Docs
  4. S3BucketVersioning
MinIO v0.16.3 published on Wednesday, Feb 12, 2025 by Pulumi

minio.S3BucketVersioning

Explore with Pulumi AI

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 This property is required. string
The unique name of the resource.
args This property is required. S3BucketVersioningArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. 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 This property is required. string
The unique name of the resource.
args This property is required. S3BucketVersioningArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. S3BucketVersioningArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. 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",
        },
    },
});
Copy
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"),
		},
	},
})
Copy
var s3bucketVersioningResource = new S3BucketVersioning("s3bucketVersioningResource", S3BucketVersioningArgs.builder()
    .bucket("string")
    .versioningConfiguration(S3BucketVersioningVersioningConfigurationArgs.builder()
        .status("string")
        .excludeFolders(false)
        .excludedPrefixes("string")
        .build())
    .build());
Copy
s3bucket_versioning_resource = minio.S3BucketVersioning("s3bucketVersioningResource",
    bucket="string",
    versioning_configuration={
        "status": "string",
        "exclude_folders": False,
        "excluded_prefixes": ["string"],
    })
Copy
const s3bucketVersioningResource = new minio.S3BucketVersioning("s3bucketVersioningResource", {
    bucket: "string",
    versioningConfiguration: {
        status: "string",
        excludeFolders: false,
        excludedPrefixes: ["string"],
    },
});
Copy
type: minio:S3BucketVersioning
properties:
    bucket: string
    versioningConfiguration:
        excludeFolders: false
        excludedPrefixes:
            - string
        status: string
Copy

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

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The S3BucketVersioning resource accepts the following input properties:

Bucket
This property is required.
Changes to this property will trigger replacement.
string
VersioningConfiguration This property is required. S3BucketVersioningVersioningConfiguration
Bucket
This property is required.
Changes to this property will trigger replacement.
string
VersioningConfiguration This property is required. S3BucketVersioningVersioningConfigurationArgs
bucket
This property is required.
Changes to this property will trigger replacement.
String
versioningConfiguration This property is required. S3BucketVersioningVersioningConfiguration
bucket
This property is required.
Changes to this property will trigger replacement.
string
versioningConfiguration This property is required. S3BucketVersioningVersioningConfiguration
bucket
This property is required.
Changes to this property will trigger replacement.
str
versioning_configuration This property is required. S3BucketVersioningVersioningConfigurationArgs
bucket
This property is required.
Changes to this property will trigger replacement.
String
versioningConfiguration This property is required. Property Map

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)
resources:  _:    type: minio:S3BucketVersioning    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
Bucket Changes to this property will trigger replacement. string
VersioningConfiguration S3BucketVersioningVersioningConfiguration
Bucket Changes to this property will trigger replacement. string
VersioningConfiguration S3BucketVersioningVersioningConfigurationArgs
bucket Changes to this property will trigger replacement. String
versioningConfiguration S3BucketVersioningVersioningConfiguration
bucket Changes to this property will trigger replacement. string
versioningConfiguration S3BucketVersioningVersioningConfiguration
bucket Changes to this property will trigger replacement. str
versioning_configuration S3BucketVersioningVersioningConfigurationArgs
bucket Changes to this property will trigger replacement. String
versioningConfiguration Property Map

Supporting Types

S3BucketVersioningVersioningConfiguration
, S3BucketVersioningVersioningConfigurationArgs

Status This property is required. string
ExcludeFolders bool
ExcludedPrefixes List<string>
Status This property is required. string
ExcludeFolders bool
ExcludedPrefixes []string
status This property is required. String
excludeFolders Boolean
excludedPrefixes List<String>
status This property is required. string
excludeFolders boolean
excludedPrefixes string[]
status This property is required. str
exclude_folders bool
excluded_prefixes Sequence[str]
status This property is required. 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.