Skip to content

Commit

Permalink
Upgrade terraform-provider-minio to v1.16.0 (#122)
Browse files Browse the repository at this point in the history
* make tfgen

* make build_sdks

---------

Co-authored-by: pulumi-bot <runner@fv-az392-199.ki1xc0uieppexm1jxm0eaxqvma.jx.internal.cloudapp.net>
  • Loading branch information
pulumi-bot and pulumi-bot committed Jul 12, 2023
1 parent 0e9a4aa commit b0b6645
Show file tree
Hide file tree
Showing 64 changed files with 1,794 additions and 1,018 deletions.
15 changes: 15 additions & 0 deletions provider/cmd/pulumi-resource-minio/bridge-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@
}
}
},
"minio_kms_key": {
"current": "minio:index/kmsKey:KmsKey"
},
"minio_s3_bucket": {
"current": "minio:index/s3Bucket:S3Bucket"
},
Expand All @@ -62,6 +65,9 @@
"minio_s3_bucket_policy": {
"current": "minio:index/s3BucketPolicy:S3BucketPolicy"
},
"minio_s3_bucket_server_side_encryption": {
"current": "minio:index/s3BucketServerSideEncryption:S3BucketServerSideEncryption"
},
"minio_s3_bucket_versioning": {
"current": "minio:index/s3BucketVersioning:S3BucketVersioning",
"fields": {
Expand Down Expand Up @@ -124,9 +130,11 @@
"minio:index/iamUser:IamUser": "minio_iam_user",
"minio:index/iamUserPolicyAttachment:IamUserPolicyAttachment": "minio_iam_user_policy_attachment",
"minio:index/ilmPolicy:IlmPolicy": "minio_ilm_policy",
"minio:index/kmsKey:KmsKey": "minio_kms_key",
"minio:index/s3Bucket:S3Bucket": "minio_s3_bucket",
"minio:index/s3BucketNotification:S3BucketNotification": "minio_s3_bucket_notification",
"minio:index/s3BucketPolicy:S3BucketPolicy": "minio_s3_bucket_policy",
"minio:index/s3BucketServerSideEncryption:S3BucketServerSideEncryption": "minio_s3_bucket_server_side_encryption",
"minio:index/s3BucketVersioning:S3BucketVersioning": "minio_s3_bucket_versioning",
"minio:index/s3Object:S3Object": "minio_s3_object"
},
Expand Down Expand Up @@ -190,6 +198,9 @@
"minio:index/ilmPolicy:IlmPolicy": {
"rules": "rule"
},
"minio:index/kmsKey:KmsKey": {
"keyId": "key_id"
},
"minio:index/s3Bucket:S3Bucket": {
"bucketDomainName": "bucket_domain_name",
"bucketPrefix": "bucket_prefix",
Expand All @@ -199,6 +210,10 @@
"minio:index/s3BucketNotification:S3BucketNotification": {
"queues": "queue"
},
"minio:index/s3BucketServerSideEncryption:S3BucketServerSideEncryption": {
"encryptionType": "encryption_type",
"kmsKeyId": "kms_key_id"
},
"minio:index/s3BucketVersioning:S3BucketVersioning": {
"versioningConfiguration": "versioning_configuration"
},
Expand Down
115 changes: 91 additions & 24 deletions provider/cmd/pulumi-resource-minio/schema.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion provider/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ replace (
)

require (
github.com/aminueza/terraform-provider-minio v1.15.3
github.com/aminueza/terraform-provider-minio v1.16.0
github.com/pulumi/pulumi-terraform-bridge/v3 v3.53.0
github.com/pulumi/pulumi/sdk/v3 v3.73.1-0.20230623071431-db579129f4c9
)
Expand Down
4 changes: 2 additions & 2 deletions provider/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -770,8 +770,8 @@ github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d/go.mod h1:rBZYJk5
github.com/alecthomas/units v0.0.0-20211218093645-b94a6e3cc137/go.mod h1:OMCwj8VM1Kc9e19TLln2VL61YJF0x1XFtfdL4JdbSyE=
github.com/alexflint/go-filemutex v0.0.0-20171022225611-72bdc8eae2ae/go.mod h1:CgnQgUtFrFz9mxFNtED3jI5tLDjKlOM+oUF/sTk6ps0=
github.com/alexflint/go-filemutex v1.1.0/go.mod h1:7P4iRhttt/nUvUOrYIhcpMzv2G6CY9UnI16Z+UJqRyk=
github.com/aminueza/terraform-provider-minio v1.15.3 h1:6VwBhX29eA0kb1Pd38Jthp03Drfr2Pus0yZri/gYPAE=
github.com/aminueza/terraform-provider-minio v1.15.3/go.mod h1:4LaHlA+CnxeskeS7CAwMzuW1sYmQxhtbal4o98uW0Ug=
github.com/aminueza/terraform-provider-minio v1.16.0 h1:akHCC05KLSSLvQzlCGgcdr1KN6RV54oQwu/0kFC9vzI=
github.com/aminueza/terraform-provider-minio v1.16.0/go.mod h1:4LaHlA+CnxeskeS7CAwMzuW1sYmQxhtbal4o98uW0Ug=
github.com/andybalholm/brotli v1.0.4/go.mod h1:fO7iG3H7G2nSZ7m0zPUDn85XEX2GTukHGRSepvi9Eig=
github.com/anmitsu/go-shlex v0.0.0-20161002113705-648efa622239/go.mod h1:2FmKhYUyUczH0OGQWaF5ceTx0UBShxjsH6f8oGKYe2c=
github.com/anmitsu/go-shlex v0.0.0-20200514113438-38f4b401e2be h1:9AeTilPcZAjCFIImctFaOjnTIavg87rW78vTPkQqLI8=
Expand Down
5 changes: 0 additions & 5 deletions sdk/dotnet/IlmPolicy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,6 @@ namespace Pulumi.Minio
/// {
/// Id = "expire-7d",
/// Expiration = "7d",
/// Filter = "prefix/",
/// Tags =
/// {
/// { "app", "myapp" },
/// },
/// },
/// },
/// });
Expand Down
10 changes: 0 additions & 10 deletions sdk/dotnet/Inputs/IlmPolicyRuleArgs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,9 @@ namespace Pulumi.Minio.Inputs

public sealed class IlmPolicyRuleArgs : global::Pulumi.ResourceArgs
{
/// <summary>
/// The expiration as a duration (5d), date (1970-01-01), or "DeleteMarker"
/// </summary>
[Input("expiration")]
public Input<string>? Expiration { get; set; }

/// <summary>
/// Correspond to "prefix" value
/// </summary>
[Input("filter")]
public Input<string>? Filter { get; set; }

Expand All @@ -35,10 +29,6 @@ public sealed class IlmPolicyRuleArgs : global::Pulumi.ResourceArgs

[Input("tags")]
private InputMap<object>? _tags;

/// <summary>
/// List of tags to use in filter
/// </summary>
public InputMap<object> Tags
{
get => _tags ?? (_tags = new InputMap<object>());
Expand Down
10 changes: 0 additions & 10 deletions sdk/dotnet/Inputs/IlmPolicyRuleGetArgs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,9 @@ namespace Pulumi.Minio.Inputs

public sealed class IlmPolicyRuleGetArgs : global::Pulumi.ResourceArgs
{
/// <summary>
/// The expiration as a duration (5d), date (1970-01-01), or "DeleteMarker"
/// </summary>
[Input("expiration")]
public Input<string>? Expiration { get; set; }

/// <summary>
/// Correspond to "prefix" value
/// </summary>
[Input("filter")]
public Input<string>? Filter { get; set; }

Expand All @@ -35,10 +29,6 @@ public sealed class IlmPolicyRuleGetArgs : global::Pulumi.ResourceArgs

[Input("tags")]
private InputMap<object>? _tags;

/// <summary>
/// List of tags to use in filter
/// </summary>
public InputMap<object> Tags
{
get => _tags ?? (_tags = new InputMap<object>());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@ public InputList<string> ExcludedPrefixes
set => _excludedPrefixes = value;
}

/// <summary>
/// Versioning status, one of "Enabled", "Suspended".
/// </summary>
[Input("status", required: true)]
public Input<string> Status { get; set; } = null!;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@ public InputList<string> ExcludedPrefixes
set => _excludedPrefixes = value;
}

/// <summary>
/// Versioning status, one of "Enabled", "Suspended".
/// </summary>
[Input("status", required: true)]
public Input<string> Status { get; set; } = null!;

Expand Down
83 changes: 83 additions & 0 deletions sdk/dotnet/KmsKey.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Threading.Tasks;
using Pulumi.Serialization;

namespace Pulumi.Minio
{
[MinioResourceType("minio:index/kmsKey:KmsKey")]
public partial class KmsKey : global::Pulumi.CustomResource
{
[Output("keyId")]
public Output<string> KeyId { get; private set; } = null!;


/// <summary>
/// Create a KmsKey resource with the given unique name, arguments, and options.
/// </summary>
///
/// <param name="name">The unique name of the resource</param>
/// <param name="args">The arguments used to populate this resource's properties</param>
/// <param name="options">A bag of options that control this resource's behavior</param>
public KmsKey(string name, KmsKeyArgs args, CustomResourceOptions? options = null)
: base("minio:index/kmsKey:KmsKey", name, args ?? new KmsKeyArgs(), MakeResourceOptions(options, ""))
{
}

private KmsKey(string name, Input<string> id, KmsKeyState? state = null, CustomResourceOptions? options = null)
: base("minio:index/kmsKey:KmsKey", name, state, MakeResourceOptions(options, id))
{
}

private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input<string>? id)
{
var defaultOptions = new CustomResourceOptions
{
Version = Utilities.Version,
};
var merged = CustomResourceOptions.Merge(defaultOptions, options);
// Override the ID if one was specified for consistency with other language SDKs.
merged.Id = id ?? merged.Id;
return merged;
}
/// <summary>
/// Get an existing KmsKey resource's state with the given name, ID, and optional extra
/// properties used to qualify the lookup.
/// </summary>
///
/// <param name="name">The unique name of the resulting resource.</param>
/// <param name="id">The unique provider ID of the resource to lookup.</param>
/// <param name="state">Any extra arguments used during the lookup.</param>
/// <param name="options">A bag of options that control this resource's behavior</param>
public static KmsKey Get(string name, Input<string> id, KmsKeyState? state = null, CustomResourceOptions? options = null)
{
return new KmsKey(name, id, state, options);
}
}

public sealed class KmsKeyArgs : global::Pulumi.ResourceArgs
{
[Input("keyId", required: true)]
public Input<string> KeyId { get; set; } = null!;

public KmsKeyArgs()
{
}
public static new KmsKeyArgs Empty => new KmsKeyArgs();
}

public sealed class KmsKeyState : global::Pulumi.ResourceArgs
{
[Input("keyId")]
public Input<string>? KeyId { get; set; }

public KmsKeyState()
{
}
public static new KmsKeyState Empty => new KmsKeyState();
}
}
9 changes: 0 additions & 9 deletions sdk/dotnet/Outputs/IlmPolicyRule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,13 @@ namespace Pulumi.Minio.Outputs
[OutputType]
public sealed class IlmPolicyRule
{
/// <summary>
/// The expiration as a duration (5d), date (1970-01-01), or "DeleteMarker"
/// </summary>
public readonly string? Expiration;
/// <summary>
/// Correspond to "prefix" value
/// </summary>
public readonly string? Filter;
/// <summary>
/// The ID of this resource.
/// </summary>
public readonly string Id;
public readonly string? Status;
/// <summary>
/// List of tags to use in filter
/// </summary>
public readonly ImmutableDictionary<string, object>? Tags;

[OutputConstructor]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ public sealed class S3BucketVersioningVersioningConfiguration
{
public readonly bool? ExcludeFolders;
public readonly ImmutableArray<string> ExcludedPrefixes;
/// <summary>
/// Versioning status, one of "Enabled", "Suspended".
/// </summary>
public readonly string Status;

[OutputConstructor]
Expand Down
18 changes: 0 additions & 18 deletions sdk/dotnet/S3Bucket.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,9 @@ public partial class S3Bucket : global::Pulumi.CustomResource
[Output("forceDestroy")]
public Output<bool?> ForceDestroy { get; private set; } = null!;

/// <summary>
/// - Whether object locking should be enabled for the bucket.
/// </summary>
[Output("objectLocking")]
public Output<bool?> ObjectLocking { get; private set; } = null!;

/// <summary>
/// The limit of the amount of data in the bucket (bytes).
/// </summary>
[Output("quota")]
public Output<int?> Quota { get; private set; } = null!;

Expand Down Expand Up @@ -125,15 +119,9 @@ public sealed class S3BucketArgs : global::Pulumi.ResourceArgs
[Input("forceDestroy")]
public Input<bool>? ForceDestroy { get; set; }

/// <summary>
/// - Whether object locking should be enabled for the bucket.
/// </summary>
[Input("objectLocking")]
public Input<bool>? ObjectLocking { get; set; }

/// <summary>
/// The limit of the amount of data in the bucket (bytes).
/// </summary>
[Input("quota")]
public Input<int>? Quota { get; set; }

Expand Down Expand Up @@ -163,15 +151,9 @@ public sealed class S3BucketState : global::Pulumi.ResourceArgs
[Input("forceDestroy")]
public Input<bool>? ForceDestroy { get; set; }

/// <summary>
/// - Whether object locking should be enabled for the bucket.
/// </summary>
[Input("objectLocking")]
public Input<bool>? ObjectLocking { get; set; }

/// <summary>
/// The limit of the amount of data in the bucket (bytes).
/// </summary>
[Input("quota")]
public Input<int>? Quota { get; set; }

Expand Down
39 changes: 0 additions & 39 deletions sdk/dotnet/S3BucketNotification.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,45 +9,6 @@

namespace Pulumi.Minio
{
/// <summary>
/// ## Example Usage
///
/// ```csharp
/// using System.Collections.Generic;
/// using System.Linq;
/// using Pulumi;
/// using Minio = Pulumi.Minio;
///
/// return await Deployment.RunAsync(() =&gt;
/// {
/// var bucketS3Bucket = new Minio.S3Bucket("bucketS3Bucket", new()
/// {
/// Bucket = "example-bucket",
/// });
///
/// var bucketS3BucketNotification = new Minio.S3BucketNotification("bucketS3BucketNotification", new()
/// {
/// Bucket = minio_s3_bucket.State_terraform_s3.Bucket,
/// Queues = new[]
/// {
/// new Minio.Inputs.S3BucketNotificationQueueArgs
/// {
/// Id = "notification-queue",
/// QueueArn = "arn:minio:sqs::primary:webhook",
/// Events = new[]
/// {
/// "s3:ObjectCreated:*",
/// "s3:ObjectRemoved:Delete",
/// },
/// FilterPrefix = "example/",
/// FilterSuffix = ".png",
/// },
/// },
/// });
///
/// });
/// ```
/// </summary>
[MinioResourceType("minio:index/s3BucketNotification:S3BucketNotification")]
public partial class S3BucketNotification : global::Pulumi.CustomResource
{
Expand Down

0 comments on commit b0b6645

Please sign in to comment.