Skip to content

Commit

Permalink
Upgrade terraform-provider-confluent to v1.36.0
Browse files Browse the repository at this point in the history
  • Loading branch information
aq17 authored Mar 20, 2023
2 parents 09491b6 + 5b3bf9b commit c163250
Show file tree
Hide file tree
Showing 111 changed files with 9,163 additions and 263 deletions.
592 changes: 587 additions & 5 deletions provider/cmd/pulumi-resource-confluentcloud/schema.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions provider/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ require (
github.com/cheggaaa/pb v1.0.29 // indirect
github.com/cloudflare/circl v1.1.0 // indirect
github.com/confluentinc/ccloud-sdk-go-v2/apikeys v0.3.0 // indirect
github.com/confluentinc/ccloud-sdk-go-v2/byok v0.0.1 // indirect
github.com/confluentinc/ccloud-sdk-go-v2/cmk v0.7.0 // indirect
github.com/confluentinc/ccloud-sdk-go-v2/connect v0.2.0 // indirect
github.com/confluentinc/ccloud-sdk-go-v2/iam v0.10.0 // indirect
Expand Down
7 changes: 7 additions & 0 deletions provider/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ cloud.google.com/go/compute v1.7.0/go.mod h1:435lt8av5oL9P3fv1OEzSbSUe+ybHXGMPQH
cloud.google.com/go/compute v1.10.0/go.mod h1:ER5CLbMxl90o2jtNbGSbtfOpQKR0t15FOtRsugnLrlU=
cloud.google.com/go/compute v1.15.1 h1:7UGq3QknM33pw5xATlpzeoomNxsacIVvTqTTvbfajmE=
cloud.google.com/go/compute v1.15.1/go.mod h1:bjjoF/NtFUrkD/urWfdHaKuOPDR5nWIs63rR+SXhcpA=
cloud.google.com/go/compute/metadata v0.2.0/go.mod h1:zFmK7XCadkQkj6TtorcaGlCW1hT1fIilQDwofLpJ20k=
cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY=
cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA=
cloud.google.com/go/containeranalysis v0.5.1/go.mod h1:1D92jd8gRR/c0fGMlymRgxWD3Qw9C1ff6/T7mLgVL8I=
Expand Down Expand Up @@ -526,6 +527,8 @@ github.com/cockroachdb/logtags v0.0.0-20190617123548-eb05cc24525f/go.mod h1:i/u9
github.com/codahale/hdrhistogram v0.0.0-20161010025455-3a0bb77429bd/go.mod h1:sE/e/2PUdi/liOCUjSTXgM1o87ZssimdTWN964YiIeI=
github.com/confluentinc/ccloud-sdk-go-v2/apikeys v0.3.0 h1:7AixGTQ3QRYRfmVEJRIs06e0kWuHtc3ObxUr4HZx3p0=
github.com/confluentinc/ccloud-sdk-go-v2/apikeys v0.3.0/go.mod h1:wNa9Qg2e2v/+PQsUyKh+qB22hhLkPR6Ahy6rP+1jmGI=
github.com/confluentinc/ccloud-sdk-go-v2/byok v0.0.1 h1:hk8Uc28S2dPd/few2yJKYY3FqTRuVO14qq4fhWrXwdw=
github.com/confluentinc/ccloud-sdk-go-v2/byok v0.0.1/go.mod h1:XZksYS523oCggD4EAD8GmOFhPRe11kRqNHcAHzDQpgI=
github.com/confluentinc/ccloud-sdk-go-v2/cmk v0.7.0 h1:8fkaIVTRdselz8Ja+OgEl0BxcHhDQcxfrkhR3QjnqZk=
github.com/confluentinc/ccloud-sdk-go-v2/cmk v0.7.0/go.mod h1:357Zo3HvVAe5iQgUFxUbQPAKJasGm8vFMkOB+krVmR8=
github.com/confluentinc/ccloud-sdk-go-v2/connect v0.2.0 h1:rEb3sxzKCZvZCnEZ10WyGqkVIdlqxJGbmP85/4C4YdE=
Expand Down Expand Up @@ -2221,6 +2224,7 @@ golang.org/x/net v0.0.0-20220909164309-bea034e7d591/go.mod h1:YDH+HFinaLZZlnHAfS
golang.org/x/net v0.0.0-20221014081412-f15817d10f9b/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk=
golang.org/x/net v0.1.0/go.mod h1:Cx3nUiGt4eDBEyega/BKRp+/AlGL8hYe7U9odMt2Cco=
golang.org/x/net v0.2.0/go.mod h1:KqCZLdyyvdV855qA2rE3GC2aiw5xGR5TEjj8smXukLY=
golang.org/x/net v0.5.0/go.mod h1:DivGGAXEgPSlEBzxGzZI+ZLohi+xUj054jfeKui00ws=
golang.org/x/net v0.7.0 h1:rJrUqqhjsgNp7KqAIc25s9pZnjU7TUcSY7HcVZjdn1g=
golang.org/x/net v0.7.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs=
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
Expand Down Expand Up @@ -2422,6 +2426,7 @@ golang.org/x/sys v0.0.0-20220825204002-c680a09ffe64/go.mod h1:oPkhp1MJrh7nUepCBc
golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.2.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.3.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.4.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.5.0 h1:MUK/U/4lj1t1oPg0HfuXDN/Z1wv31ZJ/YcPiGccS4DU=
golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw=
Expand All @@ -2432,6 +2437,7 @@ golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuX
golang.org/x/term v0.0.0-20220722155259-a9ba230a4035/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
golang.org/x/term v0.1.0/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
golang.org/x/term v0.2.0/go.mod h1:TVmDHMZPmdnySmBfhjOoOdhjzdE1h4u1VwSiw2l1Nuc=
golang.org/x/term v0.4.0/go.mod h1:9P2UbLfCdcvo3p/nzKvsmas4TnlujnuoV9hGgYzW1lQ=
golang.org/x/term v0.5.0 h1:n2a8QNdAb0sZNpU9R1ALUXBbY+w51fCQDN+7EdxNBsY=
golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k=
golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
Expand All @@ -2444,6 +2450,7 @@ golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8=
golang.org/x/text v0.6.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8=
golang.org/x/text v0.7.0 h1:4BRB4x83lYWy72KwLD/qYDuTu7q9PjSagHvijDw7cLo=
golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8=
golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
Expand Down
121 changes: 121 additions & 0 deletions sdk/dotnet/ByokKey.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
// *** 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.ConfluentCloud
{
/// <summary>
/// ## Import
///
/// You can import a BYOK Key by using BYOK Key ID. The following example shows how to import a BYOK Key$ export CONFLUENT_CLOUD_API_KEY="&lt;cloud_api_key&gt;" $ export CONFLUENT_CLOUD_API_SECRET="&lt;cloud_api_secret&gt;"
///
/// ```sh
/// $ pulumi import confluentcloud:index/byokKey:ByokKey aws_key cck-abcde
/// ```
///
/// !&gt; **Warning:** Do not forget to delete terminal command history afterwards for security purposes.
/// </summary>
[ConfluentCloudResourceType("confluentcloud:index/byokKey:ByokKey")]
public partial class ByokKey : global::Pulumi.CustomResource
{
/// <summary>
/// (Optional Configuration Block) supports the following:
/// </summary>
[Output("aws")]
public Output<Outputs.ByokKeyAws> Aws { get; private set; } = null!;

/// <summary>
/// (Optional Configuration Block) supports the following:
/// </summary>
[Output("azure")]
public Output<Outputs.ByokKeyAzure> Azure { get; private set; } = null!;


/// <summary>
/// Create a ByokKey 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 ByokKey(string name, ByokKeyArgs? args = null, CustomResourceOptions? options = null)
: base("confluentcloud:index/byokKey:ByokKey", name, args ?? new ByokKeyArgs(), MakeResourceOptions(options, ""))
{
}

private ByokKey(string name, Input<string> id, ByokKeyState? state = null, CustomResourceOptions? options = null)
: base("confluentcloud:index/byokKey:ByokKey", 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 ByokKey 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 ByokKey Get(string name, Input<string> id, ByokKeyState? state = null, CustomResourceOptions? options = null)
{
return new ByokKey(name, id, state, options);
}
}

public sealed class ByokKeyArgs : global::Pulumi.ResourceArgs
{
/// <summary>
/// (Optional Configuration Block) supports the following:
/// </summary>
[Input("aws")]
public Input<Inputs.ByokKeyAwsArgs>? Aws { get; set; }

/// <summary>
/// (Optional Configuration Block) supports the following:
/// </summary>
[Input("azure")]
public Input<Inputs.ByokKeyAzureArgs>? Azure { get; set; }

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

public sealed class ByokKeyState : global::Pulumi.ResourceArgs
{
/// <summary>
/// (Optional Configuration Block) supports the following:
/// </summary>
[Input("aws")]
public Input<Inputs.ByokKeyAwsGetArgs>? Aws { get; set; }

/// <summary>
/// (Optional Configuration Block) supports the following:
/// </summary>
[Input("azure")]
public Input<Inputs.ByokKeyAzureGetArgs>? Azure { get; set; }

public ByokKeyState()
{
}
public static new ByokKeyState Empty => new ByokKeyState();
}
}
146 changes: 146 additions & 0 deletions sdk/dotnet/GetByokKey.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,146 @@
// *** 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.ConfluentCloud
{
public static class GetByokKey
{
/// <summary>
/// [![Preview](https://img.shields.io/badge/Lifecycle%20Stage-Preview-%2300afba)](https://docs.confluent.io/cloud/current/api.html#section/Versioning/API-Lifecycle-Policy)
///
/// &gt; **Note:** `confluentcloud.ByokKey` data source is available in **Preview** for early adopters. Preview features are introduced to gather customer feedback. This feature should be used only for evaluation and non-production testing purposes or to provide feedback to Confluent, particularly as it becomes more widely available in follow-on editions.
/// **Preview** features are intended for evaluation use in development and testing environments only, and not for production use. The warranty, SLA, and Support Services provisions of your agreement with Confluent do not apply to Preview features. Preview features are considered to be a Proof of Concept as defined in the Confluent Cloud Terms of Service. Confluent may discontinue providing preview releases of the Preview features at any time in Confluent’s sole discretion.
///
/// `confluentcloud.ByokKey` describes a BYOK Key data source.
///
/// {{% examples %}}
/// ## Example Usage
/// {{% example %}}
///
/// ```csharp
/// using System.Collections.Generic;
/// using Pulumi;
/// using ConfluentCloud = Pulumi.ConfluentCloud;
///
/// return await Deployment.RunAsync(() =&gt;
/// {
/// var azureKey = ConfluentCloud.GetByokKey.Invoke(new()
/// {
/// Id = "cck-abcde",
/// });
///
/// return new Dictionary&lt;string, object?&gt;
/// {
/// ["byok"] = azureKey,
/// };
/// });
/// ```
/// {{% /example %}}
/// {{% /examples %}}
/// </summary>
public static Task<GetByokKeyResult> InvokeAsync(GetByokKeyArgs args, InvokeOptions? options = null)
=> global::Pulumi.Deployment.Instance.InvokeAsync<GetByokKeyResult>("confluentcloud:index/getByokKey:getByokKey", args ?? new GetByokKeyArgs(), options.WithDefaults());

/// <summary>
/// [![Preview](https://img.shields.io/badge/Lifecycle%20Stage-Preview-%2300afba)](https://docs.confluent.io/cloud/current/api.html#section/Versioning/API-Lifecycle-Policy)
///
/// &gt; **Note:** `confluentcloud.ByokKey` data source is available in **Preview** for early adopters. Preview features are introduced to gather customer feedback. This feature should be used only for evaluation and non-production testing purposes or to provide feedback to Confluent, particularly as it becomes more widely available in follow-on editions.
/// **Preview** features are intended for evaluation use in development and testing environments only, and not for production use. The warranty, SLA, and Support Services provisions of your agreement with Confluent do not apply to Preview features. Preview features are considered to be a Proof of Concept as defined in the Confluent Cloud Terms of Service. Confluent may discontinue providing preview releases of the Preview features at any time in Confluent’s sole discretion.
///
/// `confluentcloud.ByokKey` describes a BYOK Key data source.
///
/// {{% examples %}}
/// ## Example Usage
/// {{% example %}}
///
/// ```csharp
/// using System.Collections.Generic;
/// using Pulumi;
/// using ConfluentCloud = Pulumi.ConfluentCloud;
///
/// return await Deployment.RunAsync(() =&gt;
/// {
/// var azureKey = ConfluentCloud.GetByokKey.Invoke(new()
/// {
/// Id = "cck-abcde",
/// });
///
/// return new Dictionary&lt;string, object?&gt;
/// {
/// ["byok"] = azureKey,
/// };
/// });
/// ```
/// {{% /example %}}
/// {{% /examples %}}
/// </summary>
public static Output<GetByokKeyResult> Invoke(GetByokKeyInvokeArgs args, InvokeOptions? options = null)
=> global::Pulumi.Deployment.Instance.Invoke<GetByokKeyResult>("confluentcloud:index/getByokKey:getByokKey", args ?? new GetByokKeyInvokeArgs(), options.WithDefaults());
}


public sealed class GetByokKeyArgs : global::Pulumi.InvokeArgs
{
/// <summary>
/// The ID of the BYOK key, for example, `cck-abcde`.
/// </summary>
[Input("id", required: true)]
public string Id { get; set; } = null!;

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

public sealed class GetByokKeyInvokeArgs : global::Pulumi.InvokeArgs
{
/// <summary>
/// The ID of the BYOK key, for example, `cck-abcde`.
/// </summary>
[Input("id", required: true)]
public Input<string> Id { get; set; } = null!;

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


[OutputType]
public sealed class GetByokKeyResult
{
/// <summary>
/// (Optional Configuration Block) supports the following:
/// </summary>
public readonly ImmutableArray<Outputs.GetByokKeyAwResult> Aws;
/// <summary>
/// (Optional Configuration Block) supports the following:
/// </summary>
public readonly ImmutableArray<Outputs.GetByokKeyAzureResult> Azures;
/// <summary>
/// (Required String) The ID of the BYOK key, for example, `cck-abcde`.
/// </summary>
public readonly string Id;

[OutputConstructor]
private GetByokKeyResult(
ImmutableArray<Outputs.GetByokKeyAwResult> aws,

ImmutableArray<Outputs.GetByokKeyAzureResult> azures,

string id)
{
Aws = aws;
Azures = azures;
Id = id;
}
}
}
9 changes: 8 additions & 1 deletion sdk/dotnet/GetKafkaCluster.cs
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,10 @@ public sealed class GetKafkaClusterResult
/// </summary>
public readonly string BootstrapEndpoint;
/// <summary>
/// (Optional Configuration Block) supports the following:
/// </summary>
public readonly ImmutableArray<Outputs.GetKafkaClusterByokKeyResult> ByokKeys;
/// <summary>
/// (Required String) The cloud service provider that runs the Kafka cluster. Accepted values are: `AWS`, `AZURE`, and `GCP`.
/// </summary>
public readonly string Cloud;
Expand All @@ -255,7 +259,7 @@ public sealed class GetKafkaClusterResult
public readonly string DisplayName;
public readonly Outputs.GetKafkaClusterEnvironmentResult Environment;
/// <summary>
/// (Required String) The ID of the Network that the Kafka cluster belongs to, for example, `n-abc123`.
/// (Required String) The ID of the Confluent key that is used to encrypt the data in the Kafka cluster, for example, `cck-lye5m`.
/// </summary>
public readonly string Id;
/// <summary>
Expand Down Expand Up @@ -293,6 +297,8 @@ private GetKafkaClusterResult(

string bootstrapEndpoint,

ImmutableArray<Outputs.GetKafkaClusterByokKeyResult> byokKeys,

string cloud,

Outputs.GetKafkaClusterDedicatedResult? dedicated,
Expand All @@ -319,6 +325,7 @@ private GetKafkaClusterResult(
Availability = availability;
Basics = basics;
BootstrapEndpoint = bootstrapEndpoint;
ByokKeys = byokKeys;
Cloud = cloud;
Dedicated = dedicated;
DisplayName = displayName;
Expand Down
Loading

0 comments on commit c163250

Please sign in to comment.