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",
},
},
});
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={
"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
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.
- Versioning
Configuration This property is required. S3BucketVersioning Versioning Configuration
- Bucket
This property is required. Changes to this property will trigger replacement.
- Versioning
Configuration This property is required. S3BucketVersioning Versioning Configuration Args
- bucket
This property is required. Changes to this property will trigger replacement.
- versioning
Configuration This property is required. S3BucketVersioning Versioning Configuration
- bucket
This property is required. Changes to this property will trigger replacement.
- versioning
Configuration This property is required. S3BucketVersioning Versioning Configuration
- bucket
This property is required. Changes to this property will trigger replacement.
- versioning_
configuration This property is required. S3BucketVersioning Versioning Configuration Args
- bucket
This property is required. Changes to this property will trigger replacement.
- versioning
Configuration 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.
- Bucket
Changes to this property will trigger replacement.
- Versioning
Configuration S3BucketVersioning Versioning Configuration
- Bucket
Changes to this property will trigger replacement.
- Versioning
Configuration S3BucketVersioning Versioning Configuration Args
- bucket
Changes to this property will trigger replacement.
- versioning
Configuration S3BucketVersioning Versioning Configuration
- bucket
Changes to this property will trigger replacement.
- versioning
Configuration S3BucketVersioning Versioning Configuration
- bucket
Changes to this property will trigger replacement.
- versioning_
configuration S3BucketVersioning Versioning Configuration Args
- bucket
Changes to this property will trigger replacement.
- versioning
Configuration Property Map
Supporting Types
S3BucketVersioningVersioningConfiguration, S3BucketVersioningVersioningConfigurationArgs
- Status
This property is required. string - Exclude
Folders bool - Excluded
Prefixes List<string>
- Status
This property is required. string - Exclude
Folders bool - Excluded
Prefixes []string
- status
This property is required. String - exclude
Folders Boolean - excluded
Prefixes List<String>
- status
This property is required. string - exclude
Folders boolean - excluded
Prefixes string[]
- status
This property is required. str - exclude_
folders bool - excluded_
prefixes Sequence[str]
- status
This property is required. String - exclude
Folders Boolean - excluded
Prefixes List<String>
Package Details
- Repository
- MinIO pulumi/pulumi-minio
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
minio
Terraform Provider.