diff --git a/sdk/dotnet/GetSecret.cs b/sdk/dotnet/GetSecret.cs new file mode 100644 index 0000000..2e6f63e --- /dev/null +++ b/sdk/dotnet/GetSecret.cs @@ -0,0 +1,561 @@ +// *** 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; +using Pulumi; + +namespace Pulumiverse.Cpln +{ + public static class GetSecret + { + /// + /// Use this data source to access information about a [Secret](https://docs.controlplane.com/reference/secret) within Control Plane. + /// + /// ## Required + /// + /// - **name** (String) Name of the secret. + /// + /// ## Outputs + /// + /// The following attributes are exported: + /// + /// - **cpln_id** (String) The ID, in GUID format, of the secret. + /// - **name** (String) Name of the secret. + /// - **description** (String) Description of the secret. + /// - **tags** (Map of String) Key-value map of resource tags. + /// - **self_link** (String) Full link to this resource. Can be referenced by other resources. + /// - **secret_link** (String) Output used when linking a secret to an environment variable or volume, in the format: `cpln://secret/SECRET_NAME`. + /// - **dictionary_as_envs** (Map of String) If a dictionary secret is defined, this output will be a key-value map in the following format: `key = cpln://secret/SECRET_NAME.key`. + /// - **aws** (Block List, Max: 1) (see below) [Reference Page](https://docs.controlplane.com/reference/secret#aws). + /// - **azure_connector** (Block List, Max: 1) (see below) [Reference Page](https://docs.controlplane.com/reference/secret#azure-connector). + /// - **azure_sdk** (String, Sensitive) JSON string containing the Docker secret. [Reference Page](https://docs.controlplane.com/reference/secret#azure). + /// - **dictionary** (Map of String) List of unique key-value pairs. [Reference Page](https://docs.controlplane.com/reference/secret#dictionary). + /// - **docker** (String, Sensitive) JSON string containing the Docker secret. [Reference Page](https://docs.controlplane.com/reference/secret#docker). + /// - **ecr** (Block List, Max: 1) (see below). + /// - **gcp** (String, Sensitive) JSON string containing the GCP secret. [Reference Page](https://docs.controlplane.com/reference/secret#gcp) + /// - **keypair** (Block List, Max: 1) (see below) [Reference Page](https://docs.controlplane.com/reference/secret#keypair). + /// - **nats_account** (Block List, Max: 1) (see below) [Reference Page](https://docs.controlplane.com/reference/secret#nats-account). + /// - **opaque** (Block List, Max: 1) (see below) [Reference Page](https://docs.controlplane.com/reference/secret#opaque). + /// - **tls** (Block List, Max: 1) (see below) [Reference Page](https://docs.controlplane.com/reference/secret#tls). + /// - **userpass** (Block List, Max: 1) (see below) [Reference Page](https://docs.controlplane.com/reference/secret#username). + /// + /// <a id="nestedblock--aws"></a> + /// + /// ### `aws` + /// + /// Optional: + /// + /// - **access_key** (String, Sensitive) Access Key provided by AWS. + /// - **role_arn** (String) Role ARN provided by AWS. + /// - **secret_key** (String, Sensitive) Secret Key provided by AWS. + /// - **external_id** (String) AWS IAM Role External ID. + /// + /// <a id="nestedblock--azure_connector"></a> + /// + /// ### `azure_connector` + /// + /// Optional: + /// + /// - **code** (String, Sensitive) Code/Key to authenticate to deployment URL. + /// - **url** (String, Sensitive) Deployment URL. + /// + /// <a id="nestedblock--ecr"></a> + /// + /// ### `ecr` + /// + /// [Reference Page](https://docs.controlplane.com/reference/secret#ecr) + /// + /// Optional: + /// + /// - **access_key** (String) Access Key provided by AWS. + /// - **repos** (Set of String) List of ECR repositories. + /// - **role_arn** (String) Role ARN provided by AWS. + /// - **secret_key** (String, Sensitive) Secret Key provided by AWS. + /// - **external_id** (String) AWS IAM Role External ID. Used when setting up cross-account access to your ECR repositories. + /// + /// <a id="nestedblock--keypair"></a> + /// + /// ### `keypair` + /// + /// Optional: + /// + /// - **passphrase** (String, Sensitive) Passphrase for private key. + /// - **public_key** (String) Public Key. + /// - **secret_key** (String, Sensitive) Secret/Private Key. + /// + /// <a id="nestedblock--nats-account"></a> + /// + /// ### `nats_account` + /// + /// Required: + /// + /// - **account_id** (String) Account ID. + /// - **private_key** (String) Private Key. + /// + /// <a id="nestedblock--opaque"></a> + /// + /// ### `opaque` + /// + /// Optional: + /// + /// - **encoding** (String) Available encodings: `plain`, `base64`. Default: `plain`. + /// - **payload** (String, Sensitive) Plain text or base64 encoded string. Use `encoding` attribute to specify encoding. + /// + /// <a id="nestedblock--tls"></a> + /// + /// ### `tls` + /// + /// Optional: + /// + /// - **cert** (String) Public Certificate. + /// - **chain** (String) Chain Certificate. + /// - **key** (String, Sensitive) Private Certificate. + /// + /// <a id="nestedblock--userpass"></a> + /// + /// ### `userpass` + /// + /// Optional: + /// + /// - **encoding** (String) Available encodings: `plain`, `base64`. Default: `plain`. + /// - **password** (String, Sensitive) Password. + /// - **username** (String) Username. + /// + /// {{% examples %}} + /// ## Example Usage + /// {{% example %}} + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Cpln = Pulumi.Cpln; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = Cpln.GetSecret.Invoke(new() + /// { + /// Name = "example-secret-opaque", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["example-secret-payload"] = example.Apply(getSecretResult => getSecretResult.Opaque?.Payload), + /// }; + /// }); + /// ``` + /// {{% /example %}} + /// {{% /examples %}} + /// + public static Task InvokeAsync(GetSecretArgs args, InvokeOptions? options = null) + => global::Pulumi.Deployment.Instance.InvokeAsync("cpln:index/getSecret:getSecret", args ?? new GetSecretArgs(), options.WithDefaults()); + + /// + /// Use this data source to access information about a [Secret](https://docs.controlplane.com/reference/secret) within Control Plane. + /// + /// ## Required + /// + /// - **name** (String) Name of the secret. + /// + /// ## Outputs + /// + /// The following attributes are exported: + /// + /// - **cpln_id** (String) The ID, in GUID format, of the secret. + /// - **name** (String) Name of the secret. + /// - **description** (String) Description of the secret. + /// - **tags** (Map of String) Key-value map of resource tags. + /// - **self_link** (String) Full link to this resource. Can be referenced by other resources. + /// - **secret_link** (String) Output used when linking a secret to an environment variable or volume, in the format: `cpln://secret/SECRET_NAME`. + /// - **dictionary_as_envs** (Map of String) If a dictionary secret is defined, this output will be a key-value map in the following format: `key = cpln://secret/SECRET_NAME.key`. + /// - **aws** (Block List, Max: 1) (see below) [Reference Page](https://docs.controlplane.com/reference/secret#aws). + /// - **azure_connector** (Block List, Max: 1) (see below) [Reference Page](https://docs.controlplane.com/reference/secret#azure-connector). + /// - **azure_sdk** (String, Sensitive) JSON string containing the Docker secret. [Reference Page](https://docs.controlplane.com/reference/secret#azure). + /// - **dictionary** (Map of String) List of unique key-value pairs. [Reference Page](https://docs.controlplane.com/reference/secret#dictionary). + /// - **docker** (String, Sensitive) JSON string containing the Docker secret. [Reference Page](https://docs.controlplane.com/reference/secret#docker). + /// - **ecr** (Block List, Max: 1) (see below). + /// - **gcp** (String, Sensitive) JSON string containing the GCP secret. [Reference Page](https://docs.controlplane.com/reference/secret#gcp) + /// - **keypair** (Block List, Max: 1) (see below) [Reference Page](https://docs.controlplane.com/reference/secret#keypair). + /// - **nats_account** (Block List, Max: 1) (see below) [Reference Page](https://docs.controlplane.com/reference/secret#nats-account). + /// - **opaque** (Block List, Max: 1) (see below) [Reference Page](https://docs.controlplane.com/reference/secret#opaque). + /// - **tls** (Block List, Max: 1) (see below) [Reference Page](https://docs.controlplane.com/reference/secret#tls). + /// - **userpass** (Block List, Max: 1) (see below) [Reference Page](https://docs.controlplane.com/reference/secret#username). + /// + /// <a id="nestedblock--aws"></a> + /// + /// ### `aws` + /// + /// Optional: + /// + /// - **access_key** (String, Sensitive) Access Key provided by AWS. + /// - **role_arn** (String) Role ARN provided by AWS. + /// - **secret_key** (String, Sensitive) Secret Key provided by AWS. + /// - **external_id** (String) AWS IAM Role External ID. + /// + /// <a id="nestedblock--azure_connector"></a> + /// + /// ### `azure_connector` + /// + /// Optional: + /// + /// - **code** (String, Sensitive) Code/Key to authenticate to deployment URL. + /// - **url** (String, Sensitive) Deployment URL. + /// + /// <a id="nestedblock--ecr"></a> + /// + /// ### `ecr` + /// + /// [Reference Page](https://docs.controlplane.com/reference/secret#ecr) + /// + /// Optional: + /// + /// - **access_key** (String) Access Key provided by AWS. + /// - **repos** (Set of String) List of ECR repositories. + /// - **role_arn** (String) Role ARN provided by AWS. + /// - **secret_key** (String, Sensitive) Secret Key provided by AWS. + /// - **external_id** (String) AWS IAM Role External ID. Used when setting up cross-account access to your ECR repositories. + /// + /// <a id="nestedblock--keypair"></a> + /// + /// ### `keypair` + /// + /// Optional: + /// + /// - **passphrase** (String, Sensitive) Passphrase for private key. + /// - **public_key** (String) Public Key. + /// - **secret_key** (String, Sensitive) Secret/Private Key. + /// + /// <a id="nestedblock--nats-account"></a> + /// + /// ### `nats_account` + /// + /// Required: + /// + /// - **account_id** (String) Account ID. + /// - **private_key** (String) Private Key. + /// + /// <a id="nestedblock--opaque"></a> + /// + /// ### `opaque` + /// + /// Optional: + /// + /// - **encoding** (String) Available encodings: `plain`, `base64`. Default: `plain`. + /// - **payload** (String, Sensitive) Plain text or base64 encoded string. Use `encoding` attribute to specify encoding. + /// + /// <a id="nestedblock--tls"></a> + /// + /// ### `tls` + /// + /// Optional: + /// + /// - **cert** (String) Public Certificate. + /// - **chain** (String) Chain Certificate. + /// - **key** (String, Sensitive) Private Certificate. + /// + /// <a id="nestedblock--userpass"></a> + /// + /// ### `userpass` + /// + /// Optional: + /// + /// - **encoding** (String) Available encodings: `plain`, `base64`. Default: `plain`. + /// - **password** (String, Sensitive) Password. + /// - **username** (String) Username. + /// + /// {{% examples %}} + /// ## Example Usage + /// {{% example %}} + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Cpln = Pulumi.Cpln; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = Cpln.GetSecret.Invoke(new() + /// { + /// Name = "example-secret-opaque", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["example-secret-payload"] = example.Apply(getSecretResult => getSecretResult.Opaque?.Payload), + /// }; + /// }); + /// ``` + /// {{% /example %}} + /// {{% /examples %}} + /// + public static Output Invoke(GetSecretInvokeArgs args, InvokeOptions? options = null) + => global::Pulumi.Deployment.Instance.Invoke("cpln:index/getSecret:getSecret", args ?? new GetSecretInvokeArgs(), options.WithDefaults()); + } + + + public sealed class GetSecretArgs : global::Pulumi.InvokeArgs + { + [Input("aws")] + public Inputs.GetSecretAwsArgs? Aws { get; set; } + + [Input("azureConnector")] + public Inputs.GetSecretAzureConnectorArgs? AzureConnector { get; set; } + + [Input("azureSdk")] + private string? _azureSdk; + public string? AzureSdk + { + get => _azureSdk; + set => _azureSdk = value; + } + + [Input("description")] + public string? Description { get; set; } + + [Input("dictionary")] + private Dictionary? _dictionary; + public Dictionary Dictionary + { + get => _dictionary ?? (_dictionary = new Dictionary()); + set => _dictionary = value; + } + + [Input("docker")] + private string? _docker; + public string? Docker + { + get => _docker; + set => _docker = value; + } + + [Input("ecr")] + public Inputs.GetSecretEcrArgs? Ecr { get; set; } + + [Input("gcp")] + private string? _gcp; + public string? Gcp + { + get => _gcp; + set => _gcp = value; + } + + [Input("keypair")] + public Inputs.GetSecretKeypairArgs? Keypair { get; set; } + + [Input("name", required: true)] + public string Name { get; set; } = null!; + + [Input("natsAccount")] + public Inputs.GetSecretNatsAccountArgs? NatsAccount { get; set; } + + [Input("opaque")] + public Inputs.GetSecretOpaqueArgs? Opaque { get; set; } + + [Input("tags")] + private Dictionary? _tags; + public Dictionary Tags + { + get => _tags ?? (_tags = new Dictionary()); + set => _tags = value; + } + + [Input("tls")] + public Inputs.GetSecretTlsArgs? Tls { get; set; } + + [Input("userpass")] + public Inputs.GetSecretUserpassArgs? Userpass { get; set; } + + public GetSecretArgs() + { + } + public static new GetSecretArgs Empty => new GetSecretArgs(); + } + + public sealed class GetSecretInvokeArgs : global::Pulumi.InvokeArgs + { + [Input("aws")] + public Input? Aws { get; set; } + + [Input("azureConnector")] + public Input? AzureConnector { get; set; } + + [Input("azureSdk")] + private Input? _azureSdk; + public Input? AzureSdk + { + get => _azureSdk; + set + { + var emptySecret = Output.CreateSecret(0); + _azureSdk = Output.Tuple?, int>(value, emptySecret).Apply(t => t.Item1); + } + } + + [Input("description")] + public Input? Description { get; set; } + + [Input("dictionary")] + private InputMap? _dictionary; + public InputMap Dictionary + { + get => _dictionary ?? (_dictionary = new InputMap()); + set => _dictionary = value; + } + + [Input("docker")] + private Input? _docker; + public Input? Docker + { + get => _docker; + set + { + var emptySecret = Output.CreateSecret(0); + _docker = Output.Tuple?, int>(value, emptySecret).Apply(t => t.Item1); + } + } + + [Input("ecr")] + public Input? Ecr { get; set; } + + [Input("gcp")] + private Input? _gcp; + public Input? Gcp + { + get => _gcp; + set + { + var emptySecret = Output.CreateSecret(0); + _gcp = Output.Tuple?, int>(value, emptySecret).Apply(t => t.Item1); + } + } + + [Input("keypair")] + public Input? Keypair { get; set; } + + [Input("name", required: true)] + public Input Name { get; set; } = null!; + + [Input("natsAccount")] + public Input? NatsAccount { get; set; } + + [Input("opaque")] + public Input? Opaque { get; set; } + + [Input("tags")] + private InputMap? _tags; + public InputMap Tags + { + get => _tags ?? (_tags = new InputMap()); + set => _tags = value; + } + + [Input("tls")] + public Input? Tls { get; set; } + + [Input("userpass")] + public Input? Userpass { get; set; } + + public GetSecretInvokeArgs() + { + } + public static new GetSecretInvokeArgs Empty => new GetSecretInvokeArgs(); + } + + + [OutputType] + public sealed class GetSecretResult + { + public readonly Outputs.GetSecretAwsResult? Aws; + public readonly Outputs.GetSecretAzureConnectorResult? AzureConnector; + public readonly string? AzureSdk; + public readonly string CplnId; + public readonly string? Description; + public readonly ImmutableDictionary? Dictionary; + public readonly ImmutableDictionary DictionaryAsEnvs; + public readonly string? Docker; + public readonly Outputs.GetSecretEcrResult? Ecr; + public readonly string? Gcp; + /// + /// The provider-assigned unique ID for this managed resource. + /// + public readonly string Id; + public readonly Outputs.GetSecretKeypairResult? Keypair; + public readonly string Name; + public readonly Outputs.GetSecretNatsAccountResult? NatsAccount; + public readonly Outputs.GetSecretOpaqueResult? Opaque; + public readonly string SecretLink; + public readonly string SelfLink; + public readonly ImmutableDictionary? Tags; + public readonly Outputs.GetSecretTlsResult? Tls; + public readonly Outputs.GetSecretUserpassResult? Userpass; + + [OutputConstructor] + private GetSecretResult( + Outputs.GetSecretAwsResult? aws, + + Outputs.GetSecretAzureConnectorResult? azureConnector, + + string? azureSdk, + + string cplnId, + + string? description, + + ImmutableDictionary? dictionary, + + ImmutableDictionary dictionaryAsEnvs, + + string? docker, + + Outputs.GetSecretEcrResult? ecr, + + string? gcp, + + string id, + + Outputs.GetSecretKeypairResult? keypair, + + string name, + + Outputs.GetSecretNatsAccountResult? natsAccount, + + Outputs.GetSecretOpaqueResult? opaque, + + string secretLink, + + string selfLink, + + ImmutableDictionary? tags, + + Outputs.GetSecretTlsResult? tls, + + Outputs.GetSecretUserpassResult? userpass) + { + Aws = aws; + AzureConnector = azureConnector; + AzureSdk = azureSdk; + CplnId = cplnId; + Description = description; + Dictionary = dictionary; + DictionaryAsEnvs = dictionaryAsEnvs; + Docker = docker; + Ecr = ecr; + Gcp = gcp; + Id = id; + Keypair = keypair; + Name = name; + NatsAccount = natsAccount; + Opaque = opaque; + SecretLink = secretLink; + SelfLink = selfLink; + Tags = tags; + Tls = tls; + Userpass = userpass; + } + } +} diff --git a/sdk/dotnet/Inputs/GetSecretAws.cs b/sdk/dotnet/Inputs/GetSecretAws.cs new file mode 100644 index 0000000..b8f3968 --- /dev/null +++ b/sdk/dotnet/Inputs/GetSecretAws.cs @@ -0,0 +1,43 @@ +// *** 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; +using Pulumi; + +namespace Pulumiverse.Cpln.Inputs +{ + + public sealed class GetSecretAwsArgs : global::Pulumi.InvokeArgs + { + [Input("accessKey", required: true)] + private string? _accessKey; + public string? AccessKey + { + get => _accessKey; + set => _accessKey = value; + } + + [Input("externalId")] + public string? ExternalId { get; set; } + + [Input("roleArn")] + public string? RoleArn { get; set; } + + [Input("secretKey", required: true)] + private string? _secretKey; + public string? SecretKey + { + get => _secretKey; + set => _secretKey = value; + } + + public GetSecretAwsArgs() + { + } + public static new GetSecretAwsArgs Empty => new GetSecretAwsArgs(); + } +} diff --git a/sdk/dotnet/Inputs/GetSecretAwsArgs.cs b/sdk/dotnet/Inputs/GetSecretAwsArgs.cs new file mode 100644 index 0000000..3f15a9b --- /dev/null +++ b/sdk/dotnet/Inputs/GetSecretAwsArgs.cs @@ -0,0 +1,51 @@ +// *** 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; +using Pulumi; + +namespace Pulumiverse.Cpln.Inputs +{ + + public sealed class GetSecretAwsInputArgs : global::Pulumi.ResourceArgs + { + [Input("accessKey", required: true)] + private Input? _accessKey; + public Input? AccessKey + { + get => _accessKey; + set + { + var emptySecret = Output.CreateSecret(0); + _accessKey = Output.Tuple?, int>(value, emptySecret).Apply(t => t.Item1); + } + } + + [Input("externalId")] + public Input? ExternalId { get; set; } + + [Input("roleArn")] + public Input? RoleArn { get; set; } + + [Input("secretKey", required: true)] + private Input? _secretKey; + public Input? SecretKey + { + get => _secretKey; + set + { + var emptySecret = Output.CreateSecret(0); + _secretKey = Output.Tuple?, int>(value, emptySecret).Apply(t => t.Item1); + } + } + + public GetSecretAwsInputArgs() + { + } + public static new GetSecretAwsInputArgs Empty => new GetSecretAwsInputArgs(); + } +} diff --git a/sdk/dotnet/Inputs/GetSecretAzureConnector.cs b/sdk/dotnet/Inputs/GetSecretAzureConnector.cs new file mode 100644 index 0000000..6edc741 --- /dev/null +++ b/sdk/dotnet/Inputs/GetSecretAzureConnector.cs @@ -0,0 +1,37 @@ +// *** 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; +using Pulumi; + +namespace Pulumiverse.Cpln.Inputs +{ + + public sealed class GetSecretAzureConnectorArgs : global::Pulumi.InvokeArgs + { + [Input("code", required: true)] + private string? _code; + public string? Code + { + get => _code; + set => _code = value; + } + + [Input("url", required: true)] + private string? _url; + public string? Url + { + get => _url; + set => _url = value; + } + + public GetSecretAzureConnectorArgs() + { + } + public static new GetSecretAzureConnectorArgs Empty => new GetSecretAzureConnectorArgs(); + } +} diff --git a/sdk/dotnet/Inputs/GetSecretAzureConnectorArgs.cs b/sdk/dotnet/Inputs/GetSecretAzureConnectorArgs.cs new file mode 100644 index 0000000..16f2a7c --- /dev/null +++ b/sdk/dotnet/Inputs/GetSecretAzureConnectorArgs.cs @@ -0,0 +1,45 @@ +// *** 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; +using Pulumi; + +namespace Pulumiverse.Cpln.Inputs +{ + + public sealed class GetSecretAzureConnectorInputArgs : global::Pulumi.ResourceArgs + { + [Input("code", required: true)] + private Input? _code; + public Input? Code + { + get => _code; + set + { + var emptySecret = Output.CreateSecret(0); + _code = Output.Tuple?, int>(value, emptySecret).Apply(t => t.Item1); + } + } + + [Input("url", required: true)] + private Input? _url; + public Input? Url + { + get => _url; + set + { + var emptySecret = Output.CreateSecret(0); + _url = Output.Tuple?, int>(value, emptySecret).Apply(t => t.Item1); + } + } + + public GetSecretAzureConnectorInputArgs() + { + } + public static new GetSecretAzureConnectorInputArgs Empty => new GetSecretAzureConnectorInputArgs(); + } +} diff --git a/sdk/dotnet/Inputs/GetSecretEcr.cs b/sdk/dotnet/Inputs/GetSecretEcr.cs new file mode 100644 index 0000000..2268a3d --- /dev/null +++ b/sdk/dotnet/Inputs/GetSecretEcr.cs @@ -0,0 +1,46 @@ +// *** 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; +using Pulumi; + +namespace Pulumiverse.Cpln.Inputs +{ + + public sealed class GetSecretEcrArgs : global::Pulumi.InvokeArgs + { + [Input("accessKey", required: true)] + public string AccessKey { get; set; } = null!; + + [Input("externalId")] + public string? ExternalId { get; set; } + + [Input("repos", required: true)] + private List? _repos; + public List Repos + { + get => _repos ?? (_repos = new List()); + set => _repos = value; + } + + [Input("roleArn")] + public string? RoleArn { get; set; } + + [Input("secretKey", required: true)] + private string? _secretKey; + public string? SecretKey + { + get => _secretKey; + set => _secretKey = value; + } + + public GetSecretEcrArgs() + { + } + public static new GetSecretEcrArgs Empty => new GetSecretEcrArgs(); + } +} diff --git a/sdk/dotnet/Inputs/GetSecretEcrArgs.cs b/sdk/dotnet/Inputs/GetSecretEcrArgs.cs new file mode 100644 index 0000000..3168532 --- /dev/null +++ b/sdk/dotnet/Inputs/GetSecretEcrArgs.cs @@ -0,0 +1,50 @@ +// *** 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; +using Pulumi; + +namespace Pulumiverse.Cpln.Inputs +{ + + public sealed class GetSecretEcrInputArgs : global::Pulumi.ResourceArgs + { + [Input("accessKey", required: true)] + public Input AccessKey { get; set; } = null!; + + [Input("externalId")] + public Input? ExternalId { get; set; } + + [Input("repos", required: true)] + private InputList? _repos; + public InputList Repos + { + get => _repos ?? (_repos = new InputList()); + set => _repos = value; + } + + [Input("roleArn")] + public Input? RoleArn { get; set; } + + [Input("secretKey", required: true)] + private Input? _secretKey; + public Input? SecretKey + { + get => _secretKey; + set + { + var emptySecret = Output.CreateSecret(0); + _secretKey = Output.Tuple?, int>(value, emptySecret).Apply(t => t.Item1); + } + } + + public GetSecretEcrInputArgs() + { + } + public static new GetSecretEcrInputArgs Empty => new GetSecretEcrInputArgs(); + } +} diff --git a/sdk/dotnet/Inputs/GetSecretKeypair.cs b/sdk/dotnet/Inputs/GetSecretKeypair.cs new file mode 100644 index 0000000..3880a2e --- /dev/null +++ b/sdk/dotnet/Inputs/GetSecretKeypair.cs @@ -0,0 +1,40 @@ +// *** 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; +using Pulumi; + +namespace Pulumiverse.Cpln.Inputs +{ + + public sealed class GetSecretKeypairArgs : global::Pulumi.InvokeArgs + { + [Input("passphrase")] + private string? _passphrase; + public string? Passphrase + { + get => _passphrase; + set => _passphrase = value; + } + + [Input("publicKey")] + public string? PublicKey { get; set; } + + [Input("secretKey", required: true)] + private string? _secretKey; + public string? SecretKey + { + get => _secretKey; + set => _secretKey = value; + } + + public GetSecretKeypairArgs() + { + } + public static new GetSecretKeypairArgs Empty => new GetSecretKeypairArgs(); + } +} diff --git a/sdk/dotnet/Inputs/GetSecretKeypairArgs.cs b/sdk/dotnet/Inputs/GetSecretKeypairArgs.cs new file mode 100644 index 0000000..ec205d4 --- /dev/null +++ b/sdk/dotnet/Inputs/GetSecretKeypairArgs.cs @@ -0,0 +1,48 @@ +// *** 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; +using Pulumi; + +namespace Pulumiverse.Cpln.Inputs +{ + + public sealed class GetSecretKeypairInputArgs : global::Pulumi.ResourceArgs + { + [Input("passphrase")] + private Input? _passphrase; + public Input? Passphrase + { + get => _passphrase; + set + { + var emptySecret = Output.CreateSecret(0); + _passphrase = Output.Tuple?, int>(value, emptySecret).Apply(t => t.Item1); + } + } + + [Input("publicKey")] + public Input? PublicKey { get; set; } + + [Input("secretKey", required: true)] + private Input? _secretKey; + public Input? SecretKey + { + get => _secretKey; + set + { + var emptySecret = Output.CreateSecret(0); + _secretKey = Output.Tuple?, int>(value, emptySecret).Apply(t => t.Item1); + } + } + + public GetSecretKeypairInputArgs() + { + } + public static new GetSecretKeypairInputArgs Empty => new GetSecretKeypairInputArgs(); + } +} diff --git a/sdk/dotnet/Inputs/GetSecretNatsAccount.cs b/sdk/dotnet/Inputs/GetSecretNatsAccount.cs new file mode 100644 index 0000000..7599fe2 --- /dev/null +++ b/sdk/dotnet/Inputs/GetSecretNatsAccount.cs @@ -0,0 +1,32 @@ +// *** 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; +using Pulumi; + +namespace Pulumiverse.Cpln.Inputs +{ + + public sealed class GetSecretNatsAccountArgs : global::Pulumi.InvokeArgs + { + [Input("accountId", required: true)] + public string AccountId { get; set; } = null!; + + [Input("privateKey", required: true)] + private string? _privateKey; + public string? PrivateKey + { + get => _privateKey; + set => _privateKey = value; + } + + public GetSecretNatsAccountArgs() + { + } + public static new GetSecretNatsAccountArgs Empty => new GetSecretNatsAccountArgs(); + } +} diff --git a/sdk/dotnet/Inputs/GetSecretNatsAccountArgs.cs b/sdk/dotnet/Inputs/GetSecretNatsAccountArgs.cs new file mode 100644 index 0000000..540671a --- /dev/null +++ b/sdk/dotnet/Inputs/GetSecretNatsAccountArgs.cs @@ -0,0 +1,36 @@ +// *** 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; +using Pulumi; + +namespace Pulumiverse.Cpln.Inputs +{ + + public sealed class GetSecretNatsAccountInputArgs : global::Pulumi.ResourceArgs + { + [Input("accountId", required: true)] + public Input AccountId { get; set; } = null!; + + [Input("privateKey", required: true)] + private Input? _privateKey; + public Input? PrivateKey + { + get => _privateKey; + set + { + var emptySecret = Output.CreateSecret(0); + _privateKey = Output.Tuple?, int>(value, emptySecret).Apply(t => t.Item1); + } + } + + public GetSecretNatsAccountInputArgs() + { + } + public static new GetSecretNatsAccountInputArgs Empty => new GetSecretNatsAccountInputArgs(); + } +} diff --git a/sdk/dotnet/Inputs/GetSecretOpaque.cs b/sdk/dotnet/Inputs/GetSecretOpaque.cs new file mode 100644 index 0000000..b6bb51e --- /dev/null +++ b/sdk/dotnet/Inputs/GetSecretOpaque.cs @@ -0,0 +1,32 @@ +// *** 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; +using Pulumi; + +namespace Pulumiverse.Cpln.Inputs +{ + + public sealed class GetSecretOpaqueArgs : global::Pulumi.InvokeArgs + { + [Input("encoding")] + public string? Encoding { get; set; } + + [Input("payload", required: true)] + private string? _payload; + public string? Payload + { + get => _payload; + set => _payload = value; + } + + public GetSecretOpaqueArgs() + { + } + public static new GetSecretOpaqueArgs Empty => new GetSecretOpaqueArgs(); + } +} diff --git a/sdk/dotnet/Inputs/GetSecretOpaqueArgs.cs b/sdk/dotnet/Inputs/GetSecretOpaqueArgs.cs new file mode 100644 index 0000000..7bfef61 --- /dev/null +++ b/sdk/dotnet/Inputs/GetSecretOpaqueArgs.cs @@ -0,0 +1,36 @@ +// *** 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; +using Pulumi; + +namespace Pulumiverse.Cpln.Inputs +{ + + public sealed class GetSecretOpaqueInputArgs : global::Pulumi.ResourceArgs + { + [Input("encoding")] + public Input? Encoding { get; set; } + + [Input("payload", required: true)] + private Input? _payload; + public Input? Payload + { + get => _payload; + set + { + var emptySecret = Output.CreateSecret(0); + _payload = Output.Tuple?, int>(value, emptySecret).Apply(t => t.Item1); + } + } + + public GetSecretOpaqueInputArgs() + { + } + public static new GetSecretOpaqueInputArgs Empty => new GetSecretOpaqueInputArgs(); + } +} diff --git a/sdk/dotnet/Inputs/GetSecretTls.cs b/sdk/dotnet/Inputs/GetSecretTls.cs new file mode 100644 index 0000000..8ff1303 --- /dev/null +++ b/sdk/dotnet/Inputs/GetSecretTls.cs @@ -0,0 +1,35 @@ +// *** 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; +using Pulumi; + +namespace Pulumiverse.Cpln.Inputs +{ + + public sealed class GetSecretTlsArgs : global::Pulumi.InvokeArgs + { + [Input("cert", required: true)] + public string Cert { get; set; } = null!; + + [Input("chain")] + public string? Chain { get; set; } + + [Input("key", required: true)] + private string? _key; + public string? Key + { + get => _key; + set => _key = value; + } + + public GetSecretTlsArgs() + { + } + public static new GetSecretTlsArgs Empty => new GetSecretTlsArgs(); + } +} diff --git a/sdk/dotnet/Inputs/GetSecretTlsArgs.cs b/sdk/dotnet/Inputs/GetSecretTlsArgs.cs new file mode 100644 index 0000000..6c3388e --- /dev/null +++ b/sdk/dotnet/Inputs/GetSecretTlsArgs.cs @@ -0,0 +1,39 @@ +// *** 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; +using Pulumi; + +namespace Pulumiverse.Cpln.Inputs +{ + + public sealed class GetSecretTlsInputArgs : global::Pulumi.ResourceArgs + { + [Input("cert", required: true)] + public Input Cert { get; set; } = null!; + + [Input("chain")] + public Input? Chain { get; set; } + + [Input("key", required: true)] + private Input? _key; + public Input? Key + { + get => _key; + set + { + var emptySecret = Output.CreateSecret(0); + _key = Output.Tuple?, int>(value, emptySecret).Apply(t => t.Item1); + } + } + + public GetSecretTlsInputArgs() + { + } + public static new GetSecretTlsInputArgs Empty => new GetSecretTlsInputArgs(); + } +} diff --git a/sdk/dotnet/Inputs/GetSecretUserpass.cs b/sdk/dotnet/Inputs/GetSecretUserpass.cs new file mode 100644 index 0000000..0a82667 --- /dev/null +++ b/sdk/dotnet/Inputs/GetSecretUserpass.cs @@ -0,0 +1,35 @@ +// *** 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; +using Pulumi; + +namespace Pulumiverse.Cpln.Inputs +{ + + public sealed class GetSecretUserpassArgs : global::Pulumi.InvokeArgs + { + [Input("encoding")] + public string? Encoding { get; set; } + + [Input("password", required: true)] + private string? _password; + public string? Password + { + get => _password; + set => _password = value; + } + + [Input("username", required: true)] + public string Username { get; set; } = null!; + + public GetSecretUserpassArgs() + { + } + public static new GetSecretUserpassArgs Empty => new GetSecretUserpassArgs(); + } +} diff --git a/sdk/dotnet/Inputs/GetSecretUserpassArgs.cs b/sdk/dotnet/Inputs/GetSecretUserpassArgs.cs new file mode 100644 index 0000000..e9447df --- /dev/null +++ b/sdk/dotnet/Inputs/GetSecretUserpassArgs.cs @@ -0,0 +1,39 @@ +// *** 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; +using Pulumi; + +namespace Pulumiverse.Cpln.Inputs +{ + + public sealed class GetSecretUserpassInputArgs : global::Pulumi.ResourceArgs + { + [Input("encoding")] + public Input? Encoding { get; set; } + + [Input("password", required: true)] + private Input? _password; + public Input? Password + { + get => _password; + set + { + var emptySecret = Output.CreateSecret(0); + _password = Output.Tuple?, int>(value, emptySecret).Apply(t => t.Item1); + } + } + + [Input("username", required: true)] + public Input Username { get; set; } = null!; + + public GetSecretUserpassInputArgs() + { + } + public static new GetSecretUserpassInputArgs Empty => new GetSecretUserpassInputArgs(); + } +} diff --git a/sdk/dotnet/Inputs/WorkloadLoadBalancerArgs.cs b/sdk/dotnet/Inputs/WorkloadLoadBalancerArgs.cs index 840c1f0..ec1467d 100644 --- a/sdk/dotnet/Inputs/WorkloadLoadBalancerArgs.cs +++ b/sdk/dotnet/Inputs/WorkloadLoadBalancerArgs.cs @@ -16,6 +16,9 @@ public sealed class WorkloadLoadBalancerArgs : global::Pulumi.ResourceArgs [Input("direct")] public Input? Direct { get; set; } + [Input("geoLocation")] + public Input? GeoLocation { get; set; } + public WorkloadLoadBalancerArgs() { } diff --git a/sdk/dotnet/Inputs/WorkloadSecurityOptionsGeoLocationGetArgs.cs b/sdk/dotnet/Inputs/WorkloadLoadBalancerGeoLocationArgs.cs similarity index 56% rename from sdk/dotnet/Inputs/WorkloadSecurityOptionsGeoLocationGetArgs.cs rename to sdk/dotnet/Inputs/WorkloadLoadBalancerGeoLocationArgs.cs index 3f5ca89..6043754 100644 --- a/sdk/dotnet/Inputs/WorkloadSecurityOptionsGeoLocationGetArgs.cs +++ b/sdk/dotnet/Inputs/WorkloadLoadBalancerGeoLocationArgs.cs @@ -11,17 +11,17 @@ namespace Pulumiverse.Cpln.Inputs { - public sealed class WorkloadSecurityOptionsGeoLocationGetArgs : global::Pulumi.ResourceArgs + public sealed class WorkloadLoadBalancerGeoLocationArgs : global::Pulumi.ResourceArgs { [Input("enabled")] public Input? Enabled { get; set; } [Input("headers")] - public Input? Headers { get; set; } + public Input? Headers { get; set; } - public WorkloadSecurityOptionsGeoLocationGetArgs() + public WorkloadLoadBalancerGeoLocationArgs() { } - public static new WorkloadSecurityOptionsGeoLocationGetArgs Empty => new WorkloadSecurityOptionsGeoLocationGetArgs(); + public static new WorkloadLoadBalancerGeoLocationArgs Empty => new WorkloadLoadBalancerGeoLocationArgs(); } } diff --git a/sdk/dotnet/Inputs/WorkloadSecurityOptionsGeoLocationArgs.cs b/sdk/dotnet/Inputs/WorkloadLoadBalancerGeoLocationGetArgs.cs similarity index 61% rename from sdk/dotnet/Inputs/WorkloadSecurityOptionsGeoLocationArgs.cs rename to sdk/dotnet/Inputs/WorkloadLoadBalancerGeoLocationGetArgs.cs index 37feb4c..2c509d3 100644 --- a/sdk/dotnet/Inputs/WorkloadSecurityOptionsGeoLocationArgs.cs +++ b/sdk/dotnet/Inputs/WorkloadLoadBalancerGeoLocationGetArgs.cs @@ -11,17 +11,17 @@ namespace Pulumiverse.Cpln.Inputs { - public sealed class WorkloadSecurityOptionsGeoLocationArgs : global::Pulumi.ResourceArgs + public sealed class WorkloadLoadBalancerGeoLocationGetArgs : global::Pulumi.ResourceArgs { [Input("enabled")] public Input? Enabled { get; set; } [Input("headers")] - public Input? Headers { get; set; } + public Input? Headers { get; set; } - public WorkloadSecurityOptionsGeoLocationArgs() + public WorkloadLoadBalancerGeoLocationGetArgs() { } - public static new WorkloadSecurityOptionsGeoLocationArgs Empty => new WorkloadSecurityOptionsGeoLocationArgs(); + public static new WorkloadLoadBalancerGeoLocationGetArgs Empty => new WorkloadLoadBalancerGeoLocationGetArgs(); } } diff --git a/sdk/dotnet/Inputs/WorkloadSecurityOptionsGeoLocationHeadersGetArgs.cs b/sdk/dotnet/Inputs/WorkloadLoadBalancerGeoLocationHeadersArgs.cs similarity index 69% rename from sdk/dotnet/Inputs/WorkloadSecurityOptionsGeoLocationHeadersGetArgs.cs rename to sdk/dotnet/Inputs/WorkloadLoadBalancerGeoLocationHeadersArgs.cs index dc1fe64..6e1acd0 100644 --- a/sdk/dotnet/Inputs/WorkloadSecurityOptionsGeoLocationHeadersGetArgs.cs +++ b/sdk/dotnet/Inputs/WorkloadLoadBalancerGeoLocationHeadersArgs.cs @@ -11,7 +11,7 @@ namespace Pulumiverse.Cpln.Inputs { - public sealed class WorkloadSecurityOptionsGeoLocationHeadersGetArgs : global::Pulumi.ResourceArgs + public sealed class WorkloadLoadBalancerGeoLocationHeadersArgs : global::Pulumi.ResourceArgs { [Input("asn")] public Input? Asn { get; set; } @@ -25,9 +25,9 @@ public sealed class WorkloadSecurityOptionsGeoLocationHeadersGetArgs : global::P [Input("region")] public Input? Region { get; set; } - public WorkloadSecurityOptionsGeoLocationHeadersGetArgs() + public WorkloadLoadBalancerGeoLocationHeadersArgs() { } - public static new WorkloadSecurityOptionsGeoLocationHeadersGetArgs Empty => new WorkloadSecurityOptionsGeoLocationHeadersGetArgs(); + public static new WorkloadLoadBalancerGeoLocationHeadersArgs Empty => new WorkloadLoadBalancerGeoLocationHeadersArgs(); } } diff --git a/sdk/dotnet/Inputs/WorkloadSecurityOptionsGeoLocationHeadersArgs.cs b/sdk/dotnet/Inputs/WorkloadLoadBalancerGeoLocationHeadersGetArgs.cs similarity index 70% rename from sdk/dotnet/Inputs/WorkloadSecurityOptionsGeoLocationHeadersArgs.cs rename to sdk/dotnet/Inputs/WorkloadLoadBalancerGeoLocationHeadersGetArgs.cs index f3f5ca3..0346e82 100644 --- a/sdk/dotnet/Inputs/WorkloadSecurityOptionsGeoLocationHeadersArgs.cs +++ b/sdk/dotnet/Inputs/WorkloadLoadBalancerGeoLocationHeadersGetArgs.cs @@ -11,7 +11,7 @@ namespace Pulumiverse.Cpln.Inputs { - public sealed class WorkloadSecurityOptionsGeoLocationHeadersArgs : global::Pulumi.ResourceArgs + public sealed class WorkloadLoadBalancerGeoLocationHeadersGetArgs : global::Pulumi.ResourceArgs { [Input("asn")] public Input? Asn { get; set; } @@ -25,9 +25,9 @@ public sealed class WorkloadSecurityOptionsGeoLocationHeadersArgs : global::Pulu [Input("region")] public Input? Region { get; set; } - public WorkloadSecurityOptionsGeoLocationHeadersArgs() + public WorkloadLoadBalancerGeoLocationHeadersGetArgs() { } - public static new WorkloadSecurityOptionsGeoLocationHeadersArgs Empty => new WorkloadSecurityOptionsGeoLocationHeadersArgs(); + public static new WorkloadLoadBalancerGeoLocationHeadersGetArgs Empty => new WorkloadLoadBalancerGeoLocationHeadersGetArgs(); } } diff --git a/sdk/dotnet/Inputs/WorkloadLoadBalancerGetArgs.cs b/sdk/dotnet/Inputs/WorkloadLoadBalancerGetArgs.cs index f5d5800..35c05ae 100644 --- a/sdk/dotnet/Inputs/WorkloadLoadBalancerGetArgs.cs +++ b/sdk/dotnet/Inputs/WorkloadLoadBalancerGetArgs.cs @@ -16,6 +16,9 @@ public sealed class WorkloadLoadBalancerGetArgs : global::Pulumi.ResourceArgs [Input("direct")] public Input? Direct { get; set; } + [Input("geoLocation")] + public Input? GeoLocation { get; set; } + public WorkloadLoadBalancerGetArgs() { } diff --git a/sdk/dotnet/Inputs/WorkloadSecurityOptionsArgs.cs b/sdk/dotnet/Inputs/WorkloadSecurityOptionsArgs.cs index 098e224..6ad337f 100644 --- a/sdk/dotnet/Inputs/WorkloadSecurityOptionsArgs.cs +++ b/sdk/dotnet/Inputs/WorkloadSecurityOptionsArgs.cs @@ -16,9 +16,6 @@ public sealed class WorkloadSecurityOptionsArgs : global::Pulumi.ResourceArgs [Input("fileSystemGroupId")] public Input? FileSystemGroupId { get; set; } - [Input("geoLocation")] - public Input? GeoLocation { get; set; } - public WorkloadSecurityOptionsArgs() { } diff --git a/sdk/dotnet/Inputs/WorkloadSecurityOptionsGetArgs.cs b/sdk/dotnet/Inputs/WorkloadSecurityOptionsGetArgs.cs index fcfb64f..1428179 100644 --- a/sdk/dotnet/Inputs/WorkloadSecurityOptionsGetArgs.cs +++ b/sdk/dotnet/Inputs/WorkloadSecurityOptionsGetArgs.cs @@ -16,9 +16,6 @@ public sealed class WorkloadSecurityOptionsGetArgs : global::Pulumi.ResourceArgs [Input("fileSystemGroupId")] public Input? FileSystemGroupId { get; set; } - [Input("geoLocation")] - public Input? GeoLocation { get; set; } - public WorkloadSecurityOptionsGetArgs() { } diff --git a/sdk/dotnet/Outputs/GetSecretAwsResult.cs b/sdk/dotnet/Outputs/GetSecretAwsResult.cs new file mode 100644 index 0000000..2c1275e --- /dev/null +++ b/sdk/dotnet/Outputs/GetSecretAwsResult.cs @@ -0,0 +1,38 @@ +// *** 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; +using Pulumi; + +namespace Pulumiverse.Cpln.Outputs +{ + + [OutputType] + public sealed class GetSecretAwsResult + { + public readonly string AccessKey; + public readonly string? ExternalId; + public readonly string? RoleArn; + public readonly string SecretKey; + + [OutputConstructor] + private GetSecretAwsResult( + string accessKey, + + string? externalId, + + string? roleArn, + + string secretKey) + { + AccessKey = accessKey; + ExternalId = externalId; + RoleArn = roleArn; + SecretKey = secretKey; + } + } +} diff --git a/sdk/dotnet/Outputs/GetSecretAzureConnectorResult.cs b/sdk/dotnet/Outputs/GetSecretAzureConnectorResult.cs new file mode 100644 index 0000000..8415587 --- /dev/null +++ b/sdk/dotnet/Outputs/GetSecretAzureConnectorResult.cs @@ -0,0 +1,30 @@ +// *** 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; +using Pulumi; + +namespace Pulumiverse.Cpln.Outputs +{ + + [OutputType] + public sealed class GetSecretAzureConnectorResult + { + public readonly string Code; + public readonly string Url; + + [OutputConstructor] + private GetSecretAzureConnectorResult( + string code, + + string url) + { + Code = code; + Url = url; + } + } +} diff --git a/sdk/dotnet/Outputs/GetSecretEcrResult.cs b/sdk/dotnet/Outputs/GetSecretEcrResult.cs new file mode 100644 index 0000000..018ed1e --- /dev/null +++ b/sdk/dotnet/Outputs/GetSecretEcrResult.cs @@ -0,0 +1,42 @@ +// *** 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; +using Pulumi; + +namespace Pulumiverse.Cpln.Outputs +{ + + [OutputType] + public sealed class GetSecretEcrResult + { + public readonly string AccessKey; + public readonly string? ExternalId; + public readonly ImmutableArray Repos; + public readonly string? RoleArn; + public readonly string SecretKey; + + [OutputConstructor] + private GetSecretEcrResult( + string accessKey, + + string? externalId, + + ImmutableArray repos, + + string? roleArn, + + string secretKey) + { + AccessKey = accessKey; + ExternalId = externalId; + Repos = repos; + RoleArn = roleArn; + SecretKey = secretKey; + } + } +} diff --git a/sdk/dotnet/Outputs/GetSecretKeypairResult.cs b/sdk/dotnet/Outputs/GetSecretKeypairResult.cs new file mode 100644 index 0000000..42c340b --- /dev/null +++ b/sdk/dotnet/Outputs/GetSecretKeypairResult.cs @@ -0,0 +1,34 @@ +// *** 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; +using Pulumi; + +namespace Pulumiverse.Cpln.Outputs +{ + + [OutputType] + public sealed class GetSecretKeypairResult + { + public readonly string? Passphrase; + public readonly string? PublicKey; + public readonly string SecretKey; + + [OutputConstructor] + private GetSecretKeypairResult( + string? passphrase, + + string? publicKey, + + string secretKey) + { + Passphrase = passphrase; + PublicKey = publicKey; + SecretKey = secretKey; + } + } +} diff --git a/sdk/dotnet/Outputs/GetSecretNatsAccountResult.cs b/sdk/dotnet/Outputs/GetSecretNatsAccountResult.cs new file mode 100644 index 0000000..c28a3b3 --- /dev/null +++ b/sdk/dotnet/Outputs/GetSecretNatsAccountResult.cs @@ -0,0 +1,30 @@ +// *** 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; +using Pulumi; + +namespace Pulumiverse.Cpln.Outputs +{ + + [OutputType] + public sealed class GetSecretNatsAccountResult + { + public readonly string AccountId; + public readonly string PrivateKey; + + [OutputConstructor] + private GetSecretNatsAccountResult( + string accountId, + + string privateKey) + { + AccountId = accountId; + PrivateKey = privateKey; + } + } +} diff --git a/sdk/dotnet/Outputs/GetSecretOpaqueResult.cs b/sdk/dotnet/Outputs/GetSecretOpaqueResult.cs new file mode 100644 index 0000000..190a97f --- /dev/null +++ b/sdk/dotnet/Outputs/GetSecretOpaqueResult.cs @@ -0,0 +1,30 @@ +// *** 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; +using Pulumi; + +namespace Pulumiverse.Cpln.Outputs +{ + + [OutputType] + public sealed class GetSecretOpaqueResult + { + public readonly string? Encoding; + public readonly string Payload; + + [OutputConstructor] + private GetSecretOpaqueResult( + string? encoding, + + string payload) + { + Encoding = encoding; + Payload = payload; + } + } +} diff --git a/sdk/dotnet/Outputs/GetSecretTlsResult.cs b/sdk/dotnet/Outputs/GetSecretTlsResult.cs new file mode 100644 index 0000000..419fa79 --- /dev/null +++ b/sdk/dotnet/Outputs/GetSecretTlsResult.cs @@ -0,0 +1,34 @@ +// *** 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; +using Pulumi; + +namespace Pulumiverse.Cpln.Outputs +{ + + [OutputType] + public sealed class GetSecretTlsResult + { + public readonly string Cert; + public readonly string? Chain; + public readonly string Key; + + [OutputConstructor] + private GetSecretTlsResult( + string cert, + + string? chain, + + string key) + { + Cert = cert; + Chain = chain; + Key = key; + } + } +} diff --git a/sdk/dotnet/Outputs/GetSecretUserpassResult.cs b/sdk/dotnet/Outputs/GetSecretUserpassResult.cs new file mode 100644 index 0000000..ddfa815 --- /dev/null +++ b/sdk/dotnet/Outputs/GetSecretUserpassResult.cs @@ -0,0 +1,34 @@ +// *** 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; +using Pulumi; + +namespace Pulumiverse.Cpln.Outputs +{ + + [OutputType] + public sealed class GetSecretUserpassResult + { + public readonly string? Encoding; + public readonly string Password; + public readonly string Username; + + [OutputConstructor] + private GetSecretUserpassResult( + string? encoding, + + string password, + + string username) + { + Encoding = encoding; + Password = password; + Username = username; + } + } +} diff --git a/sdk/dotnet/Outputs/WorkloadLoadBalancer.cs b/sdk/dotnet/Outputs/WorkloadLoadBalancer.cs index 4827271..7a74b54 100644 --- a/sdk/dotnet/Outputs/WorkloadLoadBalancer.cs +++ b/sdk/dotnet/Outputs/WorkloadLoadBalancer.cs @@ -15,11 +15,16 @@ namespace Pulumiverse.Cpln.Outputs public sealed class WorkloadLoadBalancer { public readonly Outputs.WorkloadLoadBalancerDirect? Direct; + public readonly Outputs.WorkloadLoadBalancerGeoLocation? GeoLocation; [OutputConstructor] - private WorkloadLoadBalancer(Outputs.WorkloadLoadBalancerDirect? direct) + private WorkloadLoadBalancer( + Outputs.WorkloadLoadBalancerDirect? direct, + + Outputs.WorkloadLoadBalancerGeoLocation? geoLocation) { Direct = direct; + GeoLocation = geoLocation; } } } diff --git a/sdk/dotnet/Outputs/WorkloadSecurityOptionsGeoLocation.cs b/sdk/dotnet/Outputs/WorkloadLoadBalancerGeoLocation.cs similarity index 68% rename from sdk/dotnet/Outputs/WorkloadSecurityOptionsGeoLocation.cs rename to sdk/dotnet/Outputs/WorkloadLoadBalancerGeoLocation.cs index dbeb1d4..713c47c 100644 --- a/sdk/dotnet/Outputs/WorkloadSecurityOptionsGeoLocation.cs +++ b/sdk/dotnet/Outputs/WorkloadLoadBalancerGeoLocation.cs @@ -12,16 +12,16 @@ namespace Pulumiverse.Cpln.Outputs { [OutputType] - public sealed class WorkloadSecurityOptionsGeoLocation + public sealed class WorkloadLoadBalancerGeoLocation { public readonly bool? Enabled; - public readonly Outputs.WorkloadSecurityOptionsGeoLocationHeaders? Headers; + public readonly Outputs.WorkloadLoadBalancerGeoLocationHeaders? Headers; [OutputConstructor] - private WorkloadSecurityOptionsGeoLocation( + private WorkloadLoadBalancerGeoLocation( bool? enabled, - Outputs.WorkloadSecurityOptionsGeoLocationHeaders? headers) + Outputs.WorkloadLoadBalancerGeoLocationHeaders? headers) { Enabled = enabled; Headers = headers; diff --git a/sdk/dotnet/Outputs/WorkloadSecurityOptionsGeoLocationHeaders.cs b/sdk/dotnet/Outputs/WorkloadLoadBalancerGeoLocationHeaders.cs similarity index 86% rename from sdk/dotnet/Outputs/WorkloadSecurityOptionsGeoLocationHeaders.cs rename to sdk/dotnet/Outputs/WorkloadLoadBalancerGeoLocationHeaders.cs index 8dd1cd0..025cebf 100644 --- a/sdk/dotnet/Outputs/WorkloadSecurityOptionsGeoLocationHeaders.cs +++ b/sdk/dotnet/Outputs/WorkloadLoadBalancerGeoLocationHeaders.cs @@ -12,7 +12,7 @@ namespace Pulumiverse.Cpln.Outputs { [OutputType] - public sealed class WorkloadSecurityOptionsGeoLocationHeaders + public sealed class WorkloadLoadBalancerGeoLocationHeaders { public readonly string? Asn; public readonly string? City; @@ -20,7 +20,7 @@ public sealed class WorkloadSecurityOptionsGeoLocationHeaders public readonly string? Region; [OutputConstructor] - private WorkloadSecurityOptionsGeoLocationHeaders( + private WorkloadLoadBalancerGeoLocationHeaders( string? asn, string? city, diff --git a/sdk/dotnet/Outputs/WorkloadSecurityOptions.cs b/sdk/dotnet/Outputs/WorkloadSecurityOptions.cs index d96b527..cbe6a40 100644 --- a/sdk/dotnet/Outputs/WorkloadSecurityOptions.cs +++ b/sdk/dotnet/Outputs/WorkloadSecurityOptions.cs @@ -15,16 +15,11 @@ namespace Pulumiverse.Cpln.Outputs public sealed class WorkloadSecurityOptions { public readonly int? FileSystemGroupId; - public readonly Outputs.WorkloadSecurityOptionsGeoLocation? GeoLocation; [OutputConstructor] - private WorkloadSecurityOptions( - int? fileSystemGroupId, - - Outputs.WorkloadSecurityOptionsGeoLocation? geoLocation) + private WorkloadSecurityOptions(int? fileSystemGroupId) { FileSystemGroupId = fileSystemGroupId; - GeoLocation = geoLocation; } } } diff --git a/sdk/go/cpln/getSecret.go b/sdk/go/cpln/getSecret.go new file mode 100644 index 0000000..1c6032a --- /dev/null +++ b/sdk/go/cpln/getSecret.go @@ -0,0 +1,347 @@ +// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT. +// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** + +package cpln + +import ( + "context" + "reflect" + + "github.com/pulumi/pulumi/sdk/v3/go/pulumi" + "github.com/pulumi/pulumi/sdk/v3/go/pulumix" + "github.com/pulumiverse/pulumi-cpln/sdk/go/cpln/internal" +) + +// Use this data source to access information about a [Secret](https://docs.controlplane.com/reference/secret) within Control Plane. +// +// ## Required +// +// - **name** (String) Name of the secret. +// +// ## Outputs +// +// The following attributes are exported: +// +// - **cpln_id** (String) The ID, in GUID format, of the secret. +// - **name** (String) Name of the secret. +// - **description** (String) Description of the secret. +// - **tags** (Map of String) Key-value map of resource tags. +// - **self_link** (String) Full link to this resource. Can be referenced by other resources. +// - **secret_link** (String) Output used when linking a secret to an environment variable or volume, in the format: `cpln://secret/SECRET_NAME`. +// - **dictionary_as_envs** (Map of String) If a dictionary secret is defined, this output will be a key-value map in the following format: `key = cpln://secret/SECRET_NAME.key`. +// - **aws** (Block List, Max: 1) (see below) [Reference Page](https://docs.controlplane.com/reference/secret#aws). +// - **azure_connector** (Block List, Max: 1) (see below) [Reference Page](https://docs.controlplane.com/reference/secret#azure-connector). +// - **azure_sdk** (String, Sensitive) JSON string containing the Docker secret. [Reference Page](https://docs.controlplane.com/reference/secret#azure). +// - **dictionary** (Map of String) List of unique key-value pairs. [Reference Page](https://docs.controlplane.com/reference/secret#dictionary). +// - **docker** (String, Sensitive) JSON string containing the Docker secret. [Reference Page](https://docs.controlplane.com/reference/secret#docker). +// - **ecr** (Block List, Max: 1) (see below). +// - **gcp** (String, Sensitive) JSON string containing the GCP secret. [Reference Page](https://docs.controlplane.com/reference/secret#gcp) +// - **keypair** (Block List, Max: 1) (see below) [Reference Page](https://docs.controlplane.com/reference/secret#keypair). +// - **nats_account** (Block List, Max: 1) (see below) [Reference Page](https://docs.controlplane.com/reference/secret#nats-account). +// - **opaque** (Block List, Max: 1) (see below) [Reference Page](https://docs.controlplane.com/reference/secret#opaque). +// - **tls** (Block List, Max: 1) (see below) [Reference Page](https://docs.controlplane.com/reference/secret#tls). +// - **userpass** (Block List, Max: 1) (see below) [Reference Page](https://docs.controlplane.com/reference/secret#username). +// +// +// +// ### `aws` +// +// Optional: +// +// - **access_key** (String, Sensitive) Access Key provided by AWS. +// - **role_arn** (String) Role ARN provided by AWS. +// - **secret_key** (String, Sensitive) Secret Key provided by AWS. +// - **external_id** (String) AWS IAM Role External ID. +// +// +// +// ### `azureConnector` +// +// Optional: +// +// - **code** (String, Sensitive) Code/Key to authenticate to deployment URL. +// - **url** (String, Sensitive) Deployment URL. +// +// +// +// ### `ecr` +// +// [Reference Page](https://docs.controlplane.com/reference/secret#ecr) +// +// Optional: +// +// - **access_key** (String) Access Key provided by AWS. +// - **repos** (Set of String) List of ECR repositories. +// - **role_arn** (String) Role ARN provided by AWS. +// - **secret_key** (String, Sensitive) Secret Key provided by AWS. +// - **external_id** (String) AWS IAM Role External ID. Used when setting up cross-account access to your ECR repositories. +// +// +// +// ### `keypair` +// +// Optional: +// +// - **passphrase** (String, Sensitive) Passphrase for private key. +// - **public_key** (String) Public Key. +// - **secret_key** (String, Sensitive) Secret/Private Key. +// +// +// +// ### `natsAccount` +// +// Required: +// +// - **account_id** (String) Account ID. +// - **private_key** (String) Private Key. +// +// +// +// ### `opaque` +// +// Optional: +// +// - **encoding** (String) Available encodings: `plain`, `base64`. Default: `plain`. +// - **payload** (String, Sensitive) Plain text or base64 encoded string. Use `encoding` attribute to specify encoding. +// +// +// +// ### `tls` +// +// Optional: +// +// - **cert** (String) Public Certificate. +// - **chain** (String) Chain Certificate. +// - **key** (String, Sensitive) Private Certificate. +// +// +// +// ### `userpass` +// +// Optional: +// +// - **encoding** (String) Available encodings: `plain`, `base64`. Default: `plain`. +// - **password** (String, Sensitive) Password. +// - **username** (String) Username. +// +// ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// "github.com/pulumiverse/pulumi-cpln/sdk/go/cpln" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// example, err := cpln.LookupSecret(ctx, &cpln.LookupSecretArgs{ +// Name: "example-secret-opaque", +// }, nil) +// if err != nil { +// return err +// } +// ctx.Export("example-secret-payload", example.Opaque.Payload) +// return nil +// }) +// } +// +// ``` +func LookupSecret(ctx *pulumi.Context, args *LookupSecretArgs, opts ...pulumi.InvokeOption) (*LookupSecretResult, error) { + opts = internal.PkgInvokeDefaultOpts(opts) + var rv LookupSecretResult + err := ctx.Invoke("cpln:index/getSecret:getSecret", args, &rv, opts...) + if err != nil { + return nil, err + } + return &rv, nil +} + +// A collection of arguments for invoking getSecret. +type LookupSecretArgs struct { + Aws *GetSecretAws `pulumi:"aws"` + AzureConnector *GetSecretAzureConnector `pulumi:"azureConnector"` + AzureSdk *string `pulumi:"azureSdk"` + Description *string `pulumi:"description"` + Dictionary map[string]string `pulumi:"dictionary"` + Docker *string `pulumi:"docker"` + Ecr *GetSecretEcr `pulumi:"ecr"` + Gcp *string `pulumi:"gcp"` + Keypair *GetSecretKeypair `pulumi:"keypair"` + Name string `pulumi:"name"` + NatsAccount *GetSecretNatsAccount `pulumi:"natsAccount"` + Opaque *GetSecretOpaque `pulumi:"opaque"` + Tags map[string]string `pulumi:"tags"` + Tls *GetSecretTls `pulumi:"tls"` + Userpass *GetSecretUserpass `pulumi:"userpass"` +} + +// A collection of values returned by getSecret. +type LookupSecretResult struct { + Aws *GetSecretAws `pulumi:"aws"` + AzureConnector *GetSecretAzureConnector `pulumi:"azureConnector"` + AzureSdk *string `pulumi:"azureSdk"` + CplnId string `pulumi:"cplnId"` + Description *string `pulumi:"description"` + Dictionary map[string]string `pulumi:"dictionary"` + DictionaryAsEnvs map[string]interface{} `pulumi:"dictionaryAsEnvs"` + Docker *string `pulumi:"docker"` + Ecr *GetSecretEcr `pulumi:"ecr"` + Gcp *string `pulumi:"gcp"` + // The provider-assigned unique ID for this managed resource. + Id string `pulumi:"id"` + Keypair *GetSecretKeypair `pulumi:"keypair"` + Name string `pulumi:"name"` + NatsAccount *GetSecretNatsAccount `pulumi:"natsAccount"` + Opaque *GetSecretOpaque `pulumi:"opaque"` + SecretLink string `pulumi:"secretLink"` + SelfLink string `pulumi:"selfLink"` + Tags map[string]string `pulumi:"tags"` + Tls *GetSecretTls `pulumi:"tls"` + Userpass *GetSecretUserpass `pulumi:"userpass"` +} + +func LookupSecretOutput(ctx *pulumi.Context, args LookupSecretOutputArgs, opts ...pulumi.InvokeOption) LookupSecretResultOutput { + return pulumi.ToOutputWithContext(context.Background(), args). + ApplyT(func(v interface{}) (LookupSecretResult, error) { + args := v.(LookupSecretArgs) + r, err := LookupSecret(ctx, &args, opts...) + var s LookupSecretResult + if r != nil { + s = *r + } + return s, err + }).(LookupSecretResultOutput) +} + +// A collection of arguments for invoking getSecret. +type LookupSecretOutputArgs struct { + Aws GetSecretAwsPtrInput `pulumi:"aws"` + AzureConnector GetSecretAzureConnectorPtrInput `pulumi:"azureConnector"` + AzureSdk pulumi.StringPtrInput `pulumi:"azureSdk"` + Description pulumi.StringPtrInput `pulumi:"description"` + Dictionary pulumi.StringMapInput `pulumi:"dictionary"` + Docker pulumi.StringPtrInput `pulumi:"docker"` + Ecr GetSecretEcrPtrInput `pulumi:"ecr"` + Gcp pulumi.StringPtrInput `pulumi:"gcp"` + Keypair GetSecretKeypairPtrInput `pulumi:"keypair"` + Name pulumi.StringInput `pulumi:"name"` + NatsAccount GetSecretNatsAccountPtrInput `pulumi:"natsAccount"` + Opaque GetSecretOpaquePtrInput `pulumi:"opaque"` + Tags pulumi.StringMapInput `pulumi:"tags"` + Tls GetSecretTlsPtrInput `pulumi:"tls"` + Userpass GetSecretUserpassPtrInput `pulumi:"userpass"` +} + +func (LookupSecretOutputArgs) ElementType() reflect.Type { + return reflect.TypeOf((*LookupSecretArgs)(nil)).Elem() +} + +// A collection of values returned by getSecret. +type LookupSecretResultOutput struct{ *pulumi.OutputState } + +func (LookupSecretResultOutput) ElementType() reflect.Type { + return reflect.TypeOf((*LookupSecretResult)(nil)).Elem() +} + +func (o LookupSecretResultOutput) ToLookupSecretResultOutput() LookupSecretResultOutput { + return o +} + +func (o LookupSecretResultOutput) ToLookupSecretResultOutputWithContext(ctx context.Context) LookupSecretResultOutput { + return o +} + +func (o LookupSecretResultOutput) ToOutput(ctx context.Context) pulumix.Output[LookupSecretResult] { + return pulumix.Output[LookupSecretResult]{ + OutputState: o.OutputState, + } +} + +func (o LookupSecretResultOutput) Aws() GetSecretAwsPtrOutput { + return o.ApplyT(func(v LookupSecretResult) *GetSecretAws { return v.Aws }).(GetSecretAwsPtrOutput) +} + +func (o LookupSecretResultOutput) AzureConnector() GetSecretAzureConnectorPtrOutput { + return o.ApplyT(func(v LookupSecretResult) *GetSecretAzureConnector { return v.AzureConnector }).(GetSecretAzureConnectorPtrOutput) +} + +func (o LookupSecretResultOutput) AzureSdk() pulumi.StringPtrOutput { + return o.ApplyT(func(v LookupSecretResult) *string { return v.AzureSdk }).(pulumi.StringPtrOutput) +} + +func (o LookupSecretResultOutput) CplnId() pulumi.StringOutput { + return o.ApplyT(func(v LookupSecretResult) string { return v.CplnId }).(pulumi.StringOutput) +} + +func (o LookupSecretResultOutput) Description() pulumi.StringPtrOutput { + return o.ApplyT(func(v LookupSecretResult) *string { return v.Description }).(pulumi.StringPtrOutput) +} + +func (o LookupSecretResultOutput) Dictionary() pulumi.StringMapOutput { + return o.ApplyT(func(v LookupSecretResult) map[string]string { return v.Dictionary }).(pulumi.StringMapOutput) +} + +func (o LookupSecretResultOutput) DictionaryAsEnvs() pulumi.MapOutput { + return o.ApplyT(func(v LookupSecretResult) map[string]interface{} { return v.DictionaryAsEnvs }).(pulumi.MapOutput) +} + +func (o LookupSecretResultOutput) Docker() pulumi.StringPtrOutput { + return o.ApplyT(func(v LookupSecretResult) *string { return v.Docker }).(pulumi.StringPtrOutput) +} + +func (o LookupSecretResultOutput) Ecr() GetSecretEcrPtrOutput { + return o.ApplyT(func(v LookupSecretResult) *GetSecretEcr { return v.Ecr }).(GetSecretEcrPtrOutput) +} + +func (o LookupSecretResultOutput) Gcp() pulumi.StringPtrOutput { + return o.ApplyT(func(v LookupSecretResult) *string { return v.Gcp }).(pulumi.StringPtrOutput) +} + +// The provider-assigned unique ID for this managed resource. +func (o LookupSecretResultOutput) Id() pulumi.StringOutput { + return o.ApplyT(func(v LookupSecretResult) string { return v.Id }).(pulumi.StringOutput) +} + +func (o LookupSecretResultOutput) Keypair() GetSecretKeypairPtrOutput { + return o.ApplyT(func(v LookupSecretResult) *GetSecretKeypair { return v.Keypair }).(GetSecretKeypairPtrOutput) +} + +func (o LookupSecretResultOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v LookupSecretResult) string { return v.Name }).(pulumi.StringOutput) +} + +func (o LookupSecretResultOutput) NatsAccount() GetSecretNatsAccountPtrOutput { + return o.ApplyT(func(v LookupSecretResult) *GetSecretNatsAccount { return v.NatsAccount }).(GetSecretNatsAccountPtrOutput) +} + +func (o LookupSecretResultOutput) Opaque() GetSecretOpaquePtrOutput { + return o.ApplyT(func(v LookupSecretResult) *GetSecretOpaque { return v.Opaque }).(GetSecretOpaquePtrOutput) +} + +func (o LookupSecretResultOutput) SecretLink() pulumi.StringOutput { + return o.ApplyT(func(v LookupSecretResult) string { return v.SecretLink }).(pulumi.StringOutput) +} + +func (o LookupSecretResultOutput) SelfLink() pulumi.StringOutput { + return o.ApplyT(func(v LookupSecretResult) string { return v.SelfLink }).(pulumi.StringOutput) +} + +func (o LookupSecretResultOutput) Tags() pulumi.StringMapOutput { + return o.ApplyT(func(v LookupSecretResult) map[string]string { return v.Tags }).(pulumi.StringMapOutput) +} + +func (o LookupSecretResultOutput) Tls() GetSecretTlsPtrOutput { + return o.ApplyT(func(v LookupSecretResult) *GetSecretTls { return v.Tls }).(GetSecretTlsPtrOutput) +} + +func (o LookupSecretResultOutput) Userpass() GetSecretUserpassPtrOutput { + return o.ApplyT(func(v LookupSecretResult) *GetSecretUserpass { return v.Userpass }).(GetSecretUserpassPtrOutput) +} + +func init() { + pulumi.RegisterOutputType(LookupSecretResultOutput{}) +} diff --git a/sdk/go/cpln/pulumiTypes.go b/sdk/go/cpln/pulumiTypes.go index 3de32a3..688a8a3 100644 --- a/sdk/go/cpln/pulumiTypes.go +++ b/sdk/go/cpln/pulumiTypes.go @@ -23795,7 +23795,8 @@ func (o WorkloadJobPtrOutput) Schedule() pulumi.StringPtrOutput { } type WorkloadLoadBalancer struct { - Direct *WorkloadLoadBalancerDirect `pulumi:"direct"` + Direct *WorkloadLoadBalancerDirect `pulumi:"direct"` + GeoLocation *WorkloadLoadBalancerGeoLocation `pulumi:"geoLocation"` } // WorkloadLoadBalancerInput is an input type that accepts WorkloadLoadBalancerArgs and WorkloadLoadBalancerOutput values. @@ -23810,7 +23811,8 @@ type WorkloadLoadBalancerInput interface { } type WorkloadLoadBalancerArgs struct { - Direct WorkloadLoadBalancerDirectPtrInput `pulumi:"direct"` + Direct WorkloadLoadBalancerDirectPtrInput `pulumi:"direct"` + GeoLocation WorkloadLoadBalancerGeoLocationPtrInput `pulumi:"geoLocation"` } func (WorkloadLoadBalancerArgs) ElementType() reflect.Type { @@ -23912,6 +23914,10 @@ func (o WorkloadLoadBalancerOutput) Direct() WorkloadLoadBalancerDirectPtrOutput return o.ApplyT(func(v WorkloadLoadBalancer) *WorkloadLoadBalancerDirect { return v.Direct }).(WorkloadLoadBalancerDirectPtrOutput) } +func (o WorkloadLoadBalancerOutput) GeoLocation() WorkloadLoadBalancerGeoLocationPtrOutput { + return o.ApplyT(func(v WorkloadLoadBalancer) *WorkloadLoadBalancerGeoLocation { return v.GeoLocation }).(WorkloadLoadBalancerGeoLocationPtrOutput) +} + type WorkloadLoadBalancerPtrOutput struct{ *pulumi.OutputState } func (WorkloadLoadBalancerPtrOutput) ElementType() reflect.Type { @@ -23951,6 +23957,15 @@ func (o WorkloadLoadBalancerPtrOutput) Direct() WorkloadLoadBalancerDirectPtrOut }).(WorkloadLoadBalancerDirectPtrOutput) } +func (o WorkloadLoadBalancerPtrOutput) GeoLocation() WorkloadLoadBalancerGeoLocationPtrOutput { + return o.ApplyT(func(v *WorkloadLoadBalancer) *WorkloadLoadBalancerGeoLocation { + if v == nil { + return nil + } + return v.GeoLocation + }).(WorkloadLoadBalancerGeoLocationPtrOutput) +} + type WorkloadLoadBalancerDirect struct { Enabled bool `pulumi:"enabled"` Ports []WorkloadLoadBalancerDirectPort `pulumi:"ports"` @@ -24259,6 +24274,380 @@ func (o WorkloadLoadBalancerDirectPortArrayOutput) Index(i pulumi.IntInput) Work }).(WorkloadLoadBalancerDirectPortOutput) } +type WorkloadLoadBalancerGeoLocation struct { + Enabled *bool `pulumi:"enabled"` + Headers *WorkloadLoadBalancerGeoLocationHeaders `pulumi:"headers"` +} + +// WorkloadLoadBalancerGeoLocationInput is an input type that accepts WorkloadLoadBalancerGeoLocationArgs and WorkloadLoadBalancerGeoLocationOutput values. +// You can construct a concrete instance of `WorkloadLoadBalancerGeoLocationInput` via: +// +// WorkloadLoadBalancerGeoLocationArgs{...} +type WorkloadLoadBalancerGeoLocationInput interface { + pulumi.Input + + ToWorkloadLoadBalancerGeoLocationOutput() WorkloadLoadBalancerGeoLocationOutput + ToWorkloadLoadBalancerGeoLocationOutputWithContext(context.Context) WorkloadLoadBalancerGeoLocationOutput +} + +type WorkloadLoadBalancerGeoLocationArgs struct { + Enabled pulumi.BoolPtrInput `pulumi:"enabled"` + Headers WorkloadLoadBalancerGeoLocationHeadersPtrInput `pulumi:"headers"` +} + +func (WorkloadLoadBalancerGeoLocationArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WorkloadLoadBalancerGeoLocation)(nil)).Elem() +} + +func (i WorkloadLoadBalancerGeoLocationArgs) ToWorkloadLoadBalancerGeoLocationOutput() WorkloadLoadBalancerGeoLocationOutput { + return i.ToWorkloadLoadBalancerGeoLocationOutputWithContext(context.Background()) +} + +func (i WorkloadLoadBalancerGeoLocationArgs) ToWorkloadLoadBalancerGeoLocationOutputWithContext(ctx context.Context) WorkloadLoadBalancerGeoLocationOutput { + return pulumi.ToOutputWithContext(ctx, i).(WorkloadLoadBalancerGeoLocationOutput) +} + +func (i WorkloadLoadBalancerGeoLocationArgs) ToOutput(ctx context.Context) pulumix.Output[WorkloadLoadBalancerGeoLocation] { + return pulumix.Output[WorkloadLoadBalancerGeoLocation]{ + OutputState: i.ToWorkloadLoadBalancerGeoLocationOutputWithContext(ctx).OutputState, + } +} + +func (i WorkloadLoadBalancerGeoLocationArgs) ToWorkloadLoadBalancerGeoLocationPtrOutput() WorkloadLoadBalancerGeoLocationPtrOutput { + return i.ToWorkloadLoadBalancerGeoLocationPtrOutputWithContext(context.Background()) +} + +func (i WorkloadLoadBalancerGeoLocationArgs) ToWorkloadLoadBalancerGeoLocationPtrOutputWithContext(ctx context.Context) WorkloadLoadBalancerGeoLocationPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WorkloadLoadBalancerGeoLocationOutput).ToWorkloadLoadBalancerGeoLocationPtrOutputWithContext(ctx) +} + +// WorkloadLoadBalancerGeoLocationPtrInput is an input type that accepts WorkloadLoadBalancerGeoLocationArgs, WorkloadLoadBalancerGeoLocationPtr and WorkloadLoadBalancerGeoLocationPtrOutput values. +// You can construct a concrete instance of `WorkloadLoadBalancerGeoLocationPtrInput` via: +// +// WorkloadLoadBalancerGeoLocationArgs{...} +// +// or: +// +// nil +type WorkloadLoadBalancerGeoLocationPtrInput interface { + pulumi.Input + + ToWorkloadLoadBalancerGeoLocationPtrOutput() WorkloadLoadBalancerGeoLocationPtrOutput + ToWorkloadLoadBalancerGeoLocationPtrOutputWithContext(context.Context) WorkloadLoadBalancerGeoLocationPtrOutput +} + +type workloadLoadBalancerGeoLocationPtrType WorkloadLoadBalancerGeoLocationArgs + +func WorkloadLoadBalancerGeoLocationPtr(v *WorkloadLoadBalancerGeoLocationArgs) WorkloadLoadBalancerGeoLocationPtrInput { + return (*workloadLoadBalancerGeoLocationPtrType)(v) +} + +func (*workloadLoadBalancerGeoLocationPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WorkloadLoadBalancerGeoLocation)(nil)).Elem() +} + +func (i *workloadLoadBalancerGeoLocationPtrType) ToWorkloadLoadBalancerGeoLocationPtrOutput() WorkloadLoadBalancerGeoLocationPtrOutput { + return i.ToWorkloadLoadBalancerGeoLocationPtrOutputWithContext(context.Background()) +} + +func (i *workloadLoadBalancerGeoLocationPtrType) ToWorkloadLoadBalancerGeoLocationPtrOutputWithContext(ctx context.Context) WorkloadLoadBalancerGeoLocationPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WorkloadLoadBalancerGeoLocationPtrOutput) +} + +func (i *workloadLoadBalancerGeoLocationPtrType) ToOutput(ctx context.Context) pulumix.Output[*WorkloadLoadBalancerGeoLocation] { + return pulumix.Output[*WorkloadLoadBalancerGeoLocation]{ + OutputState: i.ToWorkloadLoadBalancerGeoLocationPtrOutputWithContext(ctx).OutputState, + } +} + +type WorkloadLoadBalancerGeoLocationOutput struct{ *pulumi.OutputState } + +func (WorkloadLoadBalancerGeoLocationOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WorkloadLoadBalancerGeoLocation)(nil)).Elem() +} + +func (o WorkloadLoadBalancerGeoLocationOutput) ToWorkloadLoadBalancerGeoLocationOutput() WorkloadLoadBalancerGeoLocationOutput { + return o +} + +func (o WorkloadLoadBalancerGeoLocationOutput) ToWorkloadLoadBalancerGeoLocationOutputWithContext(ctx context.Context) WorkloadLoadBalancerGeoLocationOutput { + return o +} + +func (o WorkloadLoadBalancerGeoLocationOutput) ToWorkloadLoadBalancerGeoLocationPtrOutput() WorkloadLoadBalancerGeoLocationPtrOutput { + return o.ToWorkloadLoadBalancerGeoLocationPtrOutputWithContext(context.Background()) +} + +func (o WorkloadLoadBalancerGeoLocationOutput) ToWorkloadLoadBalancerGeoLocationPtrOutputWithContext(ctx context.Context) WorkloadLoadBalancerGeoLocationPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WorkloadLoadBalancerGeoLocation) *WorkloadLoadBalancerGeoLocation { + return &v + }).(WorkloadLoadBalancerGeoLocationPtrOutput) +} + +func (o WorkloadLoadBalancerGeoLocationOutput) ToOutput(ctx context.Context) pulumix.Output[WorkloadLoadBalancerGeoLocation] { + return pulumix.Output[WorkloadLoadBalancerGeoLocation]{ + OutputState: o.OutputState, + } +} + +func (o WorkloadLoadBalancerGeoLocationOutput) Enabled() pulumi.BoolPtrOutput { + return o.ApplyT(func(v WorkloadLoadBalancerGeoLocation) *bool { return v.Enabled }).(pulumi.BoolPtrOutput) +} + +func (o WorkloadLoadBalancerGeoLocationOutput) Headers() WorkloadLoadBalancerGeoLocationHeadersPtrOutput { + return o.ApplyT(func(v WorkloadLoadBalancerGeoLocation) *WorkloadLoadBalancerGeoLocationHeaders { return v.Headers }).(WorkloadLoadBalancerGeoLocationHeadersPtrOutput) +} + +type WorkloadLoadBalancerGeoLocationPtrOutput struct{ *pulumi.OutputState } + +func (WorkloadLoadBalancerGeoLocationPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WorkloadLoadBalancerGeoLocation)(nil)).Elem() +} + +func (o WorkloadLoadBalancerGeoLocationPtrOutput) ToWorkloadLoadBalancerGeoLocationPtrOutput() WorkloadLoadBalancerGeoLocationPtrOutput { + return o +} + +func (o WorkloadLoadBalancerGeoLocationPtrOutput) ToWorkloadLoadBalancerGeoLocationPtrOutputWithContext(ctx context.Context) WorkloadLoadBalancerGeoLocationPtrOutput { + return o +} + +func (o WorkloadLoadBalancerGeoLocationPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WorkloadLoadBalancerGeoLocation] { + return pulumix.Output[*WorkloadLoadBalancerGeoLocation]{ + OutputState: o.OutputState, + } +} + +func (o WorkloadLoadBalancerGeoLocationPtrOutput) Elem() WorkloadLoadBalancerGeoLocationOutput { + return o.ApplyT(func(v *WorkloadLoadBalancerGeoLocation) WorkloadLoadBalancerGeoLocation { + if v != nil { + return *v + } + var ret WorkloadLoadBalancerGeoLocation + return ret + }).(WorkloadLoadBalancerGeoLocationOutput) +} + +func (o WorkloadLoadBalancerGeoLocationPtrOutput) Enabled() pulumi.BoolPtrOutput { + return o.ApplyT(func(v *WorkloadLoadBalancerGeoLocation) *bool { + if v == nil { + return nil + } + return v.Enabled + }).(pulumi.BoolPtrOutput) +} + +func (o WorkloadLoadBalancerGeoLocationPtrOutput) Headers() WorkloadLoadBalancerGeoLocationHeadersPtrOutput { + return o.ApplyT(func(v *WorkloadLoadBalancerGeoLocation) *WorkloadLoadBalancerGeoLocationHeaders { + if v == nil { + return nil + } + return v.Headers + }).(WorkloadLoadBalancerGeoLocationHeadersPtrOutput) +} + +type WorkloadLoadBalancerGeoLocationHeaders struct { + Asn *string `pulumi:"asn"` + City *string `pulumi:"city"` + Country *string `pulumi:"country"` + Region *string `pulumi:"region"` +} + +// WorkloadLoadBalancerGeoLocationHeadersInput is an input type that accepts WorkloadLoadBalancerGeoLocationHeadersArgs and WorkloadLoadBalancerGeoLocationHeadersOutput values. +// You can construct a concrete instance of `WorkloadLoadBalancerGeoLocationHeadersInput` via: +// +// WorkloadLoadBalancerGeoLocationHeadersArgs{...} +type WorkloadLoadBalancerGeoLocationHeadersInput interface { + pulumi.Input + + ToWorkloadLoadBalancerGeoLocationHeadersOutput() WorkloadLoadBalancerGeoLocationHeadersOutput + ToWorkloadLoadBalancerGeoLocationHeadersOutputWithContext(context.Context) WorkloadLoadBalancerGeoLocationHeadersOutput +} + +type WorkloadLoadBalancerGeoLocationHeadersArgs struct { + Asn pulumi.StringPtrInput `pulumi:"asn"` + City pulumi.StringPtrInput `pulumi:"city"` + Country pulumi.StringPtrInput `pulumi:"country"` + Region pulumi.StringPtrInput `pulumi:"region"` +} + +func (WorkloadLoadBalancerGeoLocationHeadersArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WorkloadLoadBalancerGeoLocationHeaders)(nil)).Elem() +} + +func (i WorkloadLoadBalancerGeoLocationHeadersArgs) ToWorkloadLoadBalancerGeoLocationHeadersOutput() WorkloadLoadBalancerGeoLocationHeadersOutput { + return i.ToWorkloadLoadBalancerGeoLocationHeadersOutputWithContext(context.Background()) +} + +func (i WorkloadLoadBalancerGeoLocationHeadersArgs) ToWorkloadLoadBalancerGeoLocationHeadersOutputWithContext(ctx context.Context) WorkloadLoadBalancerGeoLocationHeadersOutput { + return pulumi.ToOutputWithContext(ctx, i).(WorkloadLoadBalancerGeoLocationHeadersOutput) +} + +func (i WorkloadLoadBalancerGeoLocationHeadersArgs) ToOutput(ctx context.Context) pulumix.Output[WorkloadLoadBalancerGeoLocationHeaders] { + return pulumix.Output[WorkloadLoadBalancerGeoLocationHeaders]{ + OutputState: i.ToWorkloadLoadBalancerGeoLocationHeadersOutputWithContext(ctx).OutputState, + } +} + +func (i WorkloadLoadBalancerGeoLocationHeadersArgs) ToWorkloadLoadBalancerGeoLocationHeadersPtrOutput() WorkloadLoadBalancerGeoLocationHeadersPtrOutput { + return i.ToWorkloadLoadBalancerGeoLocationHeadersPtrOutputWithContext(context.Background()) +} + +func (i WorkloadLoadBalancerGeoLocationHeadersArgs) ToWorkloadLoadBalancerGeoLocationHeadersPtrOutputWithContext(ctx context.Context) WorkloadLoadBalancerGeoLocationHeadersPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WorkloadLoadBalancerGeoLocationHeadersOutput).ToWorkloadLoadBalancerGeoLocationHeadersPtrOutputWithContext(ctx) +} + +// WorkloadLoadBalancerGeoLocationHeadersPtrInput is an input type that accepts WorkloadLoadBalancerGeoLocationHeadersArgs, WorkloadLoadBalancerGeoLocationHeadersPtr and WorkloadLoadBalancerGeoLocationHeadersPtrOutput values. +// You can construct a concrete instance of `WorkloadLoadBalancerGeoLocationHeadersPtrInput` via: +// +// WorkloadLoadBalancerGeoLocationHeadersArgs{...} +// +// or: +// +// nil +type WorkloadLoadBalancerGeoLocationHeadersPtrInput interface { + pulumi.Input + + ToWorkloadLoadBalancerGeoLocationHeadersPtrOutput() WorkloadLoadBalancerGeoLocationHeadersPtrOutput + ToWorkloadLoadBalancerGeoLocationHeadersPtrOutputWithContext(context.Context) WorkloadLoadBalancerGeoLocationHeadersPtrOutput +} + +type workloadLoadBalancerGeoLocationHeadersPtrType WorkloadLoadBalancerGeoLocationHeadersArgs + +func WorkloadLoadBalancerGeoLocationHeadersPtr(v *WorkloadLoadBalancerGeoLocationHeadersArgs) WorkloadLoadBalancerGeoLocationHeadersPtrInput { + return (*workloadLoadBalancerGeoLocationHeadersPtrType)(v) +} + +func (*workloadLoadBalancerGeoLocationHeadersPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WorkloadLoadBalancerGeoLocationHeaders)(nil)).Elem() +} + +func (i *workloadLoadBalancerGeoLocationHeadersPtrType) ToWorkloadLoadBalancerGeoLocationHeadersPtrOutput() WorkloadLoadBalancerGeoLocationHeadersPtrOutput { + return i.ToWorkloadLoadBalancerGeoLocationHeadersPtrOutputWithContext(context.Background()) +} + +func (i *workloadLoadBalancerGeoLocationHeadersPtrType) ToWorkloadLoadBalancerGeoLocationHeadersPtrOutputWithContext(ctx context.Context) WorkloadLoadBalancerGeoLocationHeadersPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WorkloadLoadBalancerGeoLocationHeadersPtrOutput) +} + +func (i *workloadLoadBalancerGeoLocationHeadersPtrType) ToOutput(ctx context.Context) pulumix.Output[*WorkloadLoadBalancerGeoLocationHeaders] { + return pulumix.Output[*WorkloadLoadBalancerGeoLocationHeaders]{ + OutputState: i.ToWorkloadLoadBalancerGeoLocationHeadersPtrOutputWithContext(ctx).OutputState, + } +} + +type WorkloadLoadBalancerGeoLocationHeadersOutput struct{ *pulumi.OutputState } + +func (WorkloadLoadBalancerGeoLocationHeadersOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WorkloadLoadBalancerGeoLocationHeaders)(nil)).Elem() +} + +func (o WorkloadLoadBalancerGeoLocationHeadersOutput) ToWorkloadLoadBalancerGeoLocationHeadersOutput() WorkloadLoadBalancerGeoLocationHeadersOutput { + return o +} + +func (o WorkloadLoadBalancerGeoLocationHeadersOutput) ToWorkloadLoadBalancerGeoLocationHeadersOutputWithContext(ctx context.Context) WorkloadLoadBalancerGeoLocationHeadersOutput { + return o +} + +func (o WorkloadLoadBalancerGeoLocationHeadersOutput) ToWorkloadLoadBalancerGeoLocationHeadersPtrOutput() WorkloadLoadBalancerGeoLocationHeadersPtrOutput { + return o.ToWorkloadLoadBalancerGeoLocationHeadersPtrOutputWithContext(context.Background()) +} + +func (o WorkloadLoadBalancerGeoLocationHeadersOutput) ToWorkloadLoadBalancerGeoLocationHeadersPtrOutputWithContext(ctx context.Context) WorkloadLoadBalancerGeoLocationHeadersPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WorkloadLoadBalancerGeoLocationHeaders) *WorkloadLoadBalancerGeoLocationHeaders { + return &v + }).(WorkloadLoadBalancerGeoLocationHeadersPtrOutput) +} + +func (o WorkloadLoadBalancerGeoLocationHeadersOutput) ToOutput(ctx context.Context) pulumix.Output[WorkloadLoadBalancerGeoLocationHeaders] { + return pulumix.Output[WorkloadLoadBalancerGeoLocationHeaders]{ + OutputState: o.OutputState, + } +} + +func (o WorkloadLoadBalancerGeoLocationHeadersOutput) Asn() pulumi.StringPtrOutput { + return o.ApplyT(func(v WorkloadLoadBalancerGeoLocationHeaders) *string { return v.Asn }).(pulumi.StringPtrOutput) +} + +func (o WorkloadLoadBalancerGeoLocationHeadersOutput) City() pulumi.StringPtrOutput { + return o.ApplyT(func(v WorkloadLoadBalancerGeoLocationHeaders) *string { return v.City }).(pulumi.StringPtrOutput) +} + +func (o WorkloadLoadBalancerGeoLocationHeadersOutput) Country() pulumi.StringPtrOutput { + return o.ApplyT(func(v WorkloadLoadBalancerGeoLocationHeaders) *string { return v.Country }).(pulumi.StringPtrOutput) +} + +func (o WorkloadLoadBalancerGeoLocationHeadersOutput) Region() pulumi.StringPtrOutput { + return o.ApplyT(func(v WorkloadLoadBalancerGeoLocationHeaders) *string { return v.Region }).(pulumi.StringPtrOutput) +} + +type WorkloadLoadBalancerGeoLocationHeadersPtrOutput struct{ *pulumi.OutputState } + +func (WorkloadLoadBalancerGeoLocationHeadersPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WorkloadLoadBalancerGeoLocationHeaders)(nil)).Elem() +} + +func (o WorkloadLoadBalancerGeoLocationHeadersPtrOutput) ToWorkloadLoadBalancerGeoLocationHeadersPtrOutput() WorkloadLoadBalancerGeoLocationHeadersPtrOutput { + return o +} + +func (o WorkloadLoadBalancerGeoLocationHeadersPtrOutput) ToWorkloadLoadBalancerGeoLocationHeadersPtrOutputWithContext(ctx context.Context) WorkloadLoadBalancerGeoLocationHeadersPtrOutput { + return o +} + +func (o WorkloadLoadBalancerGeoLocationHeadersPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WorkloadLoadBalancerGeoLocationHeaders] { + return pulumix.Output[*WorkloadLoadBalancerGeoLocationHeaders]{ + OutputState: o.OutputState, + } +} + +func (o WorkloadLoadBalancerGeoLocationHeadersPtrOutput) Elem() WorkloadLoadBalancerGeoLocationHeadersOutput { + return o.ApplyT(func(v *WorkloadLoadBalancerGeoLocationHeaders) WorkloadLoadBalancerGeoLocationHeaders { + if v != nil { + return *v + } + var ret WorkloadLoadBalancerGeoLocationHeaders + return ret + }).(WorkloadLoadBalancerGeoLocationHeadersOutput) +} + +func (o WorkloadLoadBalancerGeoLocationHeadersPtrOutput) Asn() pulumi.StringPtrOutput { + return o.ApplyT(func(v *WorkloadLoadBalancerGeoLocationHeaders) *string { + if v == nil { + return nil + } + return v.Asn + }).(pulumi.StringPtrOutput) +} + +func (o WorkloadLoadBalancerGeoLocationHeadersPtrOutput) City() pulumi.StringPtrOutput { + return o.ApplyT(func(v *WorkloadLoadBalancerGeoLocationHeaders) *string { + if v == nil { + return nil + } + return v.City + }).(pulumi.StringPtrOutput) +} + +func (o WorkloadLoadBalancerGeoLocationHeadersPtrOutput) Country() pulumi.StringPtrOutput { + return o.ApplyT(func(v *WorkloadLoadBalancerGeoLocationHeaders) *string { + if v == nil { + return nil + } + return v.Country + }).(pulumi.StringPtrOutput) +} + +func (o WorkloadLoadBalancerGeoLocationHeadersPtrOutput) Region() pulumi.StringPtrOutput { + return o.ApplyT(func(v *WorkloadLoadBalancerGeoLocationHeaders) *string { + if v == nil { + return nil + } + return v.Region + }).(pulumi.StringPtrOutput) +} + type WorkloadLocalOption struct { Autoscaling *WorkloadLocalOptionAutoscaling `pulumi:"autoscaling"` CapacityAi *bool `pulumi:"capacityAi"` @@ -25321,8 +25710,7 @@ func (o WorkloadRolloutOptionsPtrOutput) ScalingPolicy() pulumi.StringPtrOutput } type WorkloadSecurityOptions struct { - FileSystemGroupId *int `pulumi:"fileSystemGroupId"` - GeoLocation *WorkloadSecurityOptionsGeoLocation `pulumi:"geoLocation"` + FileSystemGroupId *int `pulumi:"fileSystemGroupId"` } // WorkloadSecurityOptionsInput is an input type that accepts WorkloadSecurityOptionsArgs and WorkloadSecurityOptionsOutput values. @@ -25337,8 +25725,7 @@ type WorkloadSecurityOptionsInput interface { } type WorkloadSecurityOptionsArgs struct { - FileSystemGroupId pulumi.IntPtrInput `pulumi:"fileSystemGroupId"` - GeoLocation WorkloadSecurityOptionsGeoLocationPtrInput `pulumi:"geoLocation"` + FileSystemGroupId pulumi.IntPtrInput `pulumi:"fileSystemGroupId"` } func (WorkloadSecurityOptionsArgs) ElementType() reflect.Type { @@ -25440,10 +25827,6 @@ func (o WorkloadSecurityOptionsOutput) FileSystemGroupId() pulumi.IntPtrOutput { return o.ApplyT(func(v WorkloadSecurityOptions) *int { return v.FileSystemGroupId }).(pulumi.IntPtrOutput) } -func (o WorkloadSecurityOptionsOutput) GeoLocation() WorkloadSecurityOptionsGeoLocationPtrOutput { - return o.ApplyT(func(v WorkloadSecurityOptions) *WorkloadSecurityOptionsGeoLocation { return v.GeoLocation }).(WorkloadSecurityOptionsGeoLocationPtrOutput) -} - type WorkloadSecurityOptionsPtrOutput struct{ *pulumi.OutputState } func (WorkloadSecurityOptionsPtrOutput) ElementType() reflect.Type { @@ -25483,425 +25866,40 @@ func (o WorkloadSecurityOptionsPtrOutput) FileSystemGroupId() pulumi.IntPtrOutpu }).(pulumi.IntPtrOutput) } -func (o WorkloadSecurityOptionsPtrOutput) GeoLocation() WorkloadSecurityOptionsGeoLocationPtrOutput { - return o.ApplyT(func(v *WorkloadSecurityOptions) *WorkloadSecurityOptionsGeoLocation { - if v == nil { - return nil - } - return v.GeoLocation - }).(WorkloadSecurityOptionsGeoLocationPtrOutput) -} - -type WorkloadSecurityOptionsGeoLocation struct { - Enabled *bool `pulumi:"enabled"` - Headers *WorkloadSecurityOptionsGeoLocationHeaders `pulumi:"headers"` +type WorkloadSidecar struct { + Envoy string `pulumi:"envoy"` } -// WorkloadSecurityOptionsGeoLocationInput is an input type that accepts WorkloadSecurityOptionsGeoLocationArgs and WorkloadSecurityOptionsGeoLocationOutput values. -// You can construct a concrete instance of `WorkloadSecurityOptionsGeoLocationInput` via: +// WorkloadSidecarInput is an input type that accepts WorkloadSidecarArgs and WorkloadSidecarOutput values. +// You can construct a concrete instance of `WorkloadSidecarInput` via: // -// WorkloadSecurityOptionsGeoLocationArgs{...} -type WorkloadSecurityOptionsGeoLocationInput interface { +// WorkloadSidecarArgs{...} +type WorkloadSidecarInput interface { pulumi.Input - ToWorkloadSecurityOptionsGeoLocationOutput() WorkloadSecurityOptionsGeoLocationOutput - ToWorkloadSecurityOptionsGeoLocationOutputWithContext(context.Context) WorkloadSecurityOptionsGeoLocationOutput + ToWorkloadSidecarOutput() WorkloadSidecarOutput + ToWorkloadSidecarOutputWithContext(context.Context) WorkloadSidecarOutput } -type WorkloadSecurityOptionsGeoLocationArgs struct { - Enabled pulumi.BoolPtrInput `pulumi:"enabled"` - Headers WorkloadSecurityOptionsGeoLocationHeadersPtrInput `pulumi:"headers"` +type WorkloadSidecarArgs struct { + Envoy pulumi.StringInput `pulumi:"envoy"` } -func (WorkloadSecurityOptionsGeoLocationArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WorkloadSecurityOptionsGeoLocation)(nil)).Elem() +func (WorkloadSidecarArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WorkloadSidecar)(nil)).Elem() } -func (i WorkloadSecurityOptionsGeoLocationArgs) ToWorkloadSecurityOptionsGeoLocationOutput() WorkloadSecurityOptionsGeoLocationOutput { - return i.ToWorkloadSecurityOptionsGeoLocationOutputWithContext(context.Background()) +func (i WorkloadSidecarArgs) ToWorkloadSidecarOutput() WorkloadSidecarOutput { + return i.ToWorkloadSidecarOutputWithContext(context.Background()) } -func (i WorkloadSecurityOptionsGeoLocationArgs) ToWorkloadSecurityOptionsGeoLocationOutputWithContext(ctx context.Context) WorkloadSecurityOptionsGeoLocationOutput { - return pulumi.ToOutputWithContext(ctx, i).(WorkloadSecurityOptionsGeoLocationOutput) +func (i WorkloadSidecarArgs) ToWorkloadSidecarOutputWithContext(ctx context.Context) WorkloadSidecarOutput { + return pulumi.ToOutputWithContext(ctx, i).(WorkloadSidecarOutput) } -func (i WorkloadSecurityOptionsGeoLocationArgs) ToOutput(ctx context.Context) pulumix.Output[WorkloadSecurityOptionsGeoLocation] { - return pulumix.Output[WorkloadSecurityOptionsGeoLocation]{ - OutputState: i.ToWorkloadSecurityOptionsGeoLocationOutputWithContext(ctx).OutputState, - } -} - -func (i WorkloadSecurityOptionsGeoLocationArgs) ToWorkloadSecurityOptionsGeoLocationPtrOutput() WorkloadSecurityOptionsGeoLocationPtrOutput { - return i.ToWorkloadSecurityOptionsGeoLocationPtrOutputWithContext(context.Background()) -} - -func (i WorkloadSecurityOptionsGeoLocationArgs) ToWorkloadSecurityOptionsGeoLocationPtrOutputWithContext(ctx context.Context) WorkloadSecurityOptionsGeoLocationPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WorkloadSecurityOptionsGeoLocationOutput).ToWorkloadSecurityOptionsGeoLocationPtrOutputWithContext(ctx) -} - -// WorkloadSecurityOptionsGeoLocationPtrInput is an input type that accepts WorkloadSecurityOptionsGeoLocationArgs, WorkloadSecurityOptionsGeoLocationPtr and WorkloadSecurityOptionsGeoLocationPtrOutput values. -// You can construct a concrete instance of `WorkloadSecurityOptionsGeoLocationPtrInput` via: -// -// WorkloadSecurityOptionsGeoLocationArgs{...} -// -// or: -// -// nil -type WorkloadSecurityOptionsGeoLocationPtrInput interface { - pulumi.Input - - ToWorkloadSecurityOptionsGeoLocationPtrOutput() WorkloadSecurityOptionsGeoLocationPtrOutput - ToWorkloadSecurityOptionsGeoLocationPtrOutputWithContext(context.Context) WorkloadSecurityOptionsGeoLocationPtrOutput -} - -type workloadSecurityOptionsGeoLocationPtrType WorkloadSecurityOptionsGeoLocationArgs - -func WorkloadSecurityOptionsGeoLocationPtr(v *WorkloadSecurityOptionsGeoLocationArgs) WorkloadSecurityOptionsGeoLocationPtrInput { - return (*workloadSecurityOptionsGeoLocationPtrType)(v) -} - -func (*workloadSecurityOptionsGeoLocationPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WorkloadSecurityOptionsGeoLocation)(nil)).Elem() -} - -func (i *workloadSecurityOptionsGeoLocationPtrType) ToWorkloadSecurityOptionsGeoLocationPtrOutput() WorkloadSecurityOptionsGeoLocationPtrOutput { - return i.ToWorkloadSecurityOptionsGeoLocationPtrOutputWithContext(context.Background()) -} - -func (i *workloadSecurityOptionsGeoLocationPtrType) ToWorkloadSecurityOptionsGeoLocationPtrOutputWithContext(ctx context.Context) WorkloadSecurityOptionsGeoLocationPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WorkloadSecurityOptionsGeoLocationPtrOutput) -} - -func (i *workloadSecurityOptionsGeoLocationPtrType) ToOutput(ctx context.Context) pulumix.Output[*WorkloadSecurityOptionsGeoLocation] { - return pulumix.Output[*WorkloadSecurityOptionsGeoLocation]{ - OutputState: i.ToWorkloadSecurityOptionsGeoLocationPtrOutputWithContext(ctx).OutputState, - } -} - -type WorkloadSecurityOptionsGeoLocationOutput struct{ *pulumi.OutputState } - -func (WorkloadSecurityOptionsGeoLocationOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WorkloadSecurityOptionsGeoLocation)(nil)).Elem() -} - -func (o WorkloadSecurityOptionsGeoLocationOutput) ToWorkloadSecurityOptionsGeoLocationOutput() WorkloadSecurityOptionsGeoLocationOutput { - return o -} - -func (o WorkloadSecurityOptionsGeoLocationOutput) ToWorkloadSecurityOptionsGeoLocationOutputWithContext(ctx context.Context) WorkloadSecurityOptionsGeoLocationOutput { - return o -} - -func (o WorkloadSecurityOptionsGeoLocationOutput) ToWorkloadSecurityOptionsGeoLocationPtrOutput() WorkloadSecurityOptionsGeoLocationPtrOutput { - return o.ToWorkloadSecurityOptionsGeoLocationPtrOutputWithContext(context.Background()) -} - -func (o WorkloadSecurityOptionsGeoLocationOutput) ToWorkloadSecurityOptionsGeoLocationPtrOutputWithContext(ctx context.Context) WorkloadSecurityOptionsGeoLocationPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WorkloadSecurityOptionsGeoLocation) *WorkloadSecurityOptionsGeoLocation { - return &v - }).(WorkloadSecurityOptionsGeoLocationPtrOutput) -} - -func (o WorkloadSecurityOptionsGeoLocationOutput) ToOutput(ctx context.Context) pulumix.Output[WorkloadSecurityOptionsGeoLocation] { - return pulumix.Output[WorkloadSecurityOptionsGeoLocation]{ - OutputState: o.OutputState, - } -} - -func (o WorkloadSecurityOptionsGeoLocationOutput) Enabled() pulumi.BoolPtrOutput { - return o.ApplyT(func(v WorkloadSecurityOptionsGeoLocation) *bool { return v.Enabled }).(pulumi.BoolPtrOutput) -} - -func (o WorkloadSecurityOptionsGeoLocationOutput) Headers() WorkloadSecurityOptionsGeoLocationHeadersPtrOutput { - return o.ApplyT(func(v WorkloadSecurityOptionsGeoLocation) *WorkloadSecurityOptionsGeoLocationHeaders { - return v.Headers - }).(WorkloadSecurityOptionsGeoLocationHeadersPtrOutput) -} - -type WorkloadSecurityOptionsGeoLocationPtrOutput struct{ *pulumi.OutputState } - -func (WorkloadSecurityOptionsGeoLocationPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WorkloadSecurityOptionsGeoLocation)(nil)).Elem() -} - -func (o WorkloadSecurityOptionsGeoLocationPtrOutput) ToWorkloadSecurityOptionsGeoLocationPtrOutput() WorkloadSecurityOptionsGeoLocationPtrOutput { - return o -} - -func (o WorkloadSecurityOptionsGeoLocationPtrOutput) ToWorkloadSecurityOptionsGeoLocationPtrOutputWithContext(ctx context.Context) WorkloadSecurityOptionsGeoLocationPtrOutput { - return o -} - -func (o WorkloadSecurityOptionsGeoLocationPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WorkloadSecurityOptionsGeoLocation] { - return pulumix.Output[*WorkloadSecurityOptionsGeoLocation]{ - OutputState: o.OutputState, - } -} - -func (o WorkloadSecurityOptionsGeoLocationPtrOutput) Elem() WorkloadSecurityOptionsGeoLocationOutput { - return o.ApplyT(func(v *WorkloadSecurityOptionsGeoLocation) WorkloadSecurityOptionsGeoLocation { - if v != nil { - return *v - } - var ret WorkloadSecurityOptionsGeoLocation - return ret - }).(WorkloadSecurityOptionsGeoLocationOutput) -} - -func (o WorkloadSecurityOptionsGeoLocationPtrOutput) Enabled() pulumi.BoolPtrOutput { - return o.ApplyT(func(v *WorkloadSecurityOptionsGeoLocation) *bool { - if v == nil { - return nil - } - return v.Enabled - }).(pulumi.BoolPtrOutput) -} - -func (o WorkloadSecurityOptionsGeoLocationPtrOutput) Headers() WorkloadSecurityOptionsGeoLocationHeadersPtrOutput { - return o.ApplyT(func(v *WorkloadSecurityOptionsGeoLocation) *WorkloadSecurityOptionsGeoLocationHeaders { - if v == nil { - return nil - } - return v.Headers - }).(WorkloadSecurityOptionsGeoLocationHeadersPtrOutput) -} - -type WorkloadSecurityOptionsGeoLocationHeaders struct { - Asn *string `pulumi:"asn"` - City *string `pulumi:"city"` - Country *string `pulumi:"country"` - Region *string `pulumi:"region"` -} - -// WorkloadSecurityOptionsGeoLocationHeadersInput is an input type that accepts WorkloadSecurityOptionsGeoLocationHeadersArgs and WorkloadSecurityOptionsGeoLocationHeadersOutput values. -// You can construct a concrete instance of `WorkloadSecurityOptionsGeoLocationHeadersInput` via: -// -// WorkloadSecurityOptionsGeoLocationHeadersArgs{...} -type WorkloadSecurityOptionsGeoLocationHeadersInput interface { - pulumi.Input - - ToWorkloadSecurityOptionsGeoLocationHeadersOutput() WorkloadSecurityOptionsGeoLocationHeadersOutput - ToWorkloadSecurityOptionsGeoLocationHeadersOutputWithContext(context.Context) WorkloadSecurityOptionsGeoLocationHeadersOutput -} - -type WorkloadSecurityOptionsGeoLocationHeadersArgs struct { - Asn pulumi.StringPtrInput `pulumi:"asn"` - City pulumi.StringPtrInput `pulumi:"city"` - Country pulumi.StringPtrInput `pulumi:"country"` - Region pulumi.StringPtrInput `pulumi:"region"` -} - -func (WorkloadSecurityOptionsGeoLocationHeadersArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WorkloadSecurityOptionsGeoLocationHeaders)(nil)).Elem() -} - -func (i WorkloadSecurityOptionsGeoLocationHeadersArgs) ToWorkloadSecurityOptionsGeoLocationHeadersOutput() WorkloadSecurityOptionsGeoLocationHeadersOutput { - return i.ToWorkloadSecurityOptionsGeoLocationHeadersOutputWithContext(context.Background()) -} - -func (i WorkloadSecurityOptionsGeoLocationHeadersArgs) ToWorkloadSecurityOptionsGeoLocationHeadersOutputWithContext(ctx context.Context) WorkloadSecurityOptionsGeoLocationHeadersOutput { - return pulumi.ToOutputWithContext(ctx, i).(WorkloadSecurityOptionsGeoLocationHeadersOutput) -} - -func (i WorkloadSecurityOptionsGeoLocationHeadersArgs) ToOutput(ctx context.Context) pulumix.Output[WorkloadSecurityOptionsGeoLocationHeaders] { - return pulumix.Output[WorkloadSecurityOptionsGeoLocationHeaders]{ - OutputState: i.ToWorkloadSecurityOptionsGeoLocationHeadersOutputWithContext(ctx).OutputState, - } -} - -func (i WorkloadSecurityOptionsGeoLocationHeadersArgs) ToWorkloadSecurityOptionsGeoLocationHeadersPtrOutput() WorkloadSecurityOptionsGeoLocationHeadersPtrOutput { - return i.ToWorkloadSecurityOptionsGeoLocationHeadersPtrOutputWithContext(context.Background()) -} - -func (i WorkloadSecurityOptionsGeoLocationHeadersArgs) ToWorkloadSecurityOptionsGeoLocationHeadersPtrOutputWithContext(ctx context.Context) WorkloadSecurityOptionsGeoLocationHeadersPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WorkloadSecurityOptionsGeoLocationHeadersOutput).ToWorkloadSecurityOptionsGeoLocationHeadersPtrOutputWithContext(ctx) -} - -// WorkloadSecurityOptionsGeoLocationHeadersPtrInput is an input type that accepts WorkloadSecurityOptionsGeoLocationHeadersArgs, WorkloadSecurityOptionsGeoLocationHeadersPtr and WorkloadSecurityOptionsGeoLocationHeadersPtrOutput values. -// You can construct a concrete instance of `WorkloadSecurityOptionsGeoLocationHeadersPtrInput` via: -// -// WorkloadSecurityOptionsGeoLocationHeadersArgs{...} -// -// or: -// -// nil -type WorkloadSecurityOptionsGeoLocationHeadersPtrInput interface { - pulumi.Input - - ToWorkloadSecurityOptionsGeoLocationHeadersPtrOutput() WorkloadSecurityOptionsGeoLocationHeadersPtrOutput - ToWorkloadSecurityOptionsGeoLocationHeadersPtrOutputWithContext(context.Context) WorkloadSecurityOptionsGeoLocationHeadersPtrOutput -} - -type workloadSecurityOptionsGeoLocationHeadersPtrType WorkloadSecurityOptionsGeoLocationHeadersArgs - -func WorkloadSecurityOptionsGeoLocationHeadersPtr(v *WorkloadSecurityOptionsGeoLocationHeadersArgs) WorkloadSecurityOptionsGeoLocationHeadersPtrInput { - return (*workloadSecurityOptionsGeoLocationHeadersPtrType)(v) -} - -func (*workloadSecurityOptionsGeoLocationHeadersPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WorkloadSecurityOptionsGeoLocationHeaders)(nil)).Elem() -} - -func (i *workloadSecurityOptionsGeoLocationHeadersPtrType) ToWorkloadSecurityOptionsGeoLocationHeadersPtrOutput() WorkloadSecurityOptionsGeoLocationHeadersPtrOutput { - return i.ToWorkloadSecurityOptionsGeoLocationHeadersPtrOutputWithContext(context.Background()) -} - -func (i *workloadSecurityOptionsGeoLocationHeadersPtrType) ToWorkloadSecurityOptionsGeoLocationHeadersPtrOutputWithContext(ctx context.Context) WorkloadSecurityOptionsGeoLocationHeadersPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WorkloadSecurityOptionsGeoLocationHeadersPtrOutput) -} - -func (i *workloadSecurityOptionsGeoLocationHeadersPtrType) ToOutput(ctx context.Context) pulumix.Output[*WorkloadSecurityOptionsGeoLocationHeaders] { - return pulumix.Output[*WorkloadSecurityOptionsGeoLocationHeaders]{ - OutputState: i.ToWorkloadSecurityOptionsGeoLocationHeadersPtrOutputWithContext(ctx).OutputState, - } -} - -type WorkloadSecurityOptionsGeoLocationHeadersOutput struct{ *pulumi.OutputState } - -func (WorkloadSecurityOptionsGeoLocationHeadersOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WorkloadSecurityOptionsGeoLocationHeaders)(nil)).Elem() -} - -func (o WorkloadSecurityOptionsGeoLocationHeadersOutput) ToWorkloadSecurityOptionsGeoLocationHeadersOutput() WorkloadSecurityOptionsGeoLocationHeadersOutput { - return o -} - -func (o WorkloadSecurityOptionsGeoLocationHeadersOutput) ToWorkloadSecurityOptionsGeoLocationHeadersOutputWithContext(ctx context.Context) WorkloadSecurityOptionsGeoLocationHeadersOutput { - return o -} - -func (o WorkloadSecurityOptionsGeoLocationHeadersOutput) ToWorkloadSecurityOptionsGeoLocationHeadersPtrOutput() WorkloadSecurityOptionsGeoLocationHeadersPtrOutput { - return o.ToWorkloadSecurityOptionsGeoLocationHeadersPtrOutputWithContext(context.Background()) -} - -func (o WorkloadSecurityOptionsGeoLocationHeadersOutput) ToWorkloadSecurityOptionsGeoLocationHeadersPtrOutputWithContext(ctx context.Context) WorkloadSecurityOptionsGeoLocationHeadersPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WorkloadSecurityOptionsGeoLocationHeaders) *WorkloadSecurityOptionsGeoLocationHeaders { - return &v - }).(WorkloadSecurityOptionsGeoLocationHeadersPtrOutput) -} - -func (o WorkloadSecurityOptionsGeoLocationHeadersOutput) ToOutput(ctx context.Context) pulumix.Output[WorkloadSecurityOptionsGeoLocationHeaders] { - return pulumix.Output[WorkloadSecurityOptionsGeoLocationHeaders]{ - OutputState: o.OutputState, - } -} - -func (o WorkloadSecurityOptionsGeoLocationHeadersOutput) Asn() pulumi.StringPtrOutput { - return o.ApplyT(func(v WorkloadSecurityOptionsGeoLocationHeaders) *string { return v.Asn }).(pulumi.StringPtrOutput) -} - -func (o WorkloadSecurityOptionsGeoLocationHeadersOutput) City() pulumi.StringPtrOutput { - return o.ApplyT(func(v WorkloadSecurityOptionsGeoLocationHeaders) *string { return v.City }).(pulumi.StringPtrOutput) -} - -func (o WorkloadSecurityOptionsGeoLocationHeadersOutput) Country() pulumi.StringPtrOutput { - return o.ApplyT(func(v WorkloadSecurityOptionsGeoLocationHeaders) *string { return v.Country }).(pulumi.StringPtrOutput) -} - -func (o WorkloadSecurityOptionsGeoLocationHeadersOutput) Region() pulumi.StringPtrOutput { - return o.ApplyT(func(v WorkloadSecurityOptionsGeoLocationHeaders) *string { return v.Region }).(pulumi.StringPtrOutput) -} - -type WorkloadSecurityOptionsGeoLocationHeadersPtrOutput struct{ *pulumi.OutputState } - -func (WorkloadSecurityOptionsGeoLocationHeadersPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WorkloadSecurityOptionsGeoLocationHeaders)(nil)).Elem() -} - -func (o WorkloadSecurityOptionsGeoLocationHeadersPtrOutput) ToWorkloadSecurityOptionsGeoLocationHeadersPtrOutput() WorkloadSecurityOptionsGeoLocationHeadersPtrOutput { - return o -} - -func (o WorkloadSecurityOptionsGeoLocationHeadersPtrOutput) ToWorkloadSecurityOptionsGeoLocationHeadersPtrOutputWithContext(ctx context.Context) WorkloadSecurityOptionsGeoLocationHeadersPtrOutput { - return o -} - -func (o WorkloadSecurityOptionsGeoLocationHeadersPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WorkloadSecurityOptionsGeoLocationHeaders] { - return pulumix.Output[*WorkloadSecurityOptionsGeoLocationHeaders]{ - OutputState: o.OutputState, - } -} - -func (o WorkloadSecurityOptionsGeoLocationHeadersPtrOutput) Elem() WorkloadSecurityOptionsGeoLocationHeadersOutput { - return o.ApplyT(func(v *WorkloadSecurityOptionsGeoLocationHeaders) WorkloadSecurityOptionsGeoLocationHeaders { - if v != nil { - return *v - } - var ret WorkloadSecurityOptionsGeoLocationHeaders - return ret - }).(WorkloadSecurityOptionsGeoLocationHeadersOutput) -} - -func (o WorkloadSecurityOptionsGeoLocationHeadersPtrOutput) Asn() pulumi.StringPtrOutput { - return o.ApplyT(func(v *WorkloadSecurityOptionsGeoLocationHeaders) *string { - if v == nil { - return nil - } - return v.Asn - }).(pulumi.StringPtrOutput) -} - -func (o WorkloadSecurityOptionsGeoLocationHeadersPtrOutput) City() pulumi.StringPtrOutput { - return o.ApplyT(func(v *WorkloadSecurityOptionsGeoLocationHeaders) *string { - if v == nil { - return nil - } - return v.City - }).(pulumi.StringPtrOutput) -} - -func (o WorkloadSecurityOptionsGeoLocationHeadersPtrOutput) Country() pulumi.StringPtrOutput { - return o.ApplyT(func(v *WorkloadSecurityOptionsGeoLocationHeaders) *string { - if v == nil { - return nil - } - return v.Country - }).(pulumi.StringPtrOutput) -} - -func (o WorkloadSecurityOptionsGeoLocationHeadersPtrOutput) Region() pulumi.StringPtrOutput { - return o.ApplyT(func(v *WorkloadSecurityOptionsGeoLocationHeaders) *string { - if v == nil { - return nil - } - return v.Region - }).(pulumi.StringPtrOutput) -} - -type WorkloadSidecar struct { - Envoy string `pulumi:"envoy"` -} - -// WorkloadSidecarInput is an input type that accepts WorkloadSidecarArgs and WorkloadSidecarOutput values. -// You can construct a concrete instance of `WorkloadSidecarInput` via: -// -// WorkloadSidecarArgs{...} -type WorkloadSidecarInput interface { - pulumi.Input - - ToWorkloadSidecarOutput() WorkloadSidecarOutput - ToWorkloadSidecarOutputWithContext(context.Context) WorkloadSidecarOutput -} - -type WorkloadSidecarArgs struct { - Envoy pulumi.StringInput `pulumi:"envoy"` -} - -func (WorkloadSidecarArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WorkloadSidecar)(nil)).Elem() -} - -func (i WorkloadSidecarArgs) ToWorkloadSidecarOutput() WorkloadSidecarOutput { - return i.ToWorkloadSidecarOutputWithContext(context.Background()) -} - -func (i WorkloadSidecarArgs) ToWorkloadSidecarOutputWithContext(ctx context.Context) WorkloadSidecarOutput { - return pulumi.ToOutputWithContext(ctx, i).(WorkloadSidecarOutput) -} - -func (i WorkloadSidecarArgs) ToOutput(ctx context.Context) pulumix.Output[WorkloadSidecar] { - return pulumix.Output[WorkloadSidecar]{ - OutputState: i.ToWorkloadSidecarOutputWithContext(ctx).OutputState, +func (i WorkloadSidecarArgs) ToOutput(ctx context.Context) pulumix.Output[WorkloadSidecar] { + return pulumix.Output[WorkloadSidecar]{ + OutputState: i.ToWorkloadSidecarOutputWithContext(ctx).OutputState, } } @@ -29651,6 +29649,1502 @@ func (o GetLocationsLocationGeoArrayOutput) Index(i pulumi.IntInput) GetLocation }).(GetLocationsLocationGeoOutput) } +type GetSecretAws struct { + AccessKey string `pulumi:"accessKey"` + ExternalId *string `pulumi:"externalId"` + RoleArn *string `pulumi:"roleArn"` + SecretKey string `pulumi:"secretKey"` +} + +// GetSecretAwsInput is an input type that accepts GetSecretAwsArgs and GetSecretAwsOutput values. +// You can construct a concrete instance of `GetSecretAwsInput` via: +// +// GetSecretAwsArgs{...} +type GetSecretAwsInput interface { + pulumi.Input + + ToGetSecretAwsOutput() GetSecretAwsOutput + ToGetSecretAwsOutputWithContext(context.Context) GetSecretAwsOutput +} + +type GetSecretAwsArgs struct { + AccessKey pulumi.StringInput `pulumi:"accessKey"` + ExternalId pulumi.StringPtrInput `pulumi:"externalId"` + RoleArn pulumi.StringPtrInput `pulumi:"roleArn"` + SecretKey pulumi.StringInput `pulumi:"secretKey"` +} + +func (GetSecretAwsArgs) ElementType() reflect.Type { + return reflect.TypeOf((*GetSecretAws)(nil)).Elem() +} + +func (i GetSecretAwsArgs) ToGetSecretAwsOutput() GetSecretAwsOutput { + return i.ToGetSecretAwsOutputWithContext(context.Background()) +} + +func (i GetSecretAwsArgs) ToGetSecretAwsOutputWithContext(ctx context.Context) GetSecretAwsOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetSecretAwsOutput) +} + +func (i GetSecretAwsArgs) ToOutput(ctx context.Context) pulumix.Output[GetSecretAws] { + return pulumix.Output[GetSecretAws]{ + OutputState: i.ToGetSecretAwsOutputWithContext(ctx).OutputState, + } +} + +func (i GetSecretAwsArgs) ToGetSecretAwsPtrOutput() GetSecretAwsPtrOutput { + return i.ToGetSecretAwsPtrOutputWithContext(context.Background()) +} + +func (i GetSecretAwsArgs) ToGetSecretAwsPtrOutputWithContext(ctx context.Context) GetSecretAwsPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetSecretAwsOutput).ToGetSecretAwsPtrOutputWithContext(ctx) +} + +// GetSecretAwsPtrInput is an input type that accepts GetSecretAwsArgs, GetSecretAwsPtr and GetSecretAwsPtrOutput values. +// You can construct a concrete instance of `GetSecretAwsPtrInput` via: +// +// GetSecretAwsArgs{...} +// +// or: +// +// nil +type GetSecretAwsPtrInput interface { + pulumi.Input + + ToGetSecretAwsPtrOutput() GetSecretAwsPtrOutput + ToGetSecretAwsPtrOutputWithContext(context.Context) GetSecretAwsPtrOutput +} + +type getSecretAwsPtrType GetSecretAwsArgs + +func GetSecretAwsPtr(v *GetSecretAwsArgs) GetSecretAwsPtrInput { + return (*getSecretAwsPtrType)(v) +} + +func (*getSecretAwsPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**GetSecretAws)(nil)).Elem() +} + +func (i *getSecretAwsPtrType) ToGetSecretAwsPtrOutput() GetSecretAwsPtrOutput { + return i.ToGetSecretAwsPtrOutputWithContext(context.Background()) +} + +func (i *getSecretAwsPtrType) ToGetSecretAwsPtrOutputWithContext(ctx context.Context) GetSecretAwsPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetSecretAwsPtrOutput) +} + +func (i *getSecretAwsPtrType) ToOutput(ctx context.Context) pulumix.Output[*GetSecretAws] { + return pulumix.Output[*GetSecretAws]{ + OutputState: i.ToGetSecretAwsPtrOutputWithContext(ctx).OutputState, + } +} + +type GetSecretAwsOutput struct{ *pulumi.OutputState } + +func (GetSecretAwsOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GetSecretAws)(nil)).Elem() +} + +func (o GetSecretAwsOutput) ToGetSecretAwsOutput() GetSecretAwsOutput { + return o +} + +func (o GetSecretAwsOutput) ToGetSecretAwsOutputWithContext(ctx context.Context) GetSecretAwsOutput { + return o +} + +func (o GetSecretAwsOutput) ToGetSecretAwsPtrOutput() GetSecretAwsPtrOutput { + return o.ToGetSecretAwsPtrOutputWithContext(context.Background()) +} + +func (o GetSecretAwsOutput) ToGetSecretAwsPtrOutputWithContext(ctx context.Context) GetSecretAwsPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v GetSecretAws) *GetSecretAws { + return &v + }).(GetSecretAwsPtrOutput) +} + +func (o GetSecretAwsOutput) ToOutput(ctx context.Context) pulumix.Output[GetSecretAws] { + return pulumix.Output[GetSecretAws]{ + OutputState: o.OutputState, + } +} + +func (o GetSecretAwsOutput) AccessKey() pulumi.StringOutput { + return o.ApplyT(func(v GetSecretAws) string { return v.AccessKey }).(pulumi.StringOutput) +} + +func (o GetSecretAwsOutput) ExternalId() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetSecretAws) *string { return v.ExternalId }).(pulumi.StringPtrOutput) +} + +func (o GetSecretAwsOutput) RoleArn() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetSecretAws) *string { return v.RoleArn }).(pulumi.StringPtrOutput) +} + +func (o GetSecretAwsOutput) SecretKey() pulumi.StringOutput { + return o.ApplyT(func(v GetSecretAws) string { return v.SecretKey }).(pulumi.StringOutput) +} + +type GetSecretAwsPtrOutput struct{ *pulumi.OutputState } + +func (GetSecretAwsPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**GetSecretAws)(nil)).Elem() +} + +func (o GetSecretAwsPtrOutput) ToGetSecretAwsPtrOutput() GetSecretAwsPtrOutput { + return o +} + +func (o GetSecretAwsPtrOutput) ToGetSecretAwsPtrOutputWithContext(ctx context.Context) GetSecretAwsPtrOutput { + return o +} + +func (o GetSecretAwsPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*GetSecretAws] { + return pulumix.Output[*GetSecretAws]{ + OutputState: o.OutputState, + } +} + +func (o GetSecretAwsPtrOutput) Elem() GetSecretAwsOutput { + return o.ApplyT(func(v *GetSecretAws) GetSecretAws { + if v != nil { + return *v + } + var ret GetSecretAws + return ret + }).(GetSecretAwsOutput) +} + +func (o GetSecretAwsPtrOutput) AccessKey() pulumi.StringPtrOutput { + return o.ApplyT(func(v *GetSecretAws) *string { + if v == nil { + return nil + } + return &v.AccessKey + }).(pulumi.StringPtrOutput) +} + +func (o GetSecretAwsPtrOutput) ExternalId() pulumi.StringPtrOutput { + return o.ApplyT(func(v *GetSecretAws) *string { + if v == nil { + return nil + } + return v.ExternalId + }).(pulumi.StringPtrOutput) +} + +func (o GetSecretAwsPtrOutput) RoleArn() pulumi.StringPtrOutput { + return o.ApplyT(func(v *GetSecretAws) *string { + if v == nil { + return nil + } + return v.RoleArn + }).(pulumi.StringPtrOutput) +} + +func (o GetSecretAwsPtrOutput) SecretKey() pulumi.StringPtrOutput { + return o.ApplyT(func(v *GetSecretAws) *string { + if v == nil { + return nil + } + return &v.SecretKey + }).(pulumi.StringPtrOutput) +} + +type GetSecretAzureConnector struct { + Code string `pulumi:"code"` + Url string `pulumi:"url"` +} + +// GetSecretAzureConnectorInput is an input type that accepts GetSecretAzureConnectorArgs and GetSecretAzureConnectorOutput values. +// You can construct a concrete instance of `GetSecretAzureConnectorInput` via: +// +// GetSecretAzureConnectorArgs{...} +type GetSecretAzureConnectorInput interface { + pulumi.Input + + ToGetSecretAzureConnectorOutput() GetSecretAzureConnectorOutput + ToGetSecretAzureConnectorOutputWithContext(context.Context) GetSecretAzureConnectorOutput +} + +type GetSecretAzureConnectorArgs struct { + Code pulumi.StringInput `pulumi:"code"` + Url pulumi.StringInput `pulumi:"url"` +} + +func (GetSecretAzureConnectorArgs) ElementType() reflect.Type { + return reflect.TypeOf((*GetSecretAzureConnector)(nil)).Elem() +} + +func (i GetSecretAzureConnectorArgs) ToGetSecretAzureConnectorOutput() GetSecretAzureConnectorOutput { + return i.ToGetSecretAzureConnectorOutputWithContext(context.Background()) +} + +func (i GetSecretAzureConnectorArgs) ToGetSecretAzureConnectorOutputWithContext(ctx context.Context) GetSecretAzureConnectorOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetSecretAzureConnectorOutput) +} + +func (i GetSecretAzureConnectorArgs) ToOutput(ctx context.Context) pulumix.Output[GetSecretAzureConnector] { + return pulumix.Output[GetSecretAzureConnector]{ + OutputState: i.ToGetSecretAzureConnectorOutputWithContext(ctx).OutputState, + } +} + +func (i GetSecretAzureConnectorArgs) ToGetSecretAzureConnectorPtrOutput() GetSecretAzureConnectorPtrOutput { + return i.ToGetSecretAzureConnectorPtrOutputWithContext(context.Background()) +} + +func (i GetSecretAzureConnectorArgs) ToGetSecretAzureConnectorPtrOutputWithContext(ctx context.Context) GetSecretAzureConnectorPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetSecretAzureConnectorOutput).ToGetSecretAzureConnectorPtrOutputWithContext(ctx) +} + +// GetSecretAzureConnectorPtrInput is an input type that accepts GetSecretAzureConnectorArgs, GetSecretAzureConnectorPtr and GetSecretAzureConnectorPtrOutput values. +// You can construct a concrete instance of `GetSecretAzureConnectorPtrInput` via: +// +// GetSecretAzureConnectorArgs{...} +// +// or: +// +// nil +type GetSecretAzureConnectorPtrInput interface { + pulumi.Input + + ToGetSecretAzureConnectorPtrOutput() GetSecretAzureConnectorPtrOutput + ToGetSecretAzureConnectorPtrOutputWithContext(context.Context) GetSecretAzureConnectorPtrOutput +} + +type getSecretAzureConnectorPtrType GetSecretAzureConnectorArgs + +func GetSecretAzureConnectorPtr(v *GetSecretAzureConnectorArgs) GetSecretAzureConnectorPtrInput { + return (*getSecretAzureConnectorPtrType)(v) +} + +func (*getSecretAzureConnectorPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**GetSecretAzureConnector)(nil)).Elem() +} + +func (i *getSecretAzureConnectorPtrType) ToGetSecretAzureConnectorPtrOutput() GetSecretAzureConnectorPtrOutput { + return i.ToGetSecretAzureConnectorPtrOutputWithContext(context.Background()) +} + +func (i *getSecretAzureConnectorPtrType) ToGetSecretAzureConnectorPtrOutputWithContext(ctx context.Context) GetSecretAzureConnectorPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetSecretAzureConnectorPtrOutput) +} + +func (i *getSecretAzureConnectorPtrType) ToOutput(ctx context.Context) pulumix.Output[*GetSecretAzureConnector] { + return pulumix.Output[*GetSecretAzureConnector]{ + OutputState: i.ToGetSecretAzureConnectorPtrOutputWithContext(ctx).OutputState, + } +} + +type GetSecretAzureConnectorOutput struct{ *pulumi.OutputState } + +func (GetSecretAzureConnectorOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GetSecretAzureConnector)(nil)).Elem() +} + +func (o GetSecretAzureConnectorOutput) ToGetSecretAzureConnectorOutput() GetSecretAzureConnectorOutput { + return o +} + +func (o GetSecretAzureConnectorOutput) ToGetSecretAzureConnectorOutputWithContext(ctx context.Context) GetSecretAzureConnectorOutput { + return o +} + +func (o GetSecretAzureConnectorOutput) ToGetSecretAzureConnectorPtrOutput() GetSecretAzureConnectorPtrOutput { + return o.ToGetSecretAzureConnectorPtrOutputWithContext(context.Background()) +} + +func (o GetSecretAzureConnectorOutput) ToGetSecretAzureConnectorPtrOutputWithContext(ctx context.Context) GetSecretAzureConnectorPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v GetSecretAzureConnector) *GetSecretAzureConnector { + return &v + }).(GetSecretAzureConnectorPtrOutput) +} + +func (o GetSecretAzureConnectorOutput) ToOutput(ctx context.Context) pulumix.Output[GetSecretAzureConnector] { + return pulumix.Output[GetSecretAzureConnector]{ + OutputState: o.OutputState, + } +} + +func (o GetSecretAzureConnectorOutput) Code() pulumi.StringOutput { + return o.ApplyT(func(v GetSecretAzureConnector) string { return v.Code }).(pulumi.StringOutput) +} + +func (o GetSecretAzureConnectorOutput) Url() pulumi.StringOutput { + return o.ApplyT(func(v GetSecretAzureConnector) string { return v.Url }).(pulumi.StringOutput) +} + +type GetSecretAzureConnectorPtrOutput struct{ *pulumi.OutputState } + +func (GetSecretAzureConnectorPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**GetSecretAzureConnector)(nil)).Elem() +} + +func (o GetSecretAzureConnectorPtrOutput) ToGetSecretAzureConnectorPtrOutput() GetSecretAzureConnectorPtrOutput { + return o +} + +func (o GetSecretAzureConnectorPtrOutput) ToGetSecretAzureConnectorPtrOutputWithContext(ctx context.Context) GetSecretAzureConnectorPtrOutput { + return o +} + +func (o GetSecretAzureConnectorPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*GetSecretAzureConnector] { + return pulumix.Output[*GetSecretAzureConnector]{ + OutputState: o.OutputState, + } +} + +func (o GetSecretAzureConnectorPtrOutput) Elem() GetSecretAzureConnectorOutput { + return o.ApplyT(func(v *GetSecretAzureConnector) GetSecretAzureConnector { + if v != nil { + return *v + } + var ret GetSecretAzureConnector + return ret + }).(GetSecretAzureConnectorOutput) +} + +func (o GetSecretAzureConnectorPtrOutput) Code() pulumi.StringPtrOutput { + return o.ApplyT(func(v *GetSecretAzureConnector) *string { + if v == nil { + return nil + } + return &v.Code + }).(pulumi.StringPtrOutput) +} + +func (o GetSecretAzureConnectorPtrOutput) Url() pulumi.StringPtrOutput { + return o.ApplyT(func(v *GetSecretAzureConnector) *string { + if v == nil { + return nil + } + return &v.Url + }).(pulumi.StringPtrOutput) +} + +type GetSecretEcr struct { + AccessKey string `pulumi:"accessKey"` + ExternalId *string `pulumi:"externalId"` + Repos []string `pulumi:"repos"` + RoleArn *string `pulumi:"roleArn"` + SecretKey string `pulumi:"secretKey"` +} + +// GetSecretEcrInput is an input type that accepts GetSecretEcrArgs and GetSecretEcrOutput values. +// You can construct a concrete instance of `GetSecretEcrInput` via: +// +// GetSecretEcrArgs{...} +type GetSecretEcrInput interface { + pulumi.Input + + ToGetSecretEcrOutput() GetSecretEcrOutput + ToGetSecretEcrOutputWithContext(context.Context) GetSecretEcrOutput +} + +type GetSecretEcrArgs struct { + AccessKey pulumi.StringInput `pulumi:"accessKey"` + ExternalId pulumi.StringPtrInput `pulumi:"externalId"` + Repos pulumi.StringArrayInput `pulumi:"repos"` + RoleArn pulumi.StringPtrInput `pulumi:"roleArn"` + SecretKey pulumi.StringInput `pulumi:"secretKey"` +} + +func (GetSecretEcrArgs) ElementType() reflect.Type { + return reflect.TypeOf((*GetSecretEcr)(nil)).Elem() +} + +func (i GetSecretEcrArgs) ToGetSecretEcrOutput() GetSecretEcrOutput { + return i.ToGetSecretEcrOutputWithContext(context.Background()) +} + +func (i GetSecretEcrArgs) ToGetSecretEcrOutputWithContext(ctx context.Context) GetSecretEcrOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetSecretEcrOutput) +} + +func (i GetSecretEcrArgs) ToOutput(ctx context.Context) pulumix.Output[GetSecretEcr] { + return pulumix.Output[GetSecretEcr]{ + OutputState: i.ToGetSecretEcrOutputWithContext(ctx).OutputState, + } +} + +func (i GetSecretEcrArgs) ToGetSecretEcrPtrOutput() GetSecretEcrPtrOutput { + return i.ToGetSecretEcrPtrOutputWithContext(context.Background()) +} + +func (i GetSecretEcrArgs) ToGetSecretEcrPtrOutputWithContext(ctx context.Context) GetSecretEcrPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetSecretEcrOutput).ToGetSecretEcrPtrOutputWithContext(ctx) +} + +// GetSecretEcrPtrInput is an input type that accepts GetSecretEcrArgs, GetSecretEcrPtr and GetSecretEcrPtrOutput values. +// You can construct a concrete instance of `GetSecretEcrPtrInput` via: +// +// GetSecretEcrArgs{...} +// +// or: +// +// nil +type GetSecretEcrPtrInput interface { + pulumi.Input + + ToGetSecretEcrPtrOutput() GetSecretEcrPtrOutput + ToGetSecretEcrPtrOutputWithContext(context.Context) GetSecretEcrPtrOutput +} + +type getSecretEcrPtrType GetSecretEcrArgs + +func GetSecretEcrPtr(v *GetSecretEcrArgs) GetSecretEcrPtrInput { + return (*getSecretEcrPtrType)(v) +} + +func (*getSecretEcrPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**GetSecretEcr)(nil)).Elem() +} + +func (i *getSecretEcrPtrType) ToGetSecretEcrPtrOutput() GetSecretEcrPtrOutput { + return i.ToGetSecretEcrPtrOutputWithContext(context.Background()) +} + +func (i *getSecretEcrPtrType) ToGetSecretEcrPtrOutputWithContext(ctx context.Context) GetSecretEcrPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetSecretEcrPtrOutput) +} + +func (i *getSecretEcrPtrType) ToOutput(ctx context.Context) pulumix.Output[*GetSecretEcr] { + return pulumix.Output[*GetSecretEcr]{ + OutputState: i.ToGetSecretEcrPtrOutputWithContext(ctx).OutputState, + } +} + +type GetSecretEcrOutput struct{ *pulumi.OutputState } + +func (GetSecretEcrOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GetSecretEcr)(nil)).Elem() +} + +func (o GetSecretEcrOutput) ToGetSecretEcrOutput() GetSecretEcrOutput { + return o +} + +func (o GetSecretEcrOutput) ToGetSecretEcrOutputWithContext(ctx context.Context) GetSecretEcrOutput { + return o +} + +func (o GetSecretEcrOutput) ToGetSecretEcrPtrOutput() GetSecretEcrPtrOutput { + return o.ToGetSecretEcrPtrOutputWithContext(context.Background()) +} + +func (o GetSecretEcrOutput) ToGetSecretEcrPtrOutputWithContext(ctx context.Context) GetSecretEcrPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v GetSecretEcr) *GetSecretEcr { + return &v + }).(GetSecretEcrPtrOutput) +} + +func (o GetSecretEcrOutput) ToOutput(ctx context.Context) pulumix.Output[GetSecretEcr] { + return pulumix.Output[GetSecretEcr]{ + OutputState: o.OutputState, + } +} + +func (o GetSecretEcrOutput) AccessKey() pulumi.StringOutput { + return o.ApplyT(func(v GetSecretEcr) string { return v.AccessKey }).(pulumi.StringOutput) +} + +func (o GetSecretEcrOutput) ExternalId() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetSecretEcr) *string { return v.ExternalId }).(pulumi.StringPtrOutput) +} + +func (o GetSecretEcrOutput) Repos() pulumi.StringArrayOutput { + return o.ApplyT(func(v GetSecretEcr) []string { return v.Repos }).(pulumi.StringArrayOutput) +} + +func (o GetSecretEcrOutput) RoleArn() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetSecretEcr) *string { return v.RoleArn }).(pulumi.StringPtrOutput) +} + +func (o GetSecretEcrOutput) SecretKey() pulumi.StringOutput { + return o.ApplyT(func(v GetSecretEcr) string { return v.SecretKey }).(pulumi.StringOutput) +} + +type GetSecretEcrPtrOutput struct{ *pulumi.OutputState } + +func (GetSecretEcrPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**GetSecretEcr)(nil)).Elem() +} + +func (o GetSecretEcrPtrOutput) ToGetSecretEcrPtrOutput() GetSecretEcrPtrOutput { + return o +} + +func (o GetSecretEcrPtrOutput) ToGetSecretEcrPtrOutputWithContext(ctx context.Context) GetSecretEcrPtrOutput { + return o +} + +func (o GetSecretEcrPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*GetSecretEcr] { + return pulumix.Output[*GetSecretEcr]{ + OutputState: o.OutputState, + } +} + +func (o GetSecretEcrPtrOutput) Elem() GetSecretEcrOutput { + return o.ApplyT(func(v *GetSecretEcr) GetSecretEcr { + if v != nil { + return *v + } + var ret GetSecretEcr + return ret + }).(GetSecretEcrOutput) +} + +func (o GetSecretEcrPtrOutput) AccessKey() pulumi.StringPtrOutput { + return o.ApplyT(func(v *GetSecretEcr) *string { + if v == nil { + return nil + } + return &v.AccessKey + }).(pulumi.StringPtrOutput) +} + +func (o GetSecretEcrPtrOutput) ExternalId() pulumi.StringPtrOutput { + return o.ApplyT(func(v *GetSecretEcr) *string { + if v == nil { + return nil + } + return v.ExternalId + }).(pulumi.StringPtrOutput) +} + +func (o GetSecretEcrPtrOutput) Repos() pulumi.StringArrayOutput { + return o.ApplyT(func(v *GetSecretEcr) []string { + if v == nil { + return nil + } + return v.Repos + }).(pulumi.StringArrayOutput) +} + +func (o GetSecretEcrPtrOutput) RoleArn() pulumi.StringPtrOutput { + return o.ApplyT(func(v *GetSecretEcr) *string { + if v == nil { + return nil + } + return v.RoleArn + }).(pulumi.StringPtrOutput) +} + +func (o GetSecretEcrPtrOutput) SecretKey() pulumi.StringPtrOutput { + return o.ApplyT(func(v *GetSecretEcr) *string { + if v == nil { + return nil + } + return &v.SecretKey + }).(pulumi.StringPtrOutput) +} + +type GetSecretKeypair struct { + Passphrase *string `pulumi:"passphrase"` + PublicKey *string `pulumi:"publicKey"` + SecretKey string `pulumi:"secretKey"` +} + +// GetSecretKeypairInput is an input type that accepts GetSecretKeypairArgs and GetSecretKeypairOutput values. +// You can construct a concrete instance of `GetSecretKeypairInput` via: +// +// GetSecretKeypairArgs{...} +type GetSecretKeypairInput interface { + pulumi.Input + + ToGetSecretKeypairOutput() GetSecretKeypairOutput + ToGetSecretKeypairOutputWithContext(context.Context) GetSecretKeypairOutput +} + +type GetSecretKeypairArgs struct { + Passphrase pulumi.StringPtrInput `pulumi:"passphrase"` + PublicKey pulumi.StringPtrInput `pulumi:"publicKey"` + SecretKey pulumi.StringInput `pulumi:"secretKey"` +} + +func (GetSecretKeypairArgs) ElementType() reflect.Type { + return reflect.TypeOf((*GetSecretKeypair)(nil)).Elem() +} + +func (i GetSecretKeypairArgs) ToGetSecretKeypairOutput() GetSecretKeypairOutput { + return i.ToGetSecretKeypairOutputWithContext(context.Background()) +} + +func (i GetSecretKeypairArgs) ToGetSecretKeypairOutputWithContext(ctx context.Context) GetSecretKeypairOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetSecretKeypairOutput) +} + +func (i GetSecretKeypairArgs) ToOutput(ctx context.Context) pulumix.Output[GetSecretKeypair] { + return pulumix.Output[GetSecretKeypair]{ + OutputState: i.ToGetSecretKeypairOutputWithContext(ctx).OutputState, + } +} + +func (i GetSecretKeypairArgs) ToGetSecretKeypairPtrOutput() GetSecretKeypairPtrOutput { + return i.ToGetSecretKeypairPtrOutputWithContext(context.Background()) +} + +func (i GetSecretKeypairArgs) ToGetSecretKeypairPtrOutputWithContext(ctx context.Context) GetSecretKeypairPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetSecretKeypairOutput).ToGetSecretKeypairPtrOutputWithContext(ctx) +} + +// GetSecretKeypairPtrInput is an input type that accepts GetSecretKeypairArgs, GetSecretKeypairPtr and GetSecretKeypairPtrOutput values. +// You can construct a concrete instance of `GetSecretKeypairPtrInput` via: +// +// GetSecretKeypairArgs{...} +// +// or: +// +// nil +type GetSecretKeypairPtrInput interface { + pulumi.Input + + ToGetSecretKeypairPtrOutput() GetSecretKeypairPtrOutput + ToGetSecretKeypairPtrOutputWithContext(context.Context) GetSecretKeypairPtrOutput +} + +type getSecretKeypairPtrType GetSecretKeypairArgs + +func GetSecretKeypairPtr(v *GetSecretKeypairArgs) GetSecretKeypairPtrInput { + return (*getSecretKeypairPtrType)(v) +} + +func (*getSecretKeypairPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**GetSecretKeypair)(nil)).Elem() +} + +func (i *getSecretKeypairPtrType) ToGetSecretKeypairPtrOutput() GetSecretKeypairPtrOutput { + return i.ToGetSecretKeypairPtrOutputWithContext(context.Background()) +} + +func (i *getSecretKeypairPtrType) ToGetSecretKeypairPtrOutputWithContext(ctx context.Context) GetSecretKeypairPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetSecretKeypairPtrOutput) +} + +func (i *getSecretKeypairPtrType) ToOutput(ctx context.Context) pulumix.Output[*GetSecretKeypair] { + return pulumix.Output[*GetSecretKeypair]{ + OutputState: i.ToGetSecretKeypairPtrOutputWithContext(ctx).OutputState, + } +} + +type GetSecretKeypairOutput struct{ *pulumi.OutputState } + +func (GetSecretKeypairOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GetSecretKeypair)(nil)).Elem() +} + +func (o GetSecretKeypairOutput) ToGetSecretKeypairOutput() GetSecretKeypairOutput { + return o +} + +func (o GetSecretKeypairOutput) ToGetSecretKeypairOutputWithContext(ctx context.Context) GetSecretKeypairOutput { + return o +} + +func (o GetSecretKeypairOutput) ToGetSecretKeypairPtrOutput() GetSecretKeypairPtrOutput { + return o.ToGetSecretKeypairPtrOutputWithContext(context.Background()) +} + +func (o GetSecretKeypairOutput) ToGetSecretKeypairPtrOutputWithContext(ctx context.Context) GetSecretKeypairPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v GetSecretKeypair) *GetSecretKeypair { + return &v + }).(GetSecretKeypairPtrOutput) +} + +func (o GetSecretKeypairOutput) ToOutput(ctx context.Context) pulumix.Output[GetSecretKeypair] { + return pulumix.Output[GetSecretKeypair]{ + OutputState: o.OutputState, + } +} + +func (o GetSecretKeypairOutput) Passphrase() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetSecretKeypair) *string { return v.Passphrase }).(pulumi.StringPtrOutput) +} + +func (o GetSecretKeypairOutput) PublicKey() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetSecretKeypair) *string { return v.PublicKey }).(pulumi.StringPtrOutput) +} + +func (o GetSecretKeypairOutput) SecretKey() pulumi.StringOutput { + return o.ApplyT(func(v GetSecretKeypair) string { return v.SecretKey }).(pulumi.StringOutput) +} + +type GetSecretKeypairPtrOutput struct{ *pulumi.OutputState } + +func (GetSecretKeypairPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**GetSecretKeypair)(nil)).Elem() +} + +func (o GetSecretKeypairPtrOutput) ToGetSecretKeypairPtrOutput() GetSecretKeypairPtrOutput { + return o +} + +func (o GetSecretKeypairPtrOutput) ToGetSecretKeypairPtrOutputWithContext(ctx context.Context) GetSecretKeypairPtrOutput { + return o +} + +func (o GetSecretKeypairPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*GetSecretKeypair] { + return pulumix.Output[*GetSecretKeypair]{ + OutputState: o.OutputState, + } +} + +func (o GetSecretKeypairPtrOutput) Elem() GetSecretKeypairOutput { + return o.ApplyT(func(v *GetSecretKeypair) GetSecretKeypair { + if v != nil { + return *v + } + var ret GetSecretKeypair + return ret + }).(GetSecretKeypairOutput) +} + +func (o GetSecretKeypairPtrOutput) Passphrase() pulumi.StringPtrOutput { + return o.ApplyT(func(v *GetSecretKeypair) *string { + if v == nil { + return nil + } + return v.Passphrase + }).(pulumi.StringPtrOutput) +} + +func (o GetSecretKeypairPtrOutput) PublicKey() pulumi.StringPtrOutput { + return o.ApplyT(func(v *GetSecretKeypair) *string { + if v == nil { + return nil + } + return v.PublicKey + }).(pulumi.StringPtrOutput) +} + +func (o GetSecretKeypairPtrOutput) SecretKey() pulumi.StringPtrOutput { + return o.ApplyT(func(v *GetSecretKeypair) *string { + if v == nil { + return nil + } + return &v.SecretKey + }).(pulumi.StringPtrOutput) +} + +type GetSecretNatsAccount struct { + AccountId string `pulumi:"accountId"` + PrivateKey string `pulumi:"privateKey"` +} + +// GetSecretNatsAccountInput is an input type that accepts GetSecretNatsAccountArgs and GetSecretNatsAccountOutput values. +// You can construct a concrete instance of `GetSecretNatsAccountInput` via: +// +// GetSecretNatsAccountArgs{...} +type GetSecretNatsAccountInput interface { + pulumi.Input + + ToGetSecretNatsAccountOutput() GetSecretNatsAccountOutput + ToGetSecretNatsAccountOutputWithContext(context.Context) GetSecretNatsAccountOutput +} + +type GetSecretNatsAccountArgs struct { + AccountId pulumi.StringInput `pulumi:"accountId"` + PrivateKey pulumi.StringInput `pulumi:"privateKey"` +} + +func (GetSecretNatsAccountArgs) ElementType() reflect.Type { + return reflect.TypeOf((*GetSecretNatsAccount)(nil)).Elem() +} + +func (i GetSecretNatsAccountArgs) ToGetSecretNatsAccountOutput() GetSecretNatsAccountOutput { + return i.ToGetSecretNatsAccountOutputWithContext(context.Background()) +} + +func (i GetSecretNatsAccountArgs) ToGetSecretNatsAccountOutputWithContext(ctx context.Context) GetSecretNatsAccountOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetSecretNatsAccountOutput) +} + +func (i GetSecretNatsAccountArgs) ToOutput(ctx context.Context) pulumix.Output[GetSecretNatsAccount] { + return pulumix.Output[GetSecretNatsAccount]{ + OutputState: i.ToGetSecretNatsAccountOutputWithContext(ctx).OutputState, + } +} + +func (i GetSecretNatsAccountArgs) ToGetSecretNatsAccountPtrOutput() GetSecretNatsAccountPtrOutput { + return i.ToGetSecretNatsAccountPtrOutputWithContext(context.Background()) +} + +func (i GetSecretNatsAccountArgs) ToGetSecretNatsAccountPtrOutputWithContext(ctx context.Context) GetSecretNatsAccountPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetSecretNatsAccountOutput).ToGetSecretNatsAccountPtrOutputWithContext(ctx) +} + +// GetSecretNatsAccountPtrInput is an input type that accepts GetSecretNatsAccountArgs, GetSecretNatsAccountPtr and GetSecretNatsAccountPtrOutput values. +// You can construct a concrete instance of `GetSecretNatsAccountPtrInput` via: +// +// GetSecretNatsAccountArgs{...} +// +// or: +// +// nil +type GetSecretNatsAccountPtrInput interface { + pulumi.Input + + ToGetSecretNatsAccountPtrOutput() GetSecretNatsAccountPtrOutput + ToGetSecretNatsAccountPtrOutputWithContext(context.Context) GetSecretNatsAccountPtrOutput +} + +type getSecretNatsAccountPtrType GetSecretNatsAccountArgs + +func GetSecretNatsAccountPtr(v *GetSecretNatsAccountArgs) GetSecretNatsAccountPtrInput { + return (*getSecretNatsAccountPtrType)(v) +} + +func (*getSecretNatsAccountPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**GetSecretNatsAccount)(nil)).Elem() +} + +func (i *getSecretNatsAccountPtrType) ToGetSecretNatsAccountPtrOutput() GetSecretNatsAccountPtrOutput { + return i.ToGetSecretNatsAccountPtrOutputWithContext(context.Background()) +} + +func (i *getSecretNatsAccountPtrType) ToGetSecretNatsAccountPtrOutputWithContext(ctx context.Context) GetSecretNatsAccountPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetSecretNatsAccountPtrOutput) +} + +func (i *getSecretNatsAccountPtrType) ToOutput(ctx context.Context) pulumix.Output[*GetSecretNatsAccount] { + return pulumix.Output[*GetSecretNatsAccount]{ + OutputState: i.ToGetSecretNatsAccountPtrOutputWithContext(ctx).OutputState, + } +} + +type GetSecretNatsAccountOutput struct{ *pulumi.OutputState } + +func (GetSecretNatsAccountOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GetSecretNatsAccount)(nil)).Elem() +} + +func (o GetSecretNatsAccountOutput) ToGetSecretNatsAccountOutput() GetSecretNatsAccountOutput { + return o +} + +func (o GetSecretNatsAccountOutput) ToGetSecretNatsAccountOutputWithContext(ctx context.Context) GetSecretNatsAccountOutput { + return o +} + +func (o GetSecretNatsAccountOutput) ToGetSecretNatsAccountPtrOutput() GetSecretNatsAccountPtrOutput { + return o.ToGetSecretNatsAccountPtrOutputWithContext(context.Background()) +} + +func (o GetSecretNatsAccountOutput) ToGetSecretNatsAccountPtrOutputWithContext(ctx context.Context) GetSecretNatsAccountPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v GetSecretNatsAccount) *GetSecretNatsAccount { + return &v + }).(GetSecretNatsAccountPtrOutput) +} + +func (o GetSecretNatsAccountOutput) ToOutput(ctx context.Context) pulumix.Output[GetSecretNatsAccount] { + return pulumix.Output[GetSecretNatsAccount]{ + OutputState: o.OutputState, + } +} + +func (o GetSecretNatsAccountOutput) AccountId() pulumi.StringOutput { + return o.ApplyT(func(v GetSecretNatsAccount) string { return v.AccountId }).(pulumi.StringOutput) +} + +func (o GetSecretNatsAccountOutput) PrivateKey() pulumi.StringOutput { + return o.ApplyT(func(v GetSecretNatsAccount) string { return v.PrivateKey }).(pulumi.StringOutput) +} + +type GetSecretNatsAccountPtrOutput struct{ *pulumi.OutputState } + +func (GetSecretNatsAccountPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**GetSecretNatsAccount)(nil)).Elem() +} + +func (o GetSecretNatsAccountPtrOutput) ToGetSecretNatsAccountPtrOutput() GetSecretNatsAccountPtrOutput { + return o +} + +func (o GetSecretNatsAccountPtrOutput) ToGetSecretNatsAccountPtrOutputWithContext(ctx context.Context) GetSecretNatsAccountPtrOutput { + return o +} + +func (o GetSecretNatsAccountPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*GetSecretNatsAccount] { + return pulumix.Output[*GetSecretNatsAccount]{ + OutputState: o.OutputState, + } +} + +func (o GetSecretNatsAccountPtrOutput) Elem() GetSecretNatsAccountOutput { + return o.ApplyT(func(v *GetSecretNatsAccount) GetSecretNatsAccount { + if v != nil { + return *v + } + var ret GetSecretNatsAccount + return ret + }).(GetSecretNatsAccountOutput) +} + +func (o GetSecretNatsAccountPtrOutput) AccountId() pulumi.StringPtrOutput { + return o.ApplyT(func(v *GetSecretNatsAccount) *string { + if v == nil { + return nil + } + return &v.AccountId + }).(pulumi.StringPtrOutput) +} + +func (o GetSecretNatsAccountPtrOutput) PrivateKey() pulumi.StringPtrOutput { + return o.ApplyT(func(v *GetSecretNatsAccount) *string { + if v == nil { + return nil + } + return &v.PrivateKey + }).(pulumi.StringPtrOutput) +} + +type GetSecretOpaque struct { + Encoding *string `pulumi:"encoding"` + Payload string `pulumi:"payload"` +} + +// GetSecretOpaqueInput is an input type that accepts GetSecretOpaqueArgs and GetSecretOpaqueOutput values. +// You can construct a concrete instance of `GetSecretOpaqueInput` via: +// +// GetSecretOpaqueArgs{...} +type GetSecretOpaqueInput interface { + pulumi.Input + + ToGetSecretOpaqueOutput() GetSecretOpaqueOutput + ToGetSecretOpaqueOutputWithContext(context.Context) GetSecretOpaqueOutput +} + +type GetSecretOpaqueArgs struct { + Encoding pulumi.StringPtrInput `pulumi:"encoding"` + Payload pulumi.StringInput `pulumi:"payload"` +} + +func (GetSecretOpaqueArgs) ElementType() reflect.Type { + return reflect.TypeOf((*GetSecretOpaque)(nil)).Elem() +} + +func (i GetSecretOpaqueArgs) ToGetSecretOpaqueOutput() GetSecretOpaqueOutput { + return i.ToGetSecretOpaqueOutputWithContext(context.Background()) +} + +func (i GetSecretOpaqueArgs) ToGetSecretOpaqueOutputWithContext(ctx context.Context) GetSecretOpaqueOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetSecretOpaqueOutput) +} + +func (i GetSecretOpaqueArgs) ToOutput(ctx context.Context) pulumix.Output[GetSecretOpaque] { + return pulumix.Output[GetSecretOpaque]{ + OutputState: i.ToGetSecretOpaqueOutputWithContext(ctx).OutputState, + } +} + +func (i GetSecretOpaqueArgs) ToGetSecretOpaquePtrOutput() GetSecretOpaquePtrOutput { + return i.ToGetSecretOpaquePtrOutputWithContext(context.Background()) +} + +func (i GetSecretOpaqueArgs) ToGetSecretOpaquePtrOutputWithContext(ctx context.Context) GetSecretOpaquePtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetSecretOpaqueOutput).ToGetSecretOpaquePtrOutputWithContext(ctx) +} + +// GetSecretOpaquePtrInput is an input type that accepts GetSecretOpaqueArgs, GetSecretOpaquePtr and GetSecretOpaquePtrOutput values. +// You can construct a concrete instance of `GetSecretOpaquePtrInput` via: +// +// GetSecretOpaqueArgs{...} +// +// or: +// +// nil +type GetSecretOpaquePtrInput interface { + pulumi.Input + + ToGetSecretOpaquePtrOutput() GetSecretOpaquePtrOutput + ToGetSecretOpaquePtrOutputWithContext(context.Context) GetSecretOpaquePtrOutput +} + +type getSecretOpaquePtrType GetSecretOpaqueArgs + +func GetSecretOpaquePtr(v *GetSecretOpaqueArgs) GetSecretOpaquePtrInput { + return (*getSecretOpaquePtrType)(v) +} + +func (*getSecretOpaquePtrType) ElementType() reflect.Type { + return reflect.TypeOf((**GetSecretOpaque)(nil)).Elem() +} + +func (i *getSecretOpaquePtrType) ToGetSecretOpaquePtrOutput() GetSecretOpaquePtrOutput { + return i.ToGetSecretOpaquePtrOutputWithContext(context.Background()) +} + +func (i *getSecretOpaquePtrType) ToGetSecretOpaquePtrOutputWithContext(ctx context.Context) GetSecretOpaquePtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetSecretOpaquePtrOutput) +} + +func (i *getSecretOpaquePtrType) ToOutput(ctx context.Context) pulumix.Output[*GetSecretOpaque] { + return pulumix.Output[*GetSecretOpaque]{ + OutputState: i.ToGetSecretOpaquePtrOutputWithContext(ctx).OutputState, + } +} + +type GetSecretOpaqueOutput struct{ *pulumi.OutputState } + +func (GetSecretOpaqueOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GetSecretOpaque)(nil)).Elem() +} + +func (o GetSecretOpaqueOutput) ToGetSecretOpaqueOutput() GetSecretOpaqueOutput { + return o +} + +func (o GetSecretOpaqueOutput) ToGetSecretOpaqueOutputWithContext(ctx context.Context) GetSecretOpaqueOutput { + return o +} + +func (o GetSecretOpaqueOutput) ToGetSecretOpaquePtrOutput() GetSecretOpaquePtrOutput { + return o.ToGetSecretOpaquePtrOutputWithContext(context.Background()) +} + +func (o GetSecretOpaqueOutput) ToGetSecretOpaquePtrOutputWithContext(ctx context.Context) GetSecretOpaquePtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v GetSecretOpaque) *GetSecretOpaque { + return &v + }).(GetSecretOpaquePtrOutput) +} + +func (o GetSecretOpaqueOutput) ToOutput(ctx context.Context) pulumix.Output[GetSecretOpaque] { + return pulumix.Output[GetSecretOpaque]{ + OutputState: o.OutputState, + } +} + +func (o GetSecretOpaqueOutput) Encoding() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetSecretOpaque) *string { return v.Encoding }).(pulumi.StringPtrOutput) +} + +func (o GetSecretOpaqueOutput) Payload() pulumi.StringOutput { + return o.ApplyT(func(v GetSecretOpaque) string { return v.Payload }).(pulumi.StringOutput) +} + +type GetSecretOpaquePtrOutput struct{ *pulumi.OutputState } + +func (GetSecretOpaquePtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**GetSecretOpaque)(nil)).Elem() +} + +func (o GetSecretOpaquePtrOutput) ToGetSecretOpaquePtrOutput() GetSecretOpaquePtrOutput { + return o +} + +func (o GetSecretOpaquePtrOutput) ToGetSecretOpaquePtrOutputWithContext(ctx context.Context) GetSecretOpaquePtrOutput { + return o +} + +func (o GetSecretOpaquePtrOutput) ToOutput(ctx context.Context) pulumix.Output[*GetSecretOpaque] { + return pulumix.Output[*GetSecretOpaque]{ + OutputState: o.OutputState, + } +} + +func (o GetSecretOpaquePtrOutput) Elem() GetSecretOpaqueOutput { + return o.ApplyT(func(v *GetSecretOpaque) GetSecretOpaque { + if v != nil { + return *v + } + var ret GetSecretOpaque + return ret + }).(GetSecretOpaqueOutput) +} + +func (o GetSecretOpaquePtrOutput) Encoding() pulumi.StringPtrOutput { + return o.ApplyT(func(v *GetSecretOpaque) *string { + if v == nil { + return nil + } + return v.Encoding + }).(pulumi.StringPtrOutput) +} + +func (o GetSecretOpaquePtrOutput) Payload() pulumi.StringPtrOutput { + return o.ApplyT(func(v *GetSecretOpaque) *string { + if v == nil { + return nil + } + return &v.Payload + }).(pulumi.StringPtrOutput) +} + +type GetSecretTls struct { + Cert string `pulumi:"cert"` + Chain *string `pulumi:"chain"` + Key string `pulumi:"key"` +} + +// GetSecretTlsInput is an input type that accepts GetSecretTlsArgs and GetSecretTlsOutput values. +// You can construct a concrete instance of `GetSecretTlsInput` via: +// +// GetSecretTlsArgs{...} +type GetSecretTlsInput interface { + pulumi.Input + + ToGetSecretTlsOutput() GetSecretTlsOutput + ToGetSecretTlsOutputWithContext(context.Context) GetSecretTlsOutput +} + +type GetSecretTlsArgs struct { + Cert pulumi.StringInput `pulumi:"cert"` + Chain pulumi.StringPtrInput `pulumi:"chain"` + Key pulumi.StringInput `pulumi:"key"` +} + +func (GetSecretTlsArgs) ElementType() reflect.Type { + return reflect.TypeOf((*GetSecretTls)(nil)).Elem() +} + +func (i GetSecretTlsArgs) ToGetSecretTlsOutput() GetSecretTlsOutput { + return i.ToGetSecretTlsOutputWithContext(context.Background()) +} + +func (i GetSecretTlsArgs) ToGetSecretTlsOutputWithContext(ctx context.Context) GetSecretTlsOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetSecretTlsOutput) +} + +func (i GetSecretTlsArgs) ToOutput(ctx context.Context) pulumix.Output[GetSecretTls] { + return pulumix.Output[GetSecretTls]{ + OutputState: i.ToGetSecretTlsOutputWithContext(ctx).OutputState, + } +} + +func (i GetSecretTlsArgs) ToGetSecretTlsPtrOutput() GetSecretTlsPtrOutput { + return i.ToGetSecretTlsPtrOutputWithContext(context.Background()) +} + +func (i GetSecretTlsArgs) ToGetSecretTlsPtrOutputWithContext(ctx context.Context) GetSecretTlsPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetSecretTlsOutput).ToGetSecretTlsPtrOutputWithContext(ctx) +} + +// GetSecretTlsPtrInput is an input type that accepts GetSecretTlsArgs, GetSecretTlsPtr and GetSecretTlsPtrOutput values. +// You can construct a concrete instance of `GetSecretTlsPtrInput` via: +// +// GetSecretTlsArgs{...} +// +// or: +// +// nil +type GetSecretTlsPtrInput interface { + pulumi.Input + + ToGetSecretTlsPtrOutput() GetSecretTlsPtrOutput + ToGetSecretTlsPtrOutputWithContext(context.Context) GetSecretTlsPtrOutput +} + +type getSecretTlsPtrType GetSecretTlsArgs + +func GetSecretTlsPtr(v *GetSecretTlsArgs) GetSecretTlsPtrInput { + return (*getSecretTlsPtrType)(v) +} + +func (*getSecretTlsPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**GetSecretTls)(nil)).Elem() +} + +func (i *getSecretTlsPtrType) ToGetSecretTlsPtrOutput() GetSecretTlsPtrOutput { + return i.ToGetSecretTlsPtrOutputWithContext(context.Background()) +} + +func (i *getSecretTlsPtrType) ToGetSecretTlsPtrOutputWithContext(ctx context.Context) GetSecretTlsPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetSecretTlsPtrOutput) +} + +func (i *getSecretTlsPtrType) ToOutput(ctx context.Context) pulumix.Output[*GetSecretTls] { + return pulumix.Output[*GetSecretTls]{ + OutputState: i.ToGetSecretTlsPtrOutputWithContext(ctx).OutputState, + } +} + +type GetSecretTlsOutput struct{ *pulumi.OutputState } + +func (GetSecretTlsOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GetSecretTls)(nil)).Elem() +} + +func (o GetSecretTlsOutput) ToGetSecretTlsOutput() GetSecretTlsOutput { + return o +} + +func (o GetSecretTlsOutput) ToGetSecretTlsOutputWithContext(ctx context.Context) GetSecretTlsOutput { + return o +} + +func (o GetSecretTlsOutput) ToGetSecretTlsPtrOutput() GetSecretTlsPtrOutput { + return o.ToGetSecretTlsPtrOutputWithContext(context.Background()) +} + +func (o GetSecretTlsOutput) ToGetSecretTlsPtrOutputWithContext(ctx context.Context) GetSecretTlsPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v GetSecretTls) *GetSecretTls { + return &v + }).(GetSecretTlsPtrOutput) +} + +func (o GetSecretTlsOutput) ToOutput(ctx context.Context) pulumix.Output[GetSecretTls] { + return pulumix.Output[GetSecretTls]{ + OutputState: o.OutputState, + } +} + +func (o GetSecretTlsOutput) Cert() pulumi.StringOutput { + return o.ApplyT(func(v GetSecretTls) string { return v.Cert }).(pulumi.StringOutput) +} + +func (o GetSecretTlsOutput) Chain() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetSecretTls) *string { return v.Chain }).(pulumi.StringPtrOutput) +} + +func (o GetSecretTlsOutput) Key() pulumi.StringOutput { + return o.ApplyT(func(v GetSecretTls) string { return v.Key }).(pulumi.StringOutput) +} + +type GetSecretTlsPtrOutput struct{ *pulumi.OutputState } + +func (GetSecretTlsPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**GetSecretTls)(nil)).Elem() +} + +func (o GetSecretTlsPtrOutput) ToGetSecretTlsPtrOutput() GetSecretTlsPtrOutput { + return o +} + +func (o GetSecretTlsPtrOutput) ToGetSecretTlsPtrOutputWithContext(ctx context.Context) GetSecretTlsPtrOutput { + return o +} + +func (o GetSecretTlsPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*GetSecretTls] { + return pulumix.Output[*GetSecretTls]{ + OutputState: o.OutputState, + } +} + +func (o GetSecretTlsPtrOutput) Elem() GetSecretTlsOutput { + return o.ApplyT(func(v *GetSecretTls) GetSecretTls { + if v != nil { + return *v + } + var ret GetSecretTls + return ret + }).(GetSecretTlsOutput) +} + +func (o GetSecretTlsPtrOutput) Cert() pulumi.StringPtrOutput { + return o.ApplyT(func(v *GetSecretTls) *string { + if v == nil { + return nil + } + return &v.Cert + }).(pulumi.StringPtrOutput) +} + +func (o GetSecretTlsPtrOutput) Chain() pulumi.StringPtrOutput { + return o.ApplyT(func(v *GetSecretTls) *string { + if v == nil { + return nil + } + return v.Chain + }).(pulumi.StringPtrOutput) +} + +func (o GetSecretTlsPtrOutput) Key() pulumi.StringPtrOutput { + return o.ApplyT(func(v *GetSecretTls) *string { + if v == nil { + return nil + } + return &v.Key + }).(pulumi.StringPtrOutput) +} + +type GetSecretUserpass struct { + Encoding *string `pulumi:"encoding"` + Password string `pulumi:"password"` + Username string `pulumi:"username"` +} + +// GetSecretUserpassInput is an input type that accepts GetSecretUserpassArgs and GetSecretUserpassOutput values. +// You can construct a concrete instance of `GetSecretUserpassInput` via: +// +// GetSecretUserpassArgs{...} +type GetSecretUserpassInput interface { + pulumi.Input + + ToGetSecretUserpassOutput() GetSecretUserpassOutput + ToGetSecretUserpassOutputWithContext(context.Context) GetSecretUserpassOutput +} + +type GetSecretUserpassArgs struct { + Encoding pulumi.StringPtrInput `pulumi:"encoding"` + Password pulumi.StringInput `pulumi:"password"` + Username pulumi.StringInput `pulumi:"username"` +} + +func (GetSecretUserpassArgs) ElementType() reflect.Type { + return reflect.TypeOf((*GetSecretUserpass)(nil)).Elem() +} + +func (i GetSecretUserpassArgs) ToGetSecretUserpassOutput() GetSecretUserpassOutput { + return i.ToGetSecretUserpassOutputWithContext(context.Background()) +} + +func (i GetSecretUserpassArgs) ToGetSecretUserpassOutputWithContext(ctx context.Context) GetSecretUserpassOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetSecretUserpassOutput) +} + +func (i GetSecretUserpassArgs) ToOutput(ctx context.Context) pulumix.Output[GetSecretUserpass] { + return pulumix.Output[GetSecretUserpass]{ + OutputState: i.ToGetSecretUserpassOutputWithContext(ctx).OutputState, + } +} + +func (i GetSecretUserpassArgs) ToGetSecretUserpassPtrOutput() GetSecretUserpassPtrOutput { + return i.ToGetSecretUserpassPtrOutputWithContext(context.Background()) +} + +func (i GetSecretUserpassArgs) ToGetSecretUserpassPtrOutputWithContext(ctx context.Context) GetSecretUserpassPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetSecretUserpassOutput).ToGetSecretUserpassPtrOutputWithContext(ctx) +} + +// GetSecretUserpassPtrInput is an input type that accepts GetSecretUserpassArgs, GetSecretUserpassPtr and GetSecretUserpassPtrOutput values. +// You can construct a concrete instance of `GetSecretUserpassPtrInput` via: +// +// GetSecretUserpassArgs{...} +// +// or: +// +// nil +type GetSecretUserpassPtrInput interface { + pulumi.Input + + ToGetSecretUserpassPtrOutput() GetSecretUserpassPtrOutput + ToGetSecretUserpassPtrOutputWithContext(context.Context) GetSecretUserpassPtrOutput +} + +type getSecretUserpassPtrType GetSecretUserpassArgs + +func GetSecretUserpassPtr(v *GetSecretUserpassArgs) GetSecretUserpassPtrInput { + return (*getSecretUserpassPtrType)(v) +} + +func (*getSecretUserpassPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**GetSecretUserpass)(nil)).Elem() +} + +func (i *getSecretUserpassPtrType) ToGetSecretUserpassPtrOutput() GetSecretUserpassPtrOutput { + return i.ToGetSecretUserpassPtrOutputWithContext(context.Background()) +} + +func (i *getSecretUserpassPtrType) ToGetSecretUserpassPtrOutputWithContext(ctx context.Context) GetSecretUserpassPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetSecretUserpassPtrOutput) +} + +func (i *getSecretUserpassPtrType) ToOutput(ctx context.Context) pulumix.Output[*GetSecretUserpass] { + return pulumix.Output[*GetSecretUserpass]{ + OutputState: i.ToGetSecretUserpassPtrOutputWithContext(ctx).OutputState, + } +} + +type GetSecretUserpassOutput struct{ *pulumi.OutputState } + +func (GetSecretUserpassOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GetSecretUserpass)(nil)).Elem() +} + +func (o GetSecretUserpassOutput) ToGetSecretUserpassOutput() GetSecretUserpassOutput { + return o +} + +func (o GetSecretUserpassOutput) ToGetSecretUserpassOutputWithContext(ctx context.Context) GetSecretUserpassOutput { + return o +} + +func (o GetSecretUserpassOutput) ToGetSecretUserpassPtrOutput() GetSecretUserpassPtrOutput { + return o.ToGetSecretUserpassPtrOutputWithContext(context.Background()) +} + +func (o GetSecretUserpassOutput) ToGetSecretUserpassPtrOutputWithContext(ctx context.Context) GetSecretUserpassPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v GetSecretUserpass) *GetSecretUserpass { + return &v + }).(GetSecretUserpassPtrOutput) +} + +func (o GetSecretUserpassOutput) ToOutput(ctx context.Context) pulumix.Output[GetSecretUserpass] { + return pulumix.Output[GetSecretUserpass]{ + OutputState: o.OutputState, + } +} + +func (o GetSecretUserpassOutput) Encoding() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetSecretUserpass) *string { return v.Encoding }).(pulumi.StringPtrOutput) +} + +func (o GetSecretUserpassOutput) Password() pulumi.StringOutput { + return o.ApplyT(func(v GetSecretUserpass) string { return v.Password }).(pulumi.StringOutput) +} + +func (o GetSecretUserpassOutput) Username() pulumi.StringOutput { + return o.ApplyT(func(v GetSecretUserpass) string { return v.Username }).(pulumi.StringOutput) +} + +type GetSecretUserpassPtrOutput struct{ *pulumi.OutputState } + +func (GetSecretUserpassPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**GetSecretUserpass)(nil)).Elem() +} + +func (o GetSecretUserpassPtrOutput) ToGetSecretUserpassPtrOutput() GetSecretUserpassPtrOutput { + return o +} + +func (o GetSecretUserpassPtrOutput) ToGetSecretUserpassPtrOutputWithContext(ctx context.Context) GetSecretUserpassPtrOutput { + return o +} + +func (o GetSecretUserpassPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*GetSecretUserpass] { + return pulumix.Output[*GetSecretUserpass]{ + OutputState: o.OutputState, + } +} + +func (o GetSecretUserpassPtrOutput) Elem() GetSecretUserpassOutput { + return o.ApplyT(func(v *GetSecretUserpass) GetSecretUserpass { + if v != nil { + return *v + } + var ret GetSecretUserpass + return ret + }).(GetSecretUserpassOutput) +} + +func (o GetSecretUserpassPtrOutput) Encoding() pulumi.StringPtrOutput { + return o.ApplyT(func(v *GetSecretUserpass) *string { + if v == nil { + return nil + } + return v.Encoding + }).(pulumi.StringPtrOutput) +} + +func (o GetSecretUserpassPtrOutput) Password() pulumi.StringPtrOutput { + return o.ApplyT(func(v *GetSecretUserpass) *string { + if v == nil { + return nil + } + return &v.Password + }).(pulumi.StringPtrOutput) +} + +func (o GetSecretUserpassPtrOutput) Username() pulumi.StringPtrOutput { + return o.ApplyT(func(v *GetSecretUserpass) *string { + if v == nil { + return nil + } + return &v.Username + }).(pulumi.StringPtrOutput) +} + func init() { pulumi.RegisterInputType(reflect.TypeOf((*CloudAccountAwsInput)(nil)).Elem(), CloudAccountAwsArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*CloudAccountAwsPtrInput)(nil)).Elem(), CloudAccountAwsArgs{}) @@ -29942,6 +31436,10 @@ func init() { pulumi.RegisterInputType(reflect.TypeOf((*WorkloadLoadBalancerDirectPtrInput)(nil)).Elem(), WorkloadLoadBalancerDirectArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*WorkloadLoadBalancerDirectPortInput)(nil)).Elem(), WorkloadLoadBalancerDirectPortArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*WorkloadLoadBalancerDirectPortArrayInput)(nil)).Elem(), WorkloadLoadBalancerDirectPortArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*WorkloadLoadBalancerGeoLocationInput)(nil)).Elem(), WorkloadLoadBalancerGeoLocationArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*WorkloadLoadBalancerGeoLocationPtrInput)(nil)).Elem(), WorkloadLoadBalancerGeoLocationArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*WorkloadLoadBalancerGeoLocationHeadersInput)(nil)).Elem(), WorkloadLoadBalancerGeoLocationHeadersArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*WorkloadLoadBalancerGeoLocationHeadersPtrInput)(nil)).Elem(), WorkloadLoadBalancerGeoLocationHeadersArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*WorkloadLocalOptionInput)(nil)).Elem(), WorkloadLocalOptionArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*WorkloadLocalOptionArrayInput)(nil)).Elem(), WorkloadLocalOptionArray{}) pulumi.RegisterInputType(reflect.TypeOf((*WorkloadLocalOptionAutoscalingInput)(nil)).Elem(), WorkloadLocalOptionAutoscalingArgs{}) @@ -29954,10 +31452,6 @@ func init() { pulumi.RegisterInputType(reflect.TypeOf((*WorkloadRolloutOptionsPtrInput)(nil)).Elem(), WorkloadRolloutOptionsArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*WorkloadSecurityOptionsInput)(nil)).Elem(), WorkloadSecurityOptionsArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*WorkloadSecurityOptionsPtrInput)(nil)).Elem(), WorkloadSecurityOptionsArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*WorkloadSecurityOptionsGeoLocationInput)(nil)).Elem(), WorkloadSecurityOptionsGeoLocationArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*WorkloadSecurityOptionsGeoLocationPtrInput)(nil)).Elem(), WorkloadSecurityOptionsGeoLocationArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*WorkloadSecurityOptionsGeoLocationHeadersInput)(nil)).Elem(), WorkloadSecurityOptionsGeoLocationHeadersArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*WorkloadSecurityOptionsGeoLocationHeadersPtrInput)(nil)).Elem(), WorkloadSecurityOptionsGeoLocationHeadersArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*WorkloadSidecarInput)(nil)).Elem(), WorkloadSidecarArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*WorkloadSidecarPtrInput)(nil)).Elem(), WorkloadSidecarArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*WorkloadStatusInput)(nil)).Elem(), WorkloadStatusArgs{}) @@ -30008,6 +31502,22 @@ func init() { pulumi.RegisterInputType(reflect.TypeOf((*GetLocationsLocationArrayInput)(nil)).Elem(), GetLocationsLocationArray{}) pulumi.RegisterInputType(reflect.TypeOf((*GetLocationsLocationGeoInput)(nil)).Elem(), GetLocationsLocationGeoArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*GetLocationsLocationGeoArrayInput)(nil)).Elem(), GetLocationsLocationGeoArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*GetSecretAwsInput)(nil)).Elem(), GetSecretAwsArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*GetSecretAwsPtrInput)(nil)).Elem(), GetSecretAwsArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*GetSecretAzureConnectorInput)(nil)).Elem(), GetSecretAzureConnectorArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*GetSecretAzureConnectorPtrInput)(nil)).Elem(), GetSecretAzureConnectorArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*GetSecretEcrInput)(nil)).Elem(), GetSecretEcrArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*GetSecretEcrPtrInput)(nil)).Elem(), GetSecretEcrArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*GetSecretKeypairInput)(nil)).Elem(), GetSecretKeypairArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*GetSecretKeypairPtrInput)(nil)).Elem(), GetSecretKeypairArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*GetSecretNatsAccountInput)(nil)).Elem(), GetSecretNatsAccountArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*GetSecretNatsAccountPtrInput)(nil)).Elem(), GetSecretNatsAccountArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*GetSecretOpaqueInput)(nil)).Elem(), GetSecretOpaqueArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*GetSecretOpaquePtrInput)(nil)).Elem(), GetSecretOpaqueArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*GetSecretTlsInput)(nil)).Elem(), GetSecretTlsArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*GetSecretTlsPtrInput)(nil)).Elem(), GetSecretTlsArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*GetSecretUserpassInput)(nil)).Elem(), GetSecretUserpassArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*GetSecretUserpassPtrInput)(nil)).Elem(), GetSecretUserpassArgs{}) pulumi.RegisterOutputType(CloudAccountAwsOutput{}) pulumi.RegisterOutputType(CloudAccountAwsPtrOutput{}) pulumi.RegisterOutputType(CloudAccountAzureOutput{}) @@ -30298,6 +31808,10 @@ func init() { pulumi.RegisterOutputType(WorkloadLoadBalancerDirectPtrOutput{}) pulumi.RegisterOutputType(WorkloadLoadBalancerDirectPortOutput{}) pulumi.RegisterOutputType(WorkloadLoadBalancerDirectPortArrayOutput{}) + pulumi.RegisterOutputType(WorkloadLoadBalancerGeoLocationOutput{}) + pulumi.RegisterOutputType(WorkloadLoadBalancerGeoLocationPtrOutput{}) + pulumi.RegisterOutputType(WorkloadLoadBalancerGeoLocationHeadersOutput{}) + pulumi.RegisterOutputType(WorkloadLoadBalancerGeoLocationHeadersPtrOutput{}) pulumi.RegisterOutputType(WorkloadLocalOptionOutput{}) pulumi.RegisterOutputType(WorkloadLocalOptionArrayOutput{}) pulumi.RegisterOutputType(WorkloadLocalOptionAutoscalingOutput{}) @@ -30310,10 +31824,6 @@ func init() { pulumi.RegisterOutputType(WorkloadRolloutOptionsPtrOutput{}) pulumi.RegisterOutputType(WorkloadSecurityOptionsOutput{}) pulumi.RegisterOutputType(WorkloadSecurityOptionsPtrOutput{}) - pulumi.RegisterOutputType(WorkloadSecurityOptionsGeoLocationOutput{}) - pulumi.RegisterOutputType(WorkloadSecurityOptionsGeoLocationPtrOutput{}) - pulumi.RegisterOutputType(WorkloadSecurityOptionsGeoLocationHeadersOutput{}) - pulumi.RegisterOutputType(WorkloadSecurityOptionsGeoLocationHeadersPtrOutput{}) pulumi.RegisterOutputType(WorkloadSidecarOutput{}) pulumi.RegisterOutputType(WorkloadSidecarPtrOutput{}) pulumi.RegisterOutputType(WorkloadStatusOutput{}) @@ -30364,4 +31874,20 @@ func init() { pulumi.RegisterOutputType(GetLocationsLocationArrayOutput{}) pulumi.RegisterOutputType(GetLocationsLocationGeoOutput{}) pulumi.RegisterOutputType(GetLocationsLocationGeoArrayOutput{}) + pulumi.RegisterOutputType(GetSecretAwsOutput{}) + pulumi.RegisterOutputType(GetSecretAwsPtrOutput{}) + pulumi.RegisterOutputType(GetSecretAzureConnectorOutput{}) + pulumi.RegisterOutputType(GetSecretAzureConnectorPtrOutput{}) + pulumi.RegisterOutputType(GetSecretEcrOutput{}) + pulumi.RegisterOutputType(GetSecretEcrPtrOutput{}) + pulumi.RegisterOutputType(GetSecretKeypairOutput{}) + pulumi.RegisterOutputType(GetSecretKeypairPtrOutput{}) + pulumi.RegisterOutputType(GetSecretNatsAccountOutput{}) + pulumi.RegisterOutputType(GetSecretNatsAccountPtrOutput{}) + pulumi.RegisterOutputType(GetSecretOpaqueOutput{}) + pulumi.RegisterOutputType(GetSecretOpaquePtrOutput{}) + pulumi.RegisterOutputType(GetSecretTlsOutput{}) + pulumi.RegisterOutputType(GetSecretTlsPtrOutput{}) + pulumi.RegisterOutputType(GetSecretUserpassOutput{}) + pulumi.RegisterOutputType(GetSecretUserpassPtrOutput{}) } diff --git a/sdk/nodejs/getSecret.ts b/sdk/nodejs/getSecret.ts new file mode 100644 index 0000000..bf02b99 --- /dev/null +++ b/sdk/nodejs/getSecret.ts @@ -0,0 +1,361 @@ +// *** 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! *** + +import * as pulumi from "@pulumi/pulumi"; +import * as inputs from "./types/input"; +import * as outputs from "./types/output"; +import * as utilities from "./utilities"; + +/** + * Use this data source to access information about a [Secret](https://docs.controlplane.com/reference/secret) within Control Plane. + * + * ## Required + * + * - **name** (String) Name of the secret. + * + * ## Outputs + * + * The following attributes are exported: + * + * - **cpln_id** (String) The ID, in GUID format, of the secret. + * - **name** (String) Name of the secret. + * - **description** (String) Description of the secret. + * - **tags** (Map of String) Key-value map of resource tags. + * - **self_link** (String) Full link to this resource. Can be referenced by other resources. + * - **secret_link** (String) Output used when linking a secret to an environment variable or volume, in the format: `cpln://secret/SECRET_NAME`. + * - **dictionary_as_envs** (Map of String) If a dictionary secret is defined, this output will be a key-value map in the following format: `key = cpln://secret/SECRET_NAME.key`. + * - **aws** (Block List, Max: 1) (see below) [Reference Page](https://docs.controlplane.com/reference/secret#aws). + * - **azure_connector** (Block List, Max: 1) (see below) [Reference Page](https://docs.controlplane.com/reference/secret#azure-connector). + * - **azure_sdk** (String, Sensitive) JSON string containing the Docker secret. [Reference Page](https://docs.controlplane.com/reference/secret#azure). + * - **dictionary** (Map of String) List of unique key-value pairs. [Reference Page](https://docs.controlplane.com/reference/secret#dictionary). + * - **docker** (String, Sensitive) JSON string containing the Docker secret. [Reference Page](https://docs.controlplane.com/reference/secret#docker). + * - **ecr** (Block List, Max: 1) (see below). + * - **gcp** (String, Sensitive) JSON string containing the GCP secret. [Reference Page](https://docs.controlplane.com/reference/secret#gcp) + * - **keypair** (Block List, Max: 1) (see below) [Reference Page](https://docs.controlplane.com/reference/secret#keypair). + * - **nats_account** (Block List, Max: 1) (see below) [Reference Page](https://docs.controlplane.com/reference/secret#nats-account). + * - **opaque** (Block List, Max: 1) (see below) [Reference Page](https://docs.controlplane.com/reference/secret#opaque). + * - **tls** (Block List, Max: 1) (see below) [Reference Page](https://docs.controlplane.com/reference/secret#tls). + * - **userpass** (Block List, Max: 1) (see below) [Reference Page](https://docs.controlplane.com/reference/secret#username). + * + * + * + * ### `aws` + * + * Optional: + * + * - **access_key** (String, Sensitive) Access Key provided by AWS. + * - **role_arn** (String) Role ARN provided by AWS. + * - **secret_key** (String, Sensitive) Secret Key provided by AWS. + * - **external_id** (String) AWS IAM Role External ID. + * + * + * + * ### `azureConnector` + * + * Optional: + * + * - **code** (String, Sensitive) Code/Key to authenticate to deployment URL. + * - **url** (String, Sensitive) Deployment URL. + * + * + * + * ### `ecr` + * + * [Reference Page](https://docs.controlplane.com/reference/secret#ecr) + * + * Optional: + * + * - **access_key** (String) Access Key provided by AWS. + * - **repos** (Set of String) List of ECR repositories. + * - **role_arn** (String) Role ARN provided by AWS. + * - **secret_key** (String, Sensitive) Secret Key provided by AWS. + * - **external_id** (String) AWS IAM Role External ID. Used when setting up cross-account access to your ECR repositories. + * + * + * + * ### `keypair` + * + * Optional: + * + * - **passphrase** (String, Sensitive) Passphrase for private key. + * - **public_key** (String) Public Key. + * - **secret_key** (String, Sensitive) Secret/Private Key. + * + * + * + * ### `natsAccount` + * + * Required: + * + * - **account_id** (String) Account ID. + * - **private_key** (String) Private Key. + * + * + * + * ### `opaque` + * + * Optional: + * + * - **encoding** (String) Available encodings: `plain`, `base64`. Default: `plain`. + * - **payload** (String, Sensitive) Plain text or base64 encoded string. Use `encoding` attribute to specify encoding. + * + * + * + * ### `tls` + * + * Optional: + * + * - **cert** (String) Public Certificate. + * - **chain** (String) Chain Certificate. + * - **key** (String, Sensitive) Private Certificate. + * + * + * + * ### `userpass` + * + * Optional: + * + * - **encoding** (String) Available encodings: `plain`, `base64`. Default: `plain`. + * - **password** (String, Sensitive) Password. + * - **username** (String) Username. + * + * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as cpln from "@pulumi/cpln"; + * + * export = async () => { + * const example = await cpln.getSecret({ + * name: "example-secret-opaque", + * }); + * return { + * "example-secret-payload": example.opaque?.payload, + * }; + * } + * ``` + */ +export function getSecret(args: GetSecretArgs, opts?: pulumi.InvokeOptions): Promise { + + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invoke("cpln:index/getSecret:getSecret", { + "aws": args.aws, + "azureConnector": args.azureConnector, + "azureSdk": args.azureSdk, + "description": args.description, + "dictionary": args.dictionary, + "docker": args.docker, + "ecr": args.ecr, + "gcp": args.gcp, + "keypair": args.keypair, + "name": args.name, + "natsAccount": args.natsAccount, + "opaque": args.opaque, + "tags": args.tags, + "tls": args.tls, + "userpass": args.userpass, + }, opts); +} + +/** + * A collection of arguments for invoking getSecret. + */ +export interface GetSecretArgs { + aws?: inputs.GetSecretAws; + azureConnector?: inputs.GetSecretAzureConnector; + azureSdk?: string; + description?: string; + dictionary?: {[key: string]: string}; + docker?: string; + ecr?: inputs.GetSecretEcr; + gcp?: string; + keypair?: inputs.GetSecretKeypair; + name: string; + natsAccount?: inputs.GetSecretNatsAccount; + opaque?: inputs.GetSecretOpaque; + tags?: {[key: string]: string}; + tls?: inputs.GetSecretTls; + userpass?: inputs.GetSecretUserpass; +} + +/** + * A collection of values returned by getSecret. + */ +export interface GetSecretResult { + readonly aws?: outputs.GetSecretAws; + readonly azureConnector?: outputs.GetSecretAzureConnector; + readonly azureSdk?: string; + readonly cplnId: string; + readonly description?: string; + readonly dictionary?: {[key: string]: string}; + readonly dictionaryAsEnvs: {[key: string]: any}; + readonly docker?: string; + readonly ecr?: outputs.GetSecretEcr; + readonly gcp?: string; + /** + * The provider-assigned unique ID for this managed resource. + */ + readonly id: string; + readonly keypair?: outputs.GetSecretKeypair; + readonly name: string; + readonly natsAccount?: outputs.GetSecretNatsAccount; + readonly opaque?: outputs.GetSecretOpaque; + readonly secretLink: string; + readonly selfLink: string; + readonly tags?: {[key: string]: string}; + readonly tls?: outputs.GetSecretTls; + readonly userpass?: outputs.GetSecretUserpass; +} +/** + * Use this data source to access information about a [Secret](https://docs.controlplane.com/reference/secret) within Control Plane. + * + * ## Required + * + * - **name** (String) Name of the secret. + * + * ## Outputs + * + * The following attributes are exported: + * + * - **cpln_id** (String) The ID, in GUID format, of the secret. + * - **name** (String) Name of the secret. + * - **description** (String) Description of the secret. + * - **tags** (Map of String) Key-value map of resource tags. + * - **self_link** (String) Full link to this resource. Can be referenced by other resources. + * - **secret_link** (String) Output used when linking a secret to an environment variable or volume, in the format: `cpln://secret/SECRET_NAME`. + * - **dictionary_as_envs** (Map of String) If a dictionary secret is defined, this output will be a key-value map in the following format: `key = cpln://secret/SECRET_NAME.key`. + * - **aws** (Block List, Max: 1) (see below) [Reference Page](https://docs.controlplane.com/reference/secret#aws). + * - **azure_connector** (Block List, Max: 1) (see below) [Reference Page](https://docs.controlplane.com/reference/secret#azure-connector). + * - **azure_sdk** (String, Sensitive) JSON string containing the Docker secret. [Reference Page](https://docs.controlplane.com/reference/secret#azure). + * - **dictionary** (Map of String) List of unique key-value pairs. [Reference Page](https://docs.controlplane.com/reference/secret#dictionary). + * - **docker** (String, Sensitive) JSON string containing the Docker secret. [Reference Page](https://docs.controlplane.com/reference/secret#docker). + * - **ecr** (Block List, Max: 1) (see below). + * - **gcp** (String, Sensitive) JSON string containing the GCP secret. [Reference Page](https://docs.controlplane.com/reference/secret#gcp) + * - **keypair** (Block List, Max: 1) (see below) [Reference Page](https://docs.controlplane.com/reference/secret#keypair). + * - **nats_account** (Block List, Max: 1) (see below) [Reference Page](https://docs.controlplane.com/reference/secret#nats-account). + * - **opaque** (Block List, Max: 1) (see below) [Reference Page](https://docs.controlplane.com/reference/secret#opaque). + * - **tls** (Block List, Max: 1) (see below) [Reference Page](https://docs.controlplane.com/reference/secret#tls). + * - **userpass** (Block List, Max: 1) (see below) [Reference Page](https://docs.controlplane.com/reference/secret#username). + * + * + * + * ### `aws` + * + * Optional: + * + * - **access_key** (String, Sensitive) Access Key provided by AWS. + * - **role_arn** (String) Role ARN provided by AWS. + * - **secret_key** (String, Sensitive) Secret Key provided by AWS. + * - **external_id** (String) AWS IAM Role External ID. + * + * + * + * ### `azureConnector` + * + * Optional: + * + * - **code** (String, Sensitive) Code/Key to authenticate to deployment URL. + * - **url** (String, Sensitive) Deployment URL. + * + * + * + * ### `ecr` + * + * [Reference Page](https://docs.controlplane.com/reference/secret#ecr) + * + * Optional: + * + * - **access_key** (String) Access Key provided by AWS. + * - **repos** (Set of String) List of ECR repositories. + * - **role_arn** (String) Role ARN provided by AWS. + * - **secret_key** (String, Sensitive) Secret Key provided by AWS. + * - **external_id** (String) AWS IAM Role External ID. Used when setting up cross-account access to your ECR repositories. + * + * + * + * ### `keypair` + * + * Optional: + * + * - **passphrase** (String, Sensitive) Passphrase for private key. + * - **public_key** (String) Public Key. + * - **secret_key** (String, Sensitive) Secret/Private Key. + * + * + * + * ### `natsAccount` + * + * Required: + * + * - **account_id** (String) Account ID. + * - **private_key** (String) Private Key. + * + * + * + * ### `opaque` + * + * Optional: + * + * - **encoding** (String) Available encodings: `plain`, `base64`. Default: `plain`. + * - **payload** (String, Sensitive) Plain text or base64 encoded string. Use `encoding` attribute to specify encoding. + * + * + * + * ### `tls` + * + * Optional: + * + * - **cert** (String) Public Certificate. + * - **chain** (String) Chain Certificate. + * - **key** (String, Sensitive) Private Certificate. + * + * + * + * ### `userpass` + * + * Optional: + * + * - **encoding** (String) Available encodings: `plain`, `base64`. Default: `plain`. + * - **password** (String, Sensitive) Password. + * - **username** (String) Username. + * + * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as cpln from "@pulumi/cpln"; + * + * export = async () => { + * const example = await cpln.getSecret({ + * name: "example-secret-opaque", + * }); + * return { + * "example-secret-payload": example.opaque?.payload, + * }; + * } + * ``` + */ +export function getSecretOutput(args: GetSecretOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { + return pulumi.output(args).apply((a: any) => getSecret(a, opts)) +} + +/** + * A collection of arguments for invoking getSecret. + */ +export interface GetSecretOutputArgs { + aws?: pulumi.Input; + azureConnector?: pulumi.Input; + azureSdk?: pulumi.Input; + description?: pulumi.Input; + dictionary?: pulumi.Input<{[key: string]: pulumi.Input}>; + docker?: pulumi.Input; + ecr?: pulumi.Input; + gcp?: pulumi.Input; + keypair?: pulumi.Input; + name: pulumi.Input; + natsAccount?: pulumi.Input; + opaque?: pulumi.Input; + tags?: pulumi.Input<{[key: string]: pulumi.Input}>; + tls?: pulumi.Input; + userpass?: pulumi.Input; +} diff --git a/sdk/nodejs/index.ts b/sdk/nodejs/index.ts index 14cbd9a..fd831d1 100644 --- a/sdk/nodejs/index.ts +++ b/sdk/nodejs/index.ts @@ -70,6 +70,11 @@ export const getOrg: typeof import("./getOrg").getOrg = null as any; export const getOrgOutput: typeof import("./getOrg").getOrgOutput = null as any; utilities.lazyLoad(exports, ["getOrg","getOrgOutput"], () => require("./getOrg")); +export { GetSecretArgs, GetSecretResult, GetSecretOutputArgs } from "./getSecret"; +export const getSecret: typeof import("./getSecret").getSecret = null as any; +export const getSecretOutput: typeof import("./getSecret").getSecretOutput = null as any; +utilities.lazyLoad(exports, ["getSecret","getSecretOutput"], () => require("./getSecret")); + export { GroupArgs, GroupState } from "./group"; export type Group = import("./group").Group; export const Group: typeof import("./group").Group = null as any; diff --git a/sdk/nodejs/tsconfig.json b/sdk/nodejs/tsconfig.json index 919caec..4ec76a2 100644 --- a/sdk/nodejs/tsconfig.json +++ b/sdk/nodejs/tsconfig.json @@ -28,6 +28,7 @@ "getLocation.ts", "getLocations.ts", "getOrg.ts", + "getSecret.ts", "group.ts", "gvc.ts", "identity.ts", diff --git a/sdk/nodejs/types/input.ts b/sdk/nodejs/types/input.ts index aeb5c35..1268fbb 100644 --- a/sdk/nodejs/types/input.ts +++ b/sdk/nodejs/types/input.ts @@ -187,6 +187,102 @@ export interface GetImagesQuerySpecTermArgs { value?: pulumi.Input; } +export interface GetSecretAws { + accessKey: string; + externalId?: string; + roleArn?: string; + secretKey: string; +} + +export interface GetSecretAwsArgs { + accessKey: pulumi.Input; + externalId?: pulumi.Input; + roleArn?: pulumi.Input; + secretKey: pulumi.Input; +} + +export interface GetSecretAzureConnector { + code: string; + url: string; +} + +export interface GetSecretAzureConnectorArgs { + code: pulumi.Input; + url: pulumi.Input; +} + +export interface GetSecretEcr { + accessKey: string; + externalId?: string; + repos: string[]; + roleArn?: string; + secretKey: string; +} + +export interface GetSecretEcrArgs { + accessKey: pulumi.Input; + externalId?: pulumi.Input; + repos: pulumi.Input[]>; + roleArn?: pulumi.Input; + secretKey: pulumi.Input; +} + +export interface GetSecretKeypair { + passphrase?: string; + publicKey?: string; + secretKey: string; +} + +export interface GetSecretKeypairArgs { + passphrase?: pulumi.Input; + publicKey?: pulumi.Input; + secretKey: pulumi.Input; +} + +export interface GetSecretNatsAccount { + accountId: string; + privateKey: string; +} + +export interface GetSecretNatsAccountArgs { + accountId: pulumi.Input; + privateKey: pulumi.Input; +} + +export interface GetSecretOpaque { + encoding?: string; + payload: string; +} + +export interface GetSecretOpaqueArgs { + encoding?: pulumi.Input; + payload: pulumi.Input; +} + +export interface GetSecretTls { + cert: string; + chain?: string; + key: string; +} + +export interface GetSecretTlsArgs { + cert: pulumi.Input; + chain?: pulumi.Input; + key: pulumi.Input; +} + +export interface GetSecretUserpass { + encoding?: string; + password: string; + username: string; +} + +export interface GetSecretUserpassArgs { + encoding?: pulumi.Input; + password: pulumi.Input; + username: pulumi.Input; +} + export interface GroupIdentityMatcher { expression: pulumi.Input; language?: pulumi.Input; @@ -987,6 +1083,7 @@ export interface WorkloadJob { export interface WorkloadLoadBalancer { direct?: pulumi.Input; + geoLocation?: pulumi.Input; } export interface WorkloadLoadBalancerDirect { @@ -1001,6 +1098,18 @@ export interface WorkloadLoadBalancerDirectPort { scheme?: pulumi.Input; } +export interface WorkloadLoadBalancerGeoLocation { + enabled?: pulumi.Input; + headers?: pulumi.Input; +} + +export interface WorkloadLoadBalancerGeoLocationHeaders { + asn?: pulumi.Input; + city?: pulumi.Input; + country?: pulumi.Input; + region?: pulumi.Input; +} + export interface WorkloadLocalOption { autoscaling?: pulumi.Input; capacityAi?: pulumi.Input; @@ -1047,19 +1156,6 @@ export interface WorkloadRolloutOptions { export interface WorkloadSecurityOptions { fileSystemGroupId?: pulumi.Input; - geoLocation?: pulumi.Input; -} - -export interface WorkloadSecurityOptionsGeoLocation { - enabled?: pulumi.Input; - headers?: pulumi.Input; -} - -export interface WorkloadSecurityOptionsGeoLocationHeaders { - asn?: pulumi.Input; - city?: pulumi.Input; - country?: pulumi.Input; - region?: pulumi.Input; } export interface WorkloadSidecar { diff --git a/sdk/nodejs/types/output.ts b/sdk/nodejs/types/output.ts index 6b58f54..5b8d849 100644 --- a/sdk/nodejs/types/output.ts +++ b/sdk/nodejs/types/output.ts @@ -222,6 +222,54 @@ export interface GetLocationsLocationGeo { state?: string; } +export interface GetSecretAws { + accessKey: string; + externalId?: string; + roleArn?: string; + secretKey: string; +} + +export interface GetSecretAzureConnector { + code: string; + url: string; +} + +export interface GetSecretEcr { + accessKey: string; + externalId?: string; + repos: string[]; + roleArn?: string; + secretKey: string; +} + +export interface GetSecretKeypair { + passphrase?: string; + publicKey?: string; + secretKey: string; +} + +export interface GetSecretNatsAccount { + accountId: string; + privateKey: string; +} + +export interface GetSecretOpaque { + encoding?: string; + payload: string; +} + +export interface GetSecretTls { + cert: string; + chain?: string; + key: string; +} + +export interface GetSecretUserpass { + encoding?: string; + password: string; + username: string; +} + export interface GroupIdentityMatcher { expression: string; language?: string; @@ -1022,6 +1070,7 @@ export interface WorkloadJob { export interface WorkloadLoadBalancer { direct?: outputs.WorkloadLoadBalancerDirect; + geoLocation?: outputs.WorkloadLoadBalancerGeoLocation; } export interface WorkloadLoadBalancerDirect { @@ -1036,6 +1085,18 @@ export interface WorkloadLoadBalancerDirectPort { scheme?: string; } +export interface WorkloadLoadBalancerGeoLocation { + enabled?: boolean; + headers?: outputs.WorkloadLoadBalancerGeoLocationHeaders; +} + +export interface WorkloadLoadBalancerGeoLocationHeaders { + asn?: string; + city?: string; + country?: string; + region?: string; +} + export interface WorkloadLocalOption { autoscaling?: outputs.WorkloadLocalOptionAutoscaling; capacityAi?: boolean; @@ -1082,19 +1143,6 @@ export interface WorkloadRolloutOptions { export interface WorkloadSecurityOptions { fileSystemGroupId?: number; - geoLocation?: outputs.WorkloadSecurityOptionsGeoLocation; -} - -export interface WorkloadSecurityOptionsGeoLocation { - enabled?: boolean; - headers?: outputs.WorkloadSecurityOptionsGeoLocationHeaders; -} - -export interface WorkloadSecurityOptionsGeoLocationHeaders { - asn?: string; - city?: string; - country?: string; - region?: string; } export interface WorkloadSidecar { diff --git a/sdk/python/pulumiverse_cpln/__init__.py b/sdk/python/pulumiverse_cpln/__init__.py index a4c323e..53756a4 100644 --- a/sdk/python/pulumiverse_cpln/__init__.py +++ b/sdk/python/pulumiverse_cpln/__init__.py @@ -18,6 +18,7 @@ from .get_location import * from .get_locations import * from .get_org import * +from .get_secret import * from .group import * from .gvc import * from .identity import * diff --git a/sdk/python/pulumiverse_cpln/_inputs.py b/sdk/python/pulumiverse_cpln/_inputs.py index 2e2a3fe..9838882 100644 --- a/sdk/python/pulumiverse_cpln/_inputs.py +++ b/sdk/python/pulumiverse_cpln/_inputs.py @@ -156,14 +156,14 @@ 'WorkloadLoadBalancerArgs', 'WorkloadLoadBalancerDirectArgs', 'WorkloadLoadBalancerDirectPortArgs', + 'WorkloadLoadBalancerGeoLocationArgs', + 'WorkloadLoadBalancerGeoLocationHeadersArgs', 'WorkloadLocalOptionArgs', 'WorkloadLocalOptionAutoscalingArgs', 'WorkloadOptionsArgs', 'WorkloadOptionsAutoscalingArgs', 'WorkloadRolloutOptionsArgs', 'WorkloadSecurityOptionsArgs', - 'WorkloadSecurityOptionsGeoLocationArgs', - 'WorkloadSecurityOptionsGeoLocationHeadersArgs', 'WorkloadSidecarArgs', 'WorkloadStatusArgs', 'WorkloadStatusHealthCheckArgs', @@ -179,6 +179,14 @@ 'GetImagesQueryArgs', 'GetImagesQuerySpecArgs', 'GetImagesQuerySpecTermArgs', + 'GetSecretAwsArgs', + 'GetSecretAzureConnectorArgs', + 'GetSecretEcrArgs', + 'GetSecretKeypairArgs', + 'GetSecretNatsAccountArgs', + 'GetSecretOpaqueArgs', + 'GetSecretTlsArgs', + 'GetSecretUserpassArgs', ] @pulumi.input_type @@ -8878,20 +8886,27 @@ def restart_policy(self, value: Optional[pulumi.Input[str]]): @pulumi.input_type class WorkloadLoadBalancerArgs: def __init__(__self__, *, - direct: Optional[pulumi.Input['WorkloadLoadBalancerDirectArgs']] = None): + direct: Optional[pulumi.Input['WorkloadLoadBalancerDirectArgs']] = None, + geo_location: Optional[pulumi.Input['WorkloadLoadBalancerGeoLocationArgs']] = None): WorkloadLoadBalancerArgs._configure( lambda key, value: pulumi.set(__self__, key, value), direct=direct, + geo_location=geo_location, ) @staticmethod def _configure( _setter: Callable[[Any, Any], None], direct: Optional[pulumi.Input['WorkloadLoadBalancerDirectArgs']] = None, + geo_location: Optional[pulumi.Input['WorkloadLoadBalancerGeoLocationArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if 'geoLocation' in kwargs: + geo_location = kwargs['geoLocation'] if direct is not None: _setter("direct", direct) + if geo_location is not None: + _setter("geo_location", geo_location) @property @pulumi.getter @@ -8902,6 +8917,15 @@ def direct(self) -> Optional[pulumi.Input['WorkloadLoadBalancerDirectArgs']]: def direct(self, value: Optional[pulumi.Input['WorkloadLoadBalancerDirectArgs']]): pulumi.set(self, "direct", value) + @property + @pulumi.getter(name="geoLocation") + def geo_location(self) -> Optional[pulumi.Input['WorkloadLoadBalancerGeoLocationArgs']]: + return pulumi.get(self, "geo_location") + + @geo_location.setter + def geo_location(self, value: Optional[pulumi.Input['WorkloadLoadBalancerGeoLocationArgs']]): + pulumi.set(self, "geo_location", value) + @pulumi.input_type class WorkloadLoadBalancerDirectArgs: @@ -9016,6 +9040,118 @@ def scheme(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "scheme", value) +@pulumi.input_type +class WorkloadLoadBalancerGeoLocationArgs: + def __init__(__self__, *, + enabled: Optional[pulumi.Input[bool]] = None, + headers: Optional[pulumi.Input['WorkloadLoadBalancerGeoLocationHeadersArgs']] = None): + WorkloadLoadBalancerGeoLocationArgs._configure( + lambda key, value: pulumi.set(__self__, key, value), + enabled=enabled, + headers=headers, + ) + @staticmethod + def _configure( + _setter: Callable[[Any, Any], None], + enabled: Optional[pulumi.Input[bool]] = None, + headers: Optional[pulumi.Input['WorkloadLoadBalancerGeoLocationHeadersArgs']] = None, + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + + if enabled is not None: + _setter("enabled", enabled) + if headers is not None: + _setter("headers", headers) + + @property + @pulumi.getter + def enabled(self) -> Optional[pulumi.Input[bool]]: + return pulumi.get(self, "enabled") + + @enabled.setter + def enabled(self, value: Optional[pulumi.Input[bool]]): + pulumi.set(self, "enabled", value) + + @property + @pulumi.getter + def headers(self) -> Optional[pulumi.Input['WorkloadLoadBalancerGeoLocationHeadersArgs']]: + return pulumi.get(self, "headers") + + @headers.setter + def headers(self, value: Optional[pulumi.Input['WorkloadLoadBalancerGeoLocationHeadersArgs']]): + pulumi.set(self, "headers", value) + + +@pulumi.input_type +class WorkloadLoadBalancerGeoLocationHeadersArgs: + def __init__(__self__, *, + asn: Optional[pulumi.Input[str]] = None, + city: Optional[pulumi.Input[str]] = None, + country: Optional[pulumi.Input[str]] = None, + region: Optional[pulumi.Input[str]] = None): + WorkloadLoadBalancerGeoLocationHeadersArgs._configure( + lambda key, value: pulumi.set(__self__, key, value), + asn=asn, + city=city, + country=country, + region=region, + ) + @staticmethod + def _configure( + _setter: Callable[[Any, Any], None], + asn: Optional[pulumi.Input[str]] = None, + city: Optional[pulumi.Input[str]] = None, + country: Optional[pulumi.Input[str]] = None, + region: Optional[pulumi.Input[str]] = None, + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + + if asn is not None: + _setter("asn", asn) + if city is not None: + _setter("city", city) + if country is not None: + _setter("country", country) + if region is not None: + _setter("region", region) + + @property + @pulumi.getter + def asn(self) -> Optional[pulumi.Input[str]]: + return pulumi.get(self, "asn") + + @asn.setter + def asn(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "asn", value) + + @property + @pulumi.getter + def city(self) -> Optional[pulumi.Input[str]]: + return pulumi.get(self, "city") + + @city.setter + def city(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "city", value) + + @property + @pulumi.getter + def country(self) -> Optional[pulumi.Input[str]]: + return pulumi.get(self, "country") + + @country.setter + def country(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "country", value) + + @property + @pulumi.getter + def region(self) -> Optional[pulumi.Input[str]]: + return pulumi.get(self, "region") + + @region.setter + def region(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "region", value) + + @pulumi.input_type class WorkloadLocalOptionArgs: def __init__(__self__, *, @@ -9530,29 +9666,22 @@ def scaling_policy(self, value: Optional[pulumi.Input[str]]): @pulumi.input_type class WorkloadSecurityOptionsArgs: def __init__(__self__, *, - file_system_group_id: Optional[pulumi.Input[int]] = None, - geo_location: Optional[pulumi.Input['WorkloadSecurityOptionsGeoLocationArgs']] = None): + file_system_group_id: Optional[pulumi.Input[int]] = None): WorkloadSecurityOptionsArgs._configure( lambda key, value: pulumi.set(__self__, key, value), file_system_group_id=file_system_group_id, - geo_location=geo_location, ) @staticmethod def _configure( _setter: Callable[[Any, Any], None], file_system_group_id: Optional[pulumi.Input[int]] = None, - geo_location: Optional[pulumi.Input['WorkloadSecurityOptionsGeoLocationArgs']] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): if 'fileSystemGroupId' in kwargs: file_system_group_id = kwargs['fileSystemGroupId'] - if 'geoLocation' in kwargs: - geo_location = kwargs['geoLocation'] if file_system_group_id is not None: _setter("file_system_group_id", file_system_group_id) - if geo_location is not None: - _setter("geo_location", geo_location) @property @pulumi.getter(name="fileSystemGroupId") @@ -9563,127 +9692,6 @@ def file_system_group_id(self) -> Optional[pulumi.Input[int]]: def file_system_group_id(self, value: Optional[pulumi.Input[int]]): pulumi.set(self, "file_system_group_id", value) - @property - @pulumi.getter(name="geoLocation") - def geo_location(self) -> Optional[pulumi.Input['WorkloadSecurityOptionsGeoLocationArgs']]: - return pulumi.get(self, "geo_location") - - @geo_location.setter - def geo_location(self, value: Optional[pulumi.Input['WorkloadSecurityOptionsGeoLocationArgs']]): - pulumi.set(self, "geo_location", value) - - -@pulumi.input_type -class WorkloadSecurityOptionsGeoLocationArgs: - def __init__(__self__, *, - enabled: Optional[pulumi.Input[bool]] = None, - headers: Optional[pulumi.Input['WorkloadSecurityOptionsGeoLocationHeadersArgs']] = None): - WorkloadSecurityOptionsGeoLocationArgs._configure( - lambda key, value: pulumi.set(__self__, key, value), - enabled=enabled, - headers=headers, - ) - @staticmethod - def _configure( - _setter: Callable[[Any, Any], None], - enabled: Optional[pulumi.Input[bool]] = None, - headers: Optional[pulumi.Input['WorkloadSecurityOptionsGeoLocationHeadersArgs']] = None, - opts: Optional[pulumi.ResourceOptions]=None, - **kwargs): - - if enabled is not None: - _setter("enabled", enabled) - if headers is not None: - _setter("headers", headers) - - @property - @pulumi.getter - def enabled(self) -> Optional[pulumi.Input[bool]]: - return pulumi.get(self, "enabled") - - @enabled.setter - def enabled(self, value: Optional[pulumi.Input[bool]]): - pulumi.set(self, "enabled", value) - - @property - @pulumi.getter - def headers(self) -> Optional[pulumi.Input['WorkloadSecurityOptionsGeoLocationHeadersArgs']]: - return pulumi.get(self, "headers") - - @headers.setter - def headers(self, value: Optional[pulumi.Input['WorkloadSecurityOptionsGeoLocationHeadersArgs']]): - pulumi.set(self, "headers", value) - - -@pulumi.input_type -class WorkloadSecurityOptionsGeoLocationHeadersArgs: - def __init__(__self__, *, - asn: Optional[pulumi.Input[str]] = None, - city: Optional[pulumi.Input[str]] = None, - country: Optional[pulumi.Input[str]] = None, - region: Optional[pulumi.Input[str]] = None): - WorkloadSecurityOptionsGeoLocationHeadersArgs._configure( - lambda key, value: pulumi.set(__self__, key, value), - asn=asn, - city=city, - country=country, - region=region, - ) - @staticmethod - def _configure( - _setter: Callable[[Any, Any], None], - asn: Optional[pulumi.Input[str]] = None, - city: Optional[pulumi.Input[str]] = None, - country: Optional[pulumi.Input[str]] = None, - region: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None, - **kwargs): - - if asn is not None: - _setter("asn", asn) - if city is not None: - _setter("city", city) - if country is not None: - _setter("country", country) - if region is not None: - _setter("region", region) - - @property - @pulumi.getter - def asn(self) -> Optional[pulumi.Input[str]]: - return pulumi.get(self, "asn") - - @asn.setter - def asn(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "asn", value) - - @property - @pulumi.getter - def city(self) -> Optional[pulumi.Input[str]]: - return pulumi.get(self, "city") - - @city.setter - def city(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "city", value) - - @property - @pulumi.getter - def country(self) -> Optional[pulumi.Input[str]]: - return pulumi.get(self, "country") - - @country.setter - def country(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "country", value) - - @property - @pulumi.getter - def region(self) -> Optional[pulumi.Input[str]]: - return pulumi.get(self, "region") - - @region.setter - def region(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "region", value) - @pulumi.input_type class WorkloadSidecarArgs: @@ -10588,3 +10596,460 @@ def property(self, value: Optional[str]): pulumi.set(self, "property", value) +@pulumi.input_type +class GetSecretAwsArgs: + def __init__(__self__, *, + access_key: str, + secret_key: str, + external_id: Optional[str] = None, + role_arn: Optional[str] = None): + GetSecretAwsArgs._configure( + lambda key, value: pulumi.set(__self__, key, value), + access_key=access_key, + secret_key=secret_key, + external_id=external_id, + role_arn=role_arn, + ) + @staticmethod + def _configure( + _setter: Callable[[Any, Any], None], + access_key: str, + secret_key: str, + external_id: Optional[str] = None, + role_arn: Optional[str] = None, + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'accessKey' in kwargs: + access_key = kwargs['accessKey'] + if 'secretKey' in kwargs: + secret_key = kwargs['secretKey'] + if 'externalId' in kwargs: + external_id = kwargs['externalId'] + if 'roleArn' in kwargs: + role_arn = kwargs['roleArn'] + + _setter("access_key", access_key) + _setter("secret_key", secret_key) + if external_id is not None: + _setter("external_id", external_id) + if role_arn is not None: + _setter("role_arn", role_arn) + + @property + @pulumi.getter(name="accessKey") + def access_key(self) -> str: + return pulumi.get(self, "access_key") + + @access_key.setter + def access_key(self, value: str): + pulumi.set(self, "access_key", value) + + @property + @pulumi.getter(name="secretKey") + def secret_key(self) -> str: + return pulumi.get(self, "secret_key") + + @secret_key.setter + def secret_key(self, value: str): + pulumi.set(self, "secret_key", value) + + @property + @pulumi.getter(name="externalId") + def external_id(self) -> Optional[str]: + return pulumi.get(self, "external_id") + + @external_id.setter + def external_id(self, value: Optional[str]): + pulumi.set(self, "external_id", value) + + @property + @pulumi.getter(name="roleArn") + def role_arn(self) -> Optional[str]: + return pulumi.get(self, "role_arn") + + @role_arn.setter + def role_arn(self, value: Optional[str]): + pulumi.set(self, "role_arn", value) + + +@pulumi.input_type +class GetSecretAzureConnectorArgs: + def __init__(__self__, *, + code: str, + url: str): + GetSecretAzureConnectorArgs._configure( + lambda key, value: pulumi.set(__self__, key, value), + code=code, + url=url, + ) + @staticmethod + def _configure( + _setter: Callable[[Any, Any], None], + code: str, + url: str, + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + + _setter("code", code) + _setter("url", url) + + @property + @pulumi.getter + def code(self) -> str: + return pulumi.get(self, "code") + + @code.setter + def code(self, value: str): + pulumi.set(self, "code", value) + + @property + @pulumi.getter + def url(self) -> str: + return pulumi.get(self, "url") + + @url.setter + def url(self, value: str): + pulumi.set(self, "url", value) + + +@pulumi.input_type +class GetSecretEcrArgs: + def __init__(__self__, *, + access_key: str, + repos: Sequence[str], + secret_key: str, + external_id: Optional[str] = None, + role_arn: Optional[str] = None): + GetSecretEcrArgs._configure( + lambda key, value: pulumi.set(__self__, key, value), + access_key=access_key, + repos=repos, + secret_key=secret_key, + external_id=external_id, + role_arn=role_arn, + ) + @staticmethod + def _configure( + _setter: Callable[[Any, Any], None], + access_key: str, + repos: Sequence[str], + secret_key: str, + external_id: Optional[str] = None, + role_arn: Optional[str] = None, + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'accessKey' in kwargs: + access_key = kwargs['accessKey'] + if 'secretKey' in kwargs: + secret_key = kwargs['secretKey'] + if 'externalId' in kwargs: + external_id = kwargs['externalId'] + if 'roleArn' in kwargs: + role_arn = kwargs['roleArn'] + + _setter("access_key", access_key) + _setter("repos", repos) + _setter("secret_key", secret_key) + if external_id is not None: + _setter("external_id", external_id) + if role_arn is not None: + _setter("role_arn", role_arn) + + @property + @pulumi.getter(name="accessKey") + def access_key(self) -> str: + return pulumi.get(self, "access_key") + + @access_key.setter + def access_key(self, value: str): + pulumi.set(self, "access_key", value) + + @property + @pulumi.getter + def repos(self) -> Sequence[str]: + return pulumi.get(self, "repos") + + @repos.setter + def repos(self, value: Sequence[str]): + pulumi.set(self, "repos", value) + + @property + @pulumi.getter(name="secretKey") + def secret_key(self) -> str: + return pulumi.get(self, "secret_key") + + @secret_key.setter + def secret_key(self, value: str): + pulumi.set(self, "secret_key", value) + + @property + @pulumi.getter(name="externalId") + def external_id(self) -> Optional[str]: + return pulumi.get(self, "external_id") + + @external_id.setter + def external_id(self, value: Optional[str]): + pulumi.set(self, "external_id", value) + + @property + @pulumi.getter(name="roleArn") + def role_arn(self) -> Optional[str]: + return pulumi.get(self, "role_arn") + + @role_arn.setter + def role_arn(self, value: Optional[str]): + pulumi.set(self, "role_arn", value) + + +@pulumi.input_type +class GetSecretKeypairArgs: + def __init__(__self__, *, + secret_key: str, + passphrase: Optional[str] = None, + public_key: Optional[str] = None): + GetSecretKeypairArgs._configure( + lambda key, value: pulumi.set(__self__, key, value), + secret_key=secret_key, + passphrase=passphrase, + public_key=public_key, + ) + @staticmethod + def _configure( + _setter: Callable[[Any, Any], None], + secret_key: str, + passphrase: Optional[str] = None, + public_key: Optional[str] = None, + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'secretKey' in kwargs: + secret_key = kwargs['secretKey'] + if 'publicKey' in kwargs: + public_key = kwargs['publicKey'] + + _setter("secret_key", secret_key) + if passphrase is not None: + _setter("passphrase", passphrase) + if public_key is not None: + _setter("public_key", public_key) + + @property + @pulumi.getter(name="secretKey") + def secret_key(self) -> str: + return pulumi.get(self, "secret_key") + + @secret_key.setter + def secret_key(self, value: str): + pulumi.set(self, "secret_key", value) + + @property + @pulumi.getter + def passphrase(self) -> Optional[str]: + return pulumi.get(self, "passphrase") + + @passphrase.setter + def passphrase(self, value: Optional[str]): + pulumi.set(self, "passphrase", value) + + @property + @pulumi.getter(name="publicKey") + def public_key(self) -> Optional[str]: + return pulumi.get(self, "public_key") + + @public_key.setter + def public_key(self, value: Optional[str]): + pulumi.set(self, "public_key", value) + + +@pulumi.input_type +class GetSecretNatsAccountArgs: + def __init__(__self__, *, + account_id: str, + private_key: str): + GetSecretNatsAccountArgs._configure( + lambda key, value: pulumi.set(__self__, key, value), + account_id=account_id, + private_key=private_key, + ) + @staticmethod + def _configure( + _setter: Callable[[Any, Any], None], + account_id: str, + private_key: str, + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'accountId' in kwargs: + account_id = kwargs['accountId'] + if 'privateKey' in kwargs: + private_key = kwargs['privateKey'] + + _setter("account_id", account_id) + _setter("private_key", private_key) + + @property + @pulumi.getter(name="accountId") + def account_id(self) -> str: + return pulumi.get(self, "account_id") + + @account_id.setter + def account_id(self, value: str): + pulumi.set(self, "account_id", value) + + @property + @pulumi.getter(name="privateKey") + def private_key(self) -> str: + return pulumi.get(self, "private_key") + + @private_key.setter + def private_key(self, value: str): + pulumi.set(self, "private_key", value) + + +@pulumi.input_type +class GetSecretOpaqueArgs: + def __init__(__self__, *, + payload: str, + encoding: Optional[str] = None): + GetSecretOpaqueArgs._configure( + lambda key, value: pulumi.set(__self__, key, value), + payload=payload, + encoding=encoding, + ) + @staticmethod + def _configure( + _setter: Callable[[Any, Any], None], + payload: str, + encoding: Optional[str] = None, + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + + _setter("payload", payload) + if encoding is not None: + _setter("encoding", encoding) + + @property + @pulumi.getter + def payload(self) -> str: + return pulumi.get(self, "payload") + + @payload.setter + def payload(self, value: str): + pulumi.set(self, "payload", value) + + @property + @pulumi.getter + def encoding(self) -> Optional[str]: + return pulumi.get(self, "encoding") + + @encoding.setter + def encoding(self, value: Optional[str]): + pulumi.set(self, "encoding", value) + + +@pulumi.input_type +class GetSecretTlsArgs: + def __init__(__self__, *, + cert: str, + key: str, + chain: Optional[str] = None): + GetSecretTlsArgs._configure( + lambda key, value: pulumi.set(__self__, key, value), + cert=cert, + key=key, + chain=chain, + ) + @staticmethod + def _configure( + _setter: Callable[[Any, Any], None], + cert: str, + key: str, + chain: Optional[str] = None, + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + + _setter("cert", cert) + _setter("key", key) + if chain is not None: + _setter("chain", chain) + + @property + @pulumi.getter + def cert(self) -> str: + return pulumi.get(self, "cert") + + @cert.setter + def cert(self, value: str): + pulumi.set(self, "cert", value) + + @property + @pulumi.getter + def key(self) -> str: + return pulumi.get(self, "key") + + @key.setter + def key(self, value: str): + pulumi.set(self, "key", value) + + @property + @pulumi.getter + def chain(self) -> Optional[str]: + return pulumi.get(self, "chain") + + @chain.setter + def chain(self, value: Optional[str]): + pulumi.set(self, "chain", value) + + +@pulumi.input_type +class GetSecretUserpassArgs: + def __init__(__self__, *, + password: str, + username: str, + encoding: Optional[str] = None): + GetSecretUserpassArgs._configure( + lambda key, value: pulumi.set(__self__, key, value), + password=password, + username=username, + encoding=encoding, + ) + @staticmethod + def _configure( + _setter: Callable[[Any, Any], None], + password: str, + username: str, + encoding: Optional[str] = None, + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + + _setter("password", password) + _setter("username", username) + if encoding is not None: + _setter("encoding", encoding) + + @property + @pulumi.getter + def password(self) -> str: + return pulumi.get(self, "password") + + @password.setter + def password(self, value: str): + pulumi.set(self, "password", value) + + @property + @pulumi.getter + def username(self) -> str: + return pulumi.get(self, "username") + + @username.setter + def username(self, value: str): + pulumi.set(self, "username", value) + + @property + @pulumi.getter + def encoding(self) -> Optional[str]: + return pulumi.get(self, "encoding") + + @encoding.setter + def encoding(self, value: Optional[str]): + pulumi.set(self, "encoding", value) + + diff --git a/sdk/python/pulumiverse_cpln/get_secret.py b/sdk/python/pulumiverse_cpln/get_secret.py new file mode 100644 index 0000000..071ab71 --- /dev/null +++ b/sdk/python/pulumiverse_cpln/get_secret.py @@ -0,0 +1,541 @@ +# coding=utf-8 +# *** 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! *** + +import copy +import warnings +import pulumi +import pulumi.runtime +from typing import Any, Callable, Mapping, Optional, Sequence, Union, overload +from . import _utilities +from . import outputs +from ._inputs import * + +__all__ = [ + 'GetSecretResult', + 'AwaitableGetSecretResult', + 'get_secret', + 'get_secret_output', +] + +@pulumi.output_type +class GetSecretResult: + """ + A collection of values returned by getSecret. + """ + def __init__(__self__, aws=None, azure_connector=None, azure_sdk=None, cpln_id=None, description=None, dictionary=None, dictionary_as_envs=None, docker=None, ecr=None, gcp=None, id=None, keypair=None, name=None, nats_account=None, opaque=None, secret_link=None, self_link=None, tags=None, tls=None, userpass=None): + if aws and not isinstance(aws, dict): + raise TypeError("Expected argument 'aws' to be a dict") + pulumi.set(__self__, "aws", aws) + if azure_connector and not isinstance(azure_connector, dict): + raise TypeError("Expected argument 'azure_connector' to be a dict") + pulumi.set(__self__, "azure_connector", azure_connector) + if azure_sdk and not isinstance(azure_sdk, str): + raise TypeError("Expected argument 'azure_sdk' to be a str") + pulumi.set(__self__, "azure_sdk", azure_sdk) + if cpln_id and not isinstance(cpln_id, str): + raise TypeError("Expected argument 'cpln_id' to be a str") + pulumi.set(__self__, "cpln_id", cpln_id) + if description and not isinstance(description, str): + raise TypeError("Expected argument 'description' to be a str") + pulumi.set(__self__, "description", description) + if dictionary and not isinstance(dictionary, dict): + raise TypeError("Expected argument 'dictionary' to be a dict") + pulumi.set(__self__, "dictionary", dictionary) + if dictionary_as_envs and not isinstance(dictionary_as_envs, dict): + raise TypeError("Expected argument 'dictionary_as_envs' to be a dict") + pulumi.set(__self__, "dictionary_as_envs", dictionary_as_envs) + if docker and not isinstance(docker, str): + raise TypeError("Expected argument 'docker' to be a str") + pulumi.set(__self__, "docker", docker) + if ecr and not isinstance(ecr, dict): + raise TypeError("Expected argument 'ecr' to be a dict") + pulumi.set(__self__, "ecr", ecr) + if gcp and not isinstance(gcp, str): + raise TypeError("Expected argument 'gcp' to be a str") + pulumi.set(__self__, "gcp", gcp) + if id and not isinstance(id, str): + raise TypeError("Expected argument 'id' to be a str") + pulumi.set(__self__, "id", id) + if keypair and not isinstance(keypair, dict): + raise TypeError("Expected argument 'keypair' to be a dict") + pulumi.set(__self__, "keypair", keypair) + if name and not isinstance(name, str): + raise TypeError("Expected argument 'name' to be a str") + pulumi.set(__self__, "name", name) + if nats_account and not isinstance(nats_account, dict): + raise TypeError("Expected argument 'nats_account' to be a dict") + pulumi.set(__self__, "nats_account", nats_account) + if opaque and not isinstance(opaque, dict): + raise TypeError("Expected argument 'opaque' to be a dict") + pulumi.set(__self__, "opaque", opaque) + if secret_link and not isinstance(secret_link, str): + raise TypeError("Expected argument 'secret_link' to be a str") + pulumi.set(__self__, "secret_link", secret_link) + if self_link and not isinstance(self_link, str): + raise TypeError("Expected argument 'self_link' to be a str") + pulumi.set(__self__, "self_link", self_link) + if tags and not isinstance(tags, dict): + raise TypeError("Expected argument 'tags' to be a dict") + pulumi.set(__self__, "tags", tags) + if tls and not isinstance(tls, dict): + raise TypeError("Expected argument 'tls' to be a dict") + pulumi.set(__self__, "tls", tls) + if userpass and not isinstance(userpass, dict): + raise TypeError("Expected argument 'userpass' to be a dict") + pulumi.set(__self__, "userpass", userpass) + + @property + @pulumi.getter + def aws(self) -> Optional['outputs.GetSecretAwsResult']: + return pulumi.get(self, "aws") + + @property + @pulumi.getter(name="azureConnector") + def azure_connector(self) -> Optional['outputs.GetSecretAzureConnectorResult']: + return pulumi.get(self, "azure_connector") + + @property + @pulumi.getter(name="azureSdk") + def azure_sdk(self) -> Optional[str]: + return pulumi.get(self, "azure_sdk") + + @property + @pulumi.getter(name="cplnId") + def cpln_id(self) -> str: + return pulumi.get(self, "cpln_id") + + @property + @pulumi.getter + def description(self) -> Optional[str]: + return pulumi.get(self, "description") + + @property + @pulumi.getter + def dictionary(self) -> Optional[Mapping[str, str]]: + return pulumi.get(self, "dictionary") + + @property + @pulumi.getter(name="dictionaryAsEnvs") + def dictionary_as_envs(self) -> Mapping[str, Any]: + return pulumi.get(self, "dictionary_as_envs") + + @property + @pulumi.getter + def docker(self) -> Optional[str]: + return pulumi.get(self, "docker") + + @property + @pulumi.getter + def ecr(self) -> Optional['outputs.GetSecretEcrResult']: + return pulumi.get(self, "ecr") + + @property + @pulumi.getter + def gcp(self) -> Optional[str]: + return pulumi.get(self, "gcp") + + @property + @pulumi.getter + def id(self) -> str: + """ + The provider-assigned unique ID for this managed resource. + """ + return pulumi.get(self, "id") + + @property + @pulumi.getter + def keypair(self) -> Optional['outputs.GetSecretKeypairResult']: + return pulumi.get(self, "keypair") + + @property + @pulumi.getter + def name(self) -> str: + return pulumi.get(self, "name") + + @property + @pulumi.getter(name="natsAccount") + def nats_account(self) -> Optional['outputs.GetSecretNatsAccountResult']: + return pulumi.get(self, "nats_account") + + @property + @pulumi.getter + def opaque(self) -> Optional['outputs.GetSecretOpaqueResult']: + return pulumi.get(self, "opaque") + + @property + @pulumi.getter(name="secretLink") + def secret_link(self) -> str: + return pulumi.get(self, "secret_link") + + @property + @pulumi.getter(name="selfLink") + def self_link(self) -> str: + return pulumi.get(self, "self_link") + + @property + @pulumi.getter + def tags(self) -> Optional[Mapping[str, str]]: + return pulumi.get(self, "tags") + + @property + @pulumi.getter + def tls(self) -> Optional['outputs.GetSecretTlsResult']: + return pulumi.get(self, "tls") + + @property + @pulumi.getter + def userpass(self) -> Optional['outputs.GetSecretUserpassResult']: + return pulumi.get(self, "userpass") + + +class AwaitableGetSecretResult(GetSecretResult): + # pylint: disable=using-constant-test + def __await__(self): + if False: + yield self + return GetSecretResult( + aws=self.aws, + azure_connector=self.azure_connector, + azure_sdk=self.azure_sdk, + cpln_id=self.cpln_id, + description=self.description, + dictionary=self.dictionary, + dictionary_as_envs=self.dictionary_as_envs, + docker=self.docker, + ecr=self.ecr, + gcp=self.gcp, + id=self.id, + keypair=self.keypair, + name=self.name, + nats_account=self.nats_account, + opaque=self.opaque, + secret_link=self.secret_link, + self_link=self.self_link, + tags=self.tags, + tls=self.tls, + userpass=self.userpass) + + +def get_secret(aws: Optional[pulumi.InputType['GetSecretAwsArgs']] = None, + azure_connector: Optional[pulumi.InputType['GetSecretAzureConnectorArgs']] = None, + azure_sdk: Optional[str] = None, + description: Optional[str] = None, + dictionary: Optional[Mapping[str, str]] = None, + docker: Optional[str] = None, + ecr: Optional[pulumi.InputType['GetSecretEcrArgs']] = None, + gcp: Optional[str] = None, + keypair: Optional[pulumi.InputType['GetSecretKeypairArgs']] = None, + name: Optional[str] = None, + nats_account: Optional[pulumi.InputType['GetSecretNatsAccountArgs']] = None, + opaque: Optional[pulumi.InputType['GetSecretOpaqueArgs']] = None, + tags: Optional[Mapping[str, str]] = None, + tls: Optional[pulumi.InputType['GetSecretTlsArgs']] = None, + userpass: Optional[pulumi.InputType['GetSecretUserpassArgs']] = None, + opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetSecretResult: + """ + Use this data source to access information about a [Secret](https://docs.controlplane.com/reference/secret) within Control Plane. + + ## Required + + - **name** (String) Name of the secret. + + ## Outputs + + The following attributes are exported: + + - **cpln_id** (String) The ID, in GUID format, of the secret. + - **name** (String) Name of the secret. + - **description** (String) Description of the secret. + - **tags** (Map of String) Key-value map of resource tags. + - **self_link** (String) Full link to this resource. Can be referenced by other resources. + - **secret_link** (String) Output used when linking a secret to an environment variable or volume, in the format: `cpln://secret/SECRET_NAME`. + - **dictionary_as_envs** (Map of String) If a dictionary secret is defined, this output will be a key-value map in the following format: `key = cpln://secret/SECRET_NAME.key`. + - **aws** (Block List, Max: 1) (see below) [Reference Page](https://docs.controlplane.com/reference/secret#aws). + - **azure_connector** (Block List, Max: 1) (see below) [Reference Page](https://docs.controlplane.com/reference/secret#azure-connector). + - **azure_sdk** (String, Sensitive) JSON string containing the Docker secret. [Reference Page](https://docs.controlplane.com/reference/secret#azure). + - **dictionary** (Map of String) List of unique key-value pairs. [Reference Page](https://docs.controlplane.com/reference/secret#dictionary). + - **docker** (String, Sensitive) JSON string containing the Docker secret. [Reference Page](https://docs.controlplane.com/reference/secret#docker). + - **ecr** (Block List, Max: 1) (see below). + - **gcp** (String, Sensitive) JSON string containing the GCP secret. [Reference Page](https://docs.controlplane.com/reference/secret#gcp) + - **keypair** (Block List, Max: 1) (see below) [Reference Page](https://docs.controlplane.com/reference/secret#keypair). + - **nats_account** (Block List, Max: 1) (see below) [Reference Page](https://docs.controlplane.com/reference/secret#nats-account). + - **opaque** (Block List, Max: 1) (see below) [Reference Page](https://docs.controlplane.com/reference/secret#opaque). + - **tls** (Block List, Max: 1) (see below) [Reference Page](https://docs.controlplane.com/reference/secret#tls). + - **userpass** (Block List, Max: 1) (see below) [Reference Page](https://docs.controlplane.com/reference/secret#username). + + + + ### `aws` + + Optional: + + - **access_key** (String, Sensitive) Access Key provided by AWS. + - **role_arn** (String) Role ARN provided by AWS. + - **secret_key** (String, Sensitive) Secret Key provided by AWS. + - **external_id** (String) AWS IAM Role External ID. + + + + ### `azure_connector` + + Optional: + + - **code** (String, Sensitive) Code/Key to authenticate to deployment URL. + - **url** (String, Sensitive) Deployment URL. + + + + ### `ecr` + + [Reference Page](https://docs.controlplane.com/reference/secret#ecr) + + Optional: + + - **access_key** (String) Access Key provided by AWS. + - **repos** (Set of String) List of ECR repositories. + - **role_arn** (String) Role ARN provided by AWS. + - **secret_key** (String, Sensitive) Secret Key provided by AWS. + - **external_id** (String) AWS IAM Role External ID. Used when setting up cross-account access to your ECR repositories. + + + + ### `keypair` + + Optional: + + - **passphrase** (String, Sensitive) Passphrase for private key. + - **public_key** (String) Public Key. + - **secret_key** (String, Sensitive) Secret/Private Key. + + + + ### `nats_account` + + Required: + + - **account_id** (String) Account ID. + - **private_key** (String) Private Key. + + + + ### `opaque` + + Optional: + + - **encoding** (String) Available encodings: `plain`, `base64`. Default: `plain`. + - **payload** (String, Sensitive) Plain text or base64 encoded string. Use `encoding` attribute to specify encoding. + + + + ### `tls` + + Optional: + + - **cert** (String) Public Certificate. + - **chain** (String) Chain Certificate. + - **key** (String, Sensitive) Private Certificate. + + + + ### `userpass` + + Optional: + + - **encoding** (String) Available encodings: `plain`, `base64`. Default: `plain`. + - **password** (String, Sensitive) Password. + - **username** (String) Username. + + ## Example Usage + + ```python + import pulumi + import pulumi_cpln as cpln + + example = cpln.get_secret(name="example-secret-opaque") + pulumi.export("example-secret-payload", example.opaque.payload) + ``` + """ + __args__ = dict() + __args__['aws'] = aws + __args__['azureConnector'] = azure_connector + __args__['azureSdk'] = azure_sdk + __args__['description'] = description + __args__['dictionary'] = dictionary + __args__['docker'] = docker + __args__['ecr'] = ecr + __args__['gcp'] = gcp + __args__['keypair'] = keypair + __args__['name'] = name + __args__['natsAccount'] = nats_account + __args__['opaque'] = opaque + __args__['tags'] = tags + __args__['tls'] = tls + __args__['userpass'] = userpass + opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + __ret__ = pulumi.runtime.invoke('cpln:index/getSecret:getSecret', __args__, opts=opts, typ=GetSecretResult).value + + return AwaitableGetSecretResult( + aws=pulumi.get(__ret__, 'aws'), + azure_connector=pulumi.get(__ret__, 'azure_connector'), + azure_sdk=pulumi.get(__ret__, 'azure_sdk'), + cpln_id=pulumi.get(__ret__, 'cpln_id'), + description=pulumi.get(__ret__, 'description'), + dictionary=pulumi.get(__ret__, 'dictionary'), + dictionary_as_envs=pulumi.get(__ret__, 'dictionary_as_envs'), + docker=pulumi.get(__ret__, 'docker'), + ecr=pulumi.get(__ret__, 'ecr'), + gcp=pulumi.get(__ret__, 'gcp'), + id=pulumi.get(__ret__, 'id'), + keypair=pulumi.get(__ret__, 'keypair'), + name=pulumi.get(__ret__, 'name'), + nats_account=pulumi.get(__ret__, 'nats_account'), + opaque=pulumi.get(__ret__, 'opaque'), + secret_link=pulumi.get(__ret__, 'secret_link'), + self_link=pulumi.get(__ret__, 'self_link'), + tags=pulumi.get(__ret__, 'tags'), + tls=pulumi.get(__ret__, 'tls'), + userpass=pulumi.get(__ret__, 'userpass')) + + +@_utilities.lift_output_func(get_secret) +def get_secret_output(aws: Optional[pulumi.Input[Optional[pulumi.InputType['GetSecretAwsArgs']]]] = None, + azure_connector: Optional[pulumi.Input[Optional[pulumi.InputType['GetSecretAzureConnectorArgs']]]] = None, + azure_sdk: Optional[pulumi.Input[Optional[str]]] = None, + description: Optional[pulumi.Input[Optional[str]]] = None, + dictionary: Optional[pulumi.Input[Optional[Mapping[str, str]]]] = None, + docker: Optional[pulumi.Input[Optional[str]]] = None, + ecr: Optional[pulumi.Input[Optional[pulumi.InputType['GetSecretEcrArgs']]]] = None, + gcp: Optional[pulumi.Input[Optional[str]]] = None, + keypair: Optional[pulumi.Input[Optional[pulumi.InputType['GetSecretKeypairArgs']]]] = None, + name: Optional[pulumi.Input[str]] = None, + nats_account: Optional[pulumi.Input[Optional[pulumi.InputType['GetSecretNatsAccountArgs']]]] = None, + opaque: Optional[pulumi.Input[Optional[pulumi.InputType['GetSecretOpaqueArgs']]]] = None, + tags: Optional[pulumi.Input[Optional[Mapping[str, str]]]] = None, + tls: Optional[pulumi.Input[Optional[pulumi.InputType['GetSecretTlsArgs']]]] = None, + userpass: Optional[pulumi.Input[Optional[pulumi.InputType['GetSecretUserpassArgs']]]] = None, + opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetSecretResult]: + """ + Use this data source to access information about a [Secret](https://docs.controlplane.com/reference/secret) within Control Plane. + + ## Required + + - **name** (String) Name of the secret. + + ## Outputs + + The following attributes are exported: + + - **cpln_id** (String) The ID, in GUID format, of the secret. + - **name** (String) Name of the secret. + - **description** (String) Description of the secret. + - **tags** (Map of String) Key-value map of resource tags. + - **self_link** (String) Full link to this resource. Can be referenced by other resources. + - **secret_link** (String) Output used when linking a secret to an environment variable or volume, in the format: `cpln://secret/SECRET_NAME`. + - **dictionary_as_envs** (Map of String) If a dictionary secret is defined, this output will be a key-value map in the following format: `key = cpln://secret/SECRET_NAME.key`. + - **aws** (Block List, Max: 1) (see below) [Reference Page](https://docs.controlplane.com/reference/secret#aws). + - **azure_connector** (Block List, Max: 1) (see below) [Reference Page](https://docs.controlplane.com/reference/secret#azure-connector). + - **azure_sdk** (String, Sensitive) JSON string containing the Docker secret. [Reference Page](https://docs.controlplane.com/reference/secret#azure). + - **dictionary** (Map of String) List of unique key-value pairs. [Reference Page](https://docs.controlplane.com/reference/secret#dictionary). + - **docker** (String, Sensitive) JSON string containing the Docker secret. [Reference Page](https://docs.controlplane.com/reference/secret#docker). + - **ecr** (Block List, Max: 1) (see below). + - **gcp** (String, Sensitive) JSON string containing the GCP secret. [Reference Page](https://docs.controlplane.com/reference/secret#gcp) + - **keypair** (Block List, Max: 1) (see below) [Reference Page](https://docs.controlplane.com/reference/secret#keypair). + - **nats_account** (Block List, Max: 1) (see below) [Reference Page](https://docs.controlplane.com/reference/secret#nats-account). + - **opaque** (Block List, Max: 1) (see below) [Reference Page](https://docs.controlplane.com/reference/secret#opaque). + - **tls** (Block List, Max: 1) (see below) [Reference Page](https://docs.controlplane.com/reference/secret#tls). + - **userpass** (Block List, Max: 1) (see below) [Reference Page](https://docs.controlplane.com/reference/secret#username). + + + + ### `aws` + + Optional: + + - **access_key** (String, Sensitive) Access Key provided by AWS. + - **role_arn** (String) Role ARN provided by AWS. + - **secret_key** (String, Sensitive) Secret Key provided by AWS. + - **external_id** (String) AWS IAM Role External ID. + + + + ### `azure_connector` + + Optional: + + - **code** (String, Sensitive) Code/Key to authenticate to deployment URL. + - **url** (String, Sensitive) Deployment URL. + + + + ### `ecr` + + [Reference Page](https://docs.controlplane.com/reference/secret#ecr) + + Optional: + + - **access_key** (String) Access Key provided by AWS. + - **repos** (Set of String) List of ECR repositories. + - **role_arn** (String) Role ARN provided by AWS. + - **secret_key** (String, Sensitive) Secret Key provided by AWS. + - **external_id** (String) AWS IAM Role External ID. Used when setting up cross-account access to your ECR repositories. + + + + ### `keypair` + + Optional: + + - **passphrase** (String, Sensitive) Passphrase for private key. + - **public_key** (String) Public Key. + - **secret_key** (String, Sensitive) Secret/Private Key. + + + + ### `nats_account` + + Required: + + - **account_id** (String) Account ID. + - **private_key** (String) Private Key. + + + + ### `opaque` + + Optional: + + - **encoding** (String) Available encodings: `plain`, `base64`. Default: `plain`. + - **payload** (String, Sensitive) Plain text or base64 encoded string. Use `encoding` attribute to specify encoding. + + + + ### `tls` + + Optional: + + - **cert** (String) Public Certificate. + - **chain** (String) Chain Certificate. + - **key** (String, Sensitive) Private Certificate. + + + + ### `userpass` + + Optional: + + - **encoding** (String) Available encodings: `plain`, `base64`. Default: `plain`. + - **password** (String, Sensitive) Password. + - **username** (String) Username. + + ## Example Usage + + ```python + import pulumi + import pulumi_cpln as cpln + + example = cpln.get_secret(name="example-secret-opaque") + pulumi.export("example-secret-payload", example.opaque.payload) + ``` + """ + ... diff --git a/sdk/python/pulumiverse_cpln/outputs.py b/sdk/python/pulumiverse_cpln/outputs.py index 444b9d1..dfc5e3f 100644 --- a/sdk/python/pulumiverse_cpln/outputs.py +++ b/sdk/python/pulumiverse_cpln/outputs.py @@ -157,14 +157,14 @@ 'WorkloadLoadBalancer', 'WorkloadLoadBalancerDirect', 'WorkloadLoadBalancerDirectPort', + 'WorkloadLoadBalancerGeoLocation', + 'WorkloadLoadBalancerGeoLocationHeaders', 'WorkloadLocalOption', 'WorkloadLocalOptionAutoscaling', 'WorkloadOptions', 'WorkloadOptionsAutoscaling', 'WorkloadRolloutOptions', 'WorkloadSecurityOptions', - 'WorkloadSecurityOptionsGeoLocation', - 'WorkloadSecurityOptionsGeoLocationHeaders', 'WorkloadSidecar', 'WorkloadStatus', 'WorkloadStatusHealthCheck', @@ -190,6 +190,14 @@ 'GetLocationGeoResult', 'GetLocationsLocationResult', 'GetLocationsLocationGeoResult', + 'GetSecretAwsResult', + 'GetSecretAzureConnectorResult', + 'GetSecretEcrResult', + 'GetSecretKeypairResult', + 'GetSecretNatsAccountResult', + 'GetSecretOpaqueResult', + 'GetSecretTlsResult', + 'GetSecretUserpassResult', ] @pulumi.output_type @@ -8774,27 +8782,56 @@ def restart_policy(self) -> Optional[str]: @pulumi.output_type class WorkloadLoadBalancer(dict): + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "geoLocation": + suggest = "geo_location" + + if suggest: + pulumi.log.warn(f"Key '{key}' not found in WorkloadLoadBalancer. Access the value via the '{suggest}' property getter instead.") + + def __getitem__(self, key: str) -> Any: + WorkloadLoadBalancer.__key_warning(key) + return super().__getitem__(key) + + def get(self, key: str, default = None) -> Any: + WorkloadLoadBalancer.__key_warning(key) + return super().get(key, default) + def __init__(__self__, *, - direct: Optional['outputs.WorkloadLoadBalancerDirect'] = None): + direct: Optional['outputs.WorkloadLoadBalancerDirect'] = None, + geo_location: Optional['outputs.WorkloadLoadBalancerGeoLocation'] = None): WorkloadLoadBalancer._configure( lambda key, value: pulumi.set(__self__, key, value), direct=direct, + geo_location=geo_location, ) @staticmethod def _configure( _setter: Callable[[Any, Any], None], direct: Optional['outputs.WorkloadLoadBalancerDirect'] = None, + geo_location: Optional['outputs.WorkloadLoadBalancerGeoLocation'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): + if 'geoLocation' in kwargs: + geo_location = kwargs['geoLocation'] if direct is not None: _setter("direct", direct) + if geo_location is not None: + _setter("geo_location", geo_location) @property @pulumi.getter def direct(self) -> Optional['outputs.WorkloadLoadBalancerDirect']: return pulumi.get(self, "direct") + @property + @pulumi.getter(name="geoLocation") + def geo_location(self) -> Optional['outputs.WorkloadLoadBalancerGeoLocation']: + return pulumi.get(self, "geo_location") + @pulumi.output_type class WorkloadLoadBalancerDirect(dict): @@ -8904,6 +8941,94 @@ def scheme(self) -> Optional[str]: return pulumi.get(self, "scheme") +@pulumi.output_type +class WorkloadLoadBalancerGeoLocation(dict): + def __init__(__self__, *, + enabled: Optional[bool] = None, + headers: Optional['outputs.WorkloadLoadBalancerGeoLocationHeaders'] = None): + WorkloadLoadBalancerGeoLocation._configure( + lambda key, value: pulumi.set(__self__, key, value), + enabled=enabled, + headers=headers, + ) + @staticmethod + def _configure( + _setter: Callable[[Any, Any], None], + enabled: Optional[bool] = None, + headers: Optional['outputs.WorkloadLoadBalancerGeoLocationHeaders'] = None, + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + + if enabled is not None: + _setter("enabled", enabled) + if headers is not None: + _setter("headers", headers) + + @property + @pulumi.getter + def enabled(self) -> Optional[bool]: + return pulumi.get(self, "enabled") + + @property + @pulumi.getter + def headers(self) -> Optional['outputs.WorkloadLoadBalancerGeoLocationHeaders']: + return pulumi.get(self, "headers") + + +@pulumi.output_type +class WorkloadLoadBalancerGeoLocationHeaders(dict): + def __init__(__self__, *, + asn: Optional[str] = None, + city: Optional[str] = None, + country: Optional[str] = None, + region: Optional[str] = None): + WorkloadLoadBalancerGeoLocationHeaders._configure( + lambda key, value: pulumi.set(__self__, key, value), + asn=asn, + city=city, + country=country, + region=region, + ) + @staticmethod + def _configure( + _setter: Callable[[Any, Any], None], + asn: Optional[str] = None, + city: Optional[str] = None, + country: Optional[str] = None, + region: Optional[str] = None, + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + + if asn is not None: + _setter("asn", asn) + if city is not None: + _setter("city", city) + if country is not None: + _setter("country", country) + if region is not None: + _setter("region", region) + + @property + @pulumi.getter + def asn(self) -> Optional[str]: + return pulumi.get(self, "asn") + + @property + @pulumi.getter + def city(self) -> Optional[str]: + return pulumi.get(self, "city") + + @property + @pulumi.getter + def country(self) -> Optional[str]: + return pulumi.get(self, "country") + + @property + @pulumi.getter + def region(self) -> Optional[str]: + return pulumi.get(self, "region") + + @pulumi.output_type class WorkloadLocalOption(dict): @staticmethod @@ -9417,8 +9542,6 @@ def __key_warning(key: str): suggest = None if key == "fileSystemGroupId": suggest = "file_system_group_id" - elif key == "geoLocation": - suggest = "geo_location" if suggest: pulumi.log.warn(f"Key '{key}' not found in WorkloadSecurityOptions. Access the value via the '{suggest}' property getter instead.") @@ -9432,128 +9555,28 @@ def get(self, key: str, default = None) -> Any: return super().get(key, default) def __init__(__self__, *, - file_system_group_id: Optional[int] = None, - geo_location: Optional['outputs.WorkloadSecurityOptionsGeoLocation'] = None): + file_system_group_id: Optional[int] = None): WorkloadSecurityOptions._configure( lambda key, value: pulumi.set(__self__, key, value), file_system_group_id=file_system_group_id, - geo_location=geo_location, ) @staticmethod def _configure( _setter: Callable[[Any, Any], None], file_system_group_id: Optional[int] = None, - geo_location: Optional['outputs.WorkloadSecurityOptionsGeoLocation'] = None, opts: Optional[pulumi.ResourceOptions]=None, **kwargs): if 'fileSystemGroupId' in kwargs: file_system_group_id = kwargs['fileSystemGroupId'] - if 'geoLocation' in kwargs: - geo_location = kwargs['geoLocation'] if file_system_group_id is not None: _setter("file_system_group_id", file_system_group_id) - if geo_location is not None: - _setter("geo_location", geo_location) @property @pulumi.getter(name="fileSystemGroupId") def file_system_group_id(self) -> Optional[int]: return pulumi.get(self, "file_system_group_id") - @property - @pulumi.getter(name="geoLocation") - def geo_location(self) -> Optional['outputs.WorkloadSecurityOptionsGeoLocation']: - return pulumi.get(self, "geo_location") - - -@pulumi.output_type -class WorkloadSecurityOptionsGeoLocation(dict): - def __init__(__self__, *, - enabled: Optional[bool] = None, - headers: Optional['outputs.WorkloadSecurityOptionsGeoLocationHeaders'] = None): - WorkloadSecurityOptionsGeoLocation._configure( - lambda key, value: pulumi.set(__self__, key, value), - enabled=enabled, - headers=headers, - ) - @staticmethod - def _configure( - _setter: Callable[[Any, Any], None], - enabled: Optional[bool] = None, - headers: Optional['outputs.WorkloadSecurityOptionsGeoLocationHeaders'] = None, - opts: Optional[pulumi.ResourceOptions]=None, - **kwargs): - - if enabled is not None: - _setter("enabled", enabled) - if headers is not None: - _setter("headers", headers) - - @property - @pulumi.getter - def enabled(self) -> Optional[bool]: - return pulumi.get(self, "enabled") - - @property - @pulumi.getter - def headers(self) -> Optional['outputs.WorkloadSecurityOptionsGeoLocationHeaders']: - return pulumi.get(self, "headers") - - -@pulumi.output_type -class WorkloadSecurityOptionsGeoLocationHeaders(dict): - def __init__(__self__, *, - asn: Optional[str] = None, - city: Optional[str] = None, - country: Optional[str] = None, - region: Optional[str] = None): - WorkloadSecurityOptionsGeoLocationHeaders._configure( - lambda key, value: pulumi.set(__self__, key, value), - asn=asn, - city=city, - country=country, - region=region, - ) - @staticmethod - def _configure( - _setter: Callable[[Any, Any], None], - asn: Optional[str] = None, - city: Optional[str] = None, - country: Optional[str] = None, - region: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions]=None, - **kwargs): - - if asn is not None: - _setter("asn", asn) - if city is not None: - _setter("city", city) - if country is not None: - _setter("country", country) - if region is not None: - _setter("region", region) - - @property - @pulumi.getter - def asn(self) -> Optional[str]: - return pulumi.get(self, "asn") - - @property - @pulumi.getter - def city(self) -> Optional[str]: - return pulumi.get(self, "city") - - @property - @pulumi.getter - def country(self) -> Optional[str]: - return pulumi.get(self, "country") - - @property - @pulumi.getter - def region(self) -> Optional[str]: - return pulumi.get(self, "region") - @pulumi.output_type class WorkloadSidecar(dict): @@ -10978,3 +11001,364 @@ def state(self) -> Optional[str]: return pulumi.get(self, "state") +@pulumi.output_type +class GetSecretAwsResult(dict): + def __init__(__self__, *, + access_key: str, + secret_key: str, + external_id: Optional[str] = None, + role_arn: Optional[str] = None): + GetSecretAwsResult._configure( + lambda key, value: pulumi.set(__self__, key, value), + access_key=access_key, + secret_key=secret_key, + external_id=external_id, + role_arn=role_arn, + ) + @staticmethod + def _configure( + _setter: Callable[[Any, Any], None], + access_key: str, + secret_key: str, + external_id: Optional[str] = None, + role_arn: Optional[str] = None, + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'accessKey' in kwargs: + access_key = kwargs['accessKey'] + if 'secretKey' in kwargs: + secret_key = kwargs['secretKey'] + if 'externalId' in kwargs: + external_id = kwargs['externalId'] + if 'roleArn' in kwargs: + role_arn = kwargs['roleArn'] + + _setter("access_key", access_key) + _setter("secret_key", secret_key) + if external_id is not None: + _setter("external_id", external_id) + if role_arn is not None: + _setter("role_arn", role_arn) + + @property + @pulumi.getter(name="accessKey") + def access_key(self) -> str: + return pulumi.get(self, "access_key") + + @property + @pulumi.getter(name="secretKey") + def secret_key(self) -> str: + return pulumi.get(self, "secret_key") + + @property + @pulumi.getter(name="externalId") + def external_id(self) -> Optional[str]: + return pulumi.get(self, "external_id") + + @property + @pulumi.getter(name="roleArn") + def role_arn(self) -> Optional[str]: + return pulumi.get(self, "role_arn") + + +@pulumi.output_type +class GetSecretAzureConnectorResult(dict): + def __init__(__self__, *, + code: str, + url: str): + GetSecretAzureConnectorResult._configure( + lambda key, value: pulumi.set(__self__, key, value), + code=code, + url=url, + ) + @staticmethod + def _configure( + _setter: Callable[[Any, Any], None], + code: str, + url: str, + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + + _setter("code", code) + _setter("url", url) + + @property + @pulumi.getter + def code(self) -> str: + return pulumi.get(self, "code") + + @property + @pulumi.getter + def url(self) -> str: + return pulumi.get(self, "url") + + +@pulumi.output_type +class GetSecretEcrResult(dict): + def __init__(__self__, *, + access_key: str, + repos: Sequence[str], + secret_key: str, + external_id: Optional[str] = None, + role_arn: Optional[str] = None): + GetSecretEcrResult._configure( + lambda key, value: pulumi.set(__self__, key, value), + access_key=access_key, + repos=repos, + secret_key=secret_key, + external_id=external_id, + role_arn=role_arn, + ) + @staticmethod + def _configure( + _setter: Callable[[Any, Any], None], + access_key: str, + repos: Sequence[str], + secret_key: str, + external_id: Optional[str] = None, + role_arn: Optional[str] = None, + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'accessKey' in kwargs: + access_key = kwargs['accessKey'] + if 'secretKey' in kwargs: + secret_key = kwargs['secretKey'] + if 'externalId' in kwargs: + external_id = kwargs['externalId'] + if 'roleArn' in kwargs: + role_arn = kwargs['roleArn'] + + _setter("access_key", access_key) + _setter("repos", repos) + _setter("secret_key", secret_key) + if external_id is not None: + _setter("external_id", external_id) + if role_arn is not None: + _setter("role_arn", role_arn) + + @property + @pulumi.getter(name="accessKey") + def access_key(self) -> str: + return pulumi.get(self, "access_key") + + @property + @pulumi.getter + def repos(self) -> Sequence[str]: + return pulumi.get(self, "repos") + + @property + @pulumi.getter(name="secretKey") + def secret_key(self) -> str: + return pulumi.get(self, "secret_key") + + @property + @pulumi.getter(name="externalId") + def external_id(self) -> Optional[str]: + return pulumi.get(self, "external_id") + + @property + @pulumi.getter(name="roleArn") + def role_arn(self) -> Optional[str]: + return pulumi.get(self, "role_arn") + + +@pulumi.output_type +class GetSecretKeypairResult(dict): + def __init__(__self__, *, + secret_key: str, + passphrase: Optional[str] = None, + public_key: Optional[str] = None): + GetSecretKeypairResult._configure( + lambda key, value: pulumi.set(__self__, key, value), + secret_key=secret_key, + passphrase=passphrase, + public_key=public_key, + ) + @staticmethod + def _configure( + _setter: Callable[[Any, Any], None], + secret_key: str, + passphrase: Optional[str] = None, + public_key: Optional[str] = None, + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'secretKey' in kwargs: + secret_key = kwargs['secretKey'] + if 'publicKey' in kwargs: + public_key = kwargs['publicKey'] + + _setter("secret_key", secret_key) + if passphrase is not None: + _setter("passphrase", passphrase) + if public_key is not None: + _setter("public_key", public_key) + + @property + @pulumi.getter(name="secretKey") + def secret_key(self) -> str: + return pulumi.get(self, "secret_key") + + @property + @pulumi.getter + def passphrase(self) -> Optional[str]: + return pulumi.get(self, "passphrase") + + @property + @pulumi.getter(name="publicKey") + def public_key(self) -> Optional[str]: + return pulumi.get(self, "public_key") + + +@pulumi.output_type +class GetSecretNatsAccountResult(dict): + def __init__(__self__, *, + account_id: str, + private_key: str): + GetSecretNatsAccountResult._configure( + lambda key, value: pulumi.set(__self__, key, value), + account_id=account_id, + private_key=private_key, + ) + @staticmethod + def _configure( + _setter: Callable[[Any, Any], None], + account_id: str, + private_key: str, + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'accountId' in kwargs: + account_id = kwargs['accountId'] + if 'privateKey' in kwargs: + private_key = kwargs['privateKey'] + + _setter("account_id", account_id) + _setter("private_key", private_key) + + @property + @pulumi.getter(name="accountId") + def account_id(self) -> str: + return pulumi.get(self, "account_id") + + @property + @pulumi.getter(name="privateKey") + def private_key(self) -> str: + return pulumi.get(self, "private_key") + + +@pulumi.output_type +class GetSecretOpaqueResult(dict): + def __init__(__self__, *, + payload: str, + encoding: Optional[str] = None): + GetSecretOpaqueResult._configure( + lambda key, value: pulumi.set(__self__, key, value), + payload=payload, + encoding=encoding, + ) + @staticmethod + def _configure( + _setter: Callable[[Any, Any], None], + payload: str, + encoding: Optional[str] = None, + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + + _setter("payload", payload) + if encoding is not None: + _setter("encoding", encoding) + + @property + @pulumi.getter + def payload(self) -> str: + return pulumi.get(self, "payload") + + @property + @pulumi.getter + def encoding(self) -> Optional[str]: + return pulumi.get(self, "encoding") + + +@pulumi.output_type +class GetSecretTlsResult(dict): + def __init__(__self__, *, + cert: str, + key: str, + chain: Optional[str] = None): + GetSecretTlsResult._configure( + lambda key, value: pulumi.set(__self__, key, value), + cert=cert, + key=key, + chain=chain, + ) + @staticmethod + def _configure( + _setter: Callable[[Any, Any], None], + cert: str, + key: str, + chain: Optional[str] = None, + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + + _setter("cert", cert) + _setter("key", key) + if chain is not None: + _setter("chain", chain) + + @property + @pulumi.getter + def cert(self) -> str: + return pulumi.get(self, "cert") + + @property + @pulumi.getter + def key(self) -> str: + return pulumi.get(self, "key") + + @property + @pulumi.getter + def chain(self) -> Optional[str]: + return pulumi.get(self, "chain") + + +@pulumi.output_type +class GetSecretUserpassResult(dict): + def __init__(__self__, *, + password: str, + username: str, + encoding: Optional[str] = None): + GetSecretUserpassResult._configure( + lambda key, value: pulumi.set(__self__, key, value), + password=password, + username=username, + encoding=encoding, + ) + @staticmethod + def _configure( + _setter: Callable[[Any, Any], None], + password: str, + username: str, + encoding: Optional[str] = None, + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + + _setter("password", password) + _setter("username", username) + if encoding is not None: + _setter("encoding", encoding) + + @property + @pulumi.getter + def password(self) -> str: + return pulumi.get(self, "password") + + @property + @pulumi.getter + def username(self) -> str: + return pulumi.get(self, "username") + + @property + @pulumi.getter + def encoding(self) -> Optional[str]: + return pulumi.get(self, "encoding") + +