From abfab1c1e53538d87f9439230532ef8ba931fad4 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 28 Sep 2023 08:43:59 +0000 Subject: [PATCH] fix(deps): update module github.com/pulumi/pulumi-tls/sdk/v4 to v4.11.0 --- go.mod | 6 +- go.sum | 2 + .../pulumi-tls/sdk/v4/go/tls/certRequest.go | 69 ++++++++---- .../sdk/v4/go/tls/getCertificate.go | 9 ++ .../pulumi-tls/sdk/v4/go/tls/getPublicKey.go | 21 +++- .../pulumi/pulumi-tls/sdk/v4/go/tls/init.go | 6 +- .../go/tls/{ => internal}/pulumiUtilities.go | 42 +++++-- .../sdk/v4/go/tls/internal/pulumiVersion.go | 11 ++ .../sdk/v4/go/tls/locallySignedCert.go | 65 +++++++---- .../pulumi-tls/sdk/v4/go/tls/privateKey.go | 101 ++++++++--------- .../pulumi-tls/sdk/v4/go/tls/provider.go | 15 +++ .../pulumi-tls/sdk/v4/go/tls/pulumiTypes.go | 103 ++++++++++++++++++ .../sdk/v4/go/tls/selfSignedCert.go | 65 +++++++---- vendor/modules.txt | 5 +- 14 files changed, 385 insertions(+), 135 deletions(-) rename vendor/github.com/pulumi/pulumi-tls/sdk/v4/go/tls/{ => internal}/pulumiUtilities.go (58%) create mode 100644 vendor/github.com/pulumi/pulumi-tls/sdk/v4/go/tls/internal/pulumiVersion.go diff --git a/go.mod b/go.mod index 675e6f44..be7f1894 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,8 @@ module github.com/adrianriobo/qenvs -go 1.19 +go 1.21 + +toolchain go1.21.1 require ( github.com/aws/aws-sdk-go v1.45.14 @@ -9,7 +11,7 @@ require ( github.com/pulumi/pulumi-aws/sdk/v5 v5.42.0 github.com/pulumi/pulumi-command/sdk v0.9.0 github.com/pulumi/pulumi-random/sdk/v4 v4.13.4 - github.com/pulumi/pulumi-tls/sdk/v4 v4.10.0 + github.com/pulumi/pulumi-tls/sdk/v4 v4.11.0 github.com/pulumi/pulumi/sdk/v3 v3.84.0 github.com/sirupsen/logrus v1.9.3 github.com/spf13/cobra v1.7.0 diff --git a/go.sum b/go.sum index 3cb31c32..40b52a94 100644 --- a/go.sum +++ b/go.sum @@ -355,6 +355,8 @@ github.com/pulumi/pulumi-random/sdk/v4 v4.13.4 h1:g3jdktE5L5IDrOw4OiB+yhgxSw0okR github.com/pulumi/pulumi-random/sdk/v4 v4.13.4/go.mod h1:cFlJw0eQnqN+62QpITEF9M08gVyzNCeXrKRsuJptFak= github.com/pulumi/pulumi-tls/sdk/v4 v4.10.0 h1:4MC0GyEomAjEZJPXEzBZpZ4+TOUg5WE77k38tMDIvS0= github.com/pulumi/pulumi-tls/sdk/v4 v4.10.0/go.mod h1:tNXsM/+RsiVVmBdzJMOOp6gMoi3sPko5u0FKdiei+cE= +github.com/pulumi/pulumi-tls/sdk/v4 v4.11.0 h1:sg5CuKpiKUaVmklW7xXSJ9XNisY+TXR55KHXR4n+Xwg= +github.com/pulumi/pulumi-tls/sdk/v4 v4.11.0/go.mod h1:CIpy+GbhEIj/Ywtxu8jRdrt/V7n4QBGUo0swWnwsLO4= github.com/pulumi/pulumi/sdk/v3 v3.82.1 h1:GMFNX33Gp4unTBS7dV5F7rYvvqiwPkuLLyRUgQuOKQA= github.com/pulumi/pulumi/sdk/v3 v3.82.1/go.mod h1:RMilNNVMlmK1h4Nl/qylb9vzbgh4F3mufZoUOnPy98o= github.com/pulumi/pulumi/sdk/v3 v3.84.0 h1:/vCRj6ATGVZw4pFmG7pZgjlKUcnbbnb9vmlqd+OpdXo= diff --git a/vendor/github.com/pulumi/pulumi-tls/sdk/v4/go/tls/certRequest.go b/vendor/github.com/pulumi/pulumi-tls/sdk/v4/go/tls/certRequest.go index e58e6dd8..01ca082f 100644 --- a/vendor/github.com/pulumi/pulumi-tls/sdk/v4/go/tls/certRequest.go +++ b/vendor/github.com/pulumi/pulumi-tls/sdk/v4/go/tls/certRequest.go @@ -7,8 +7,10 @@ import ( "context" "reflect" - "github.com/pkg/errors" + "errors" + "github.com/pulumi/pulumi-tls/sdk/v4/go/tls/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" + "github.com/pulumi/pulumi/sdk/v3/go/pulumix" ) // ## Example Usage @@ -18,7 +20,7 @@ import ( // // import ( // -// "io/ioutil" +// "os" // // "github.com/pulumi/pulumi-tls/sdk/v4/go/tls" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" @@ -26,7 +28,7 @@ import ( // ) // // func readFileOrPanic(path string) pulumi.StringPtrInput { -// data, err := ioutil.ReadFile(path) +// data, err := os.ReadFile(path) // if err != nil { // panic(err.Error()) // } @@ -53,11 +55,7 @@ import ( type CertRequest struct { pulumi.CustomResourceState - // The certificate request data in [PEM (RFC 1421)](https://datatracker.ietf.org/doc/html/rfc1421) format. **NOTE**: the - // [underlying](https://pkg.go.dev/encoding/pem#Encode) - // [libraries](https://pkg.go.dev/golang.org/x/crypto/ssh#MarshalAuthorizedKey) that generate this value append a `\n` at - // the end of the PEM. In case this disrupts your use case, we recommend using - // [`trimspace()`](https://www.terraform.io/language/functions/trimspace). + // The certificate request data in PEM (RFC 1421). CertRequestPem pulumi.StringOutput `pulumi:"certRequestPem"` // List of DNS names for which a certificate is being requested (i.e. certificate subjects). DnsNames pulumi.StringArrayOutput `pulumi:"dnsNames"` @@ -94,6 +92,7 @@ func NewCertRequest(ctx *pulumi.Context, "privateKeyPem", }) opts = append(opts, secrets) + opts = internal.PkgResourceDefaultOpts(opts) var resource CertRequest err := ctx.RegisterResource("tls:index/certRequest:CertRequest", name, args, &resource, opts...) if err != nil { @@ -116,11 +115,7 @@ func GetCertRequest(ctx *pulumi.Context, // Input properties used for looking up and filtering CertRequest resources. type certRequestState struct { - // The certificate request data in [PEM (RFC 1421)](https://datatracker.ietf.org/doc/html/rfc1421) format. **NOTE**: the - // [underlying](https://pkg.go.dev/encoding/pem#Encode) - // [libraries](https://pkg.go.dev/golang.org/x/crypto/ssh#MarshalAuthorizedKey) that generate this value append a `\n` at - // the end of the PEM. In case this disrupts your use case, we recommend using - // [`trimspace()`](https://www.terraform.io/language/functions/trimspace). + // The certificate request data in PEM (RFC 1421). CertRequestPem *string `pulumi:"certRequestPem"` // List of DNS names for which a certificate is being requested (i.e. certificate subjects). DnsNames []string `pulumi:"dnsNames"` @@ -141,11 +136,7 @@ type certRequestState struct { } type CertRequestState struct { - // The certificate request data in [PEM (RFC 1421)](https://datatracker.ietf.org/doc/html/rfc1421) format. **NOTE**: the - // [underlying](https://pkg.go.dev/encoding/pem#Encode) - // [libraries](https://pkg.go.dev/golang.org/x/crypto/ssh#MarshalAuthorizedKey) that generate this value append a `\n` at - // the end of the PEM. In case this disrupts your use case, we recommend using - // [`trimspace()`](https://www.terraform.io/language/functions/trimspace). + // The certificate request data in PEM (RFC 1421). CertRequestPem pulumi.StringPtrInput // List of DNS names for which a certificate is being requested (i.e. certificate subjects). DnsNames pulumi.StringArrayInput @@ -231,6 +222,12 @@ func (i *CertRequest) ToCertRequestOutputWithContext(ctx context.Context) CertRe return pulumi.ToOutputWithContext(ctx, i).(CertRequestOutput) } +func (i *CertRequest) ToOutput(ctx context.Context) pulumix.Output[*CertRequest] { + return pulumix.Output[*CertRequest]{ + OutputState: i.ToCertRequestOutputWithContext(ctx).OutputState, + } +} + // CertRequestArrayInput is an input type that accepts CertRequestArray and CertRequestArrayOutput values. // You can construct a concrete instance of `CertRequestArrayInput` via: // @@ -256,6 +253,12 @@ func (i CertRequestArray) ToCertRequestArrayOutputWithContext(ctx context.Contex return pulumi.ToOutputWithContext(ctx, i).(CertRequestArrayOutput) } +func (i CertRequestArray) ToOutput(ctx context.Context) pulumix.Output[[]*CertRequest] { + return pulumix.Output[[]*CertRequest]{ + OutputState: i.ToCertRequestArrayOutputWithContext(ctx).OutputState, + } +} + // CertRequestMapInput is an input type that accepts CertRequestMap and CertRequestMapOutput values. // You can construct a concrete instance of `CertRequestMapInput` via: // @@ -281,6 +284,12 @@ func (i CertRequestMap) ToCertRequestMapOutputWithContext(ctx context.Context) C return pulumi.ToOutputWithContext(ctx, i).(CertRequestMapOutput) } +func (i CertRequestMap) ToOutput(ctx context.Context) pulumix.Output[map[string]*CertRequest] { + return pulumix.Output[map[string]*CertRequest]{ + OutputState: i.ToCertRequestMapOutputWithContext(ctx).OutputState, + } +} + type CertRequestOutput struct{ *pulumi.OutputState } func (CertRequestOutput) ElementType() reflect.Type { @@ -295,11 +304,13 @@ func (o CertRequestOutput) ToCertRequestOutputWithContext(ctx context.Context) C return o } -// The certificate request data in [PEM (RFC 1421)](https://datatracker.ietf.org/doc/html/rfc1421) format. **NOTE**: the -// [underlying](https://pkg.go.dev/encoding/pem#Encode) -// [libraries](https://pkg.go.dev/golang.org/x/crypto/ssh#MarshalAuthorizedKey) that generate this value append a `\n` at -// the end of the PEM. In case this disrupts your use case, we recommend using -// [`trimspace()`](https://www.terraform.io/language/functions/trimspace). +func (o CertRequestOutput) ToOutput(ctx context.Context) pulumix.Output[*CertRequest] { + return pulumix.Output[*CertRequest]{ + OutputState: o.OutputState, + } +} + +// The certificate request data in PEM (RFC 1421). func (o CertRequestOutput) CertRequestPem() pulumi.StringOutput { return o.ApplyT(func(v *CertRequest) pulumi.StringOutput { return v.CertRequestPem }).(pulumi.StringOutput) } @@ -352,6 +363,12 @@ func (o CertRequestArrayOutput) ToCertRequestArrayOutputWithContext(ctx context. return o } +func (o CertRequestArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]*CertRequest] { + return pulumix.Output[[]*CertRequest]{ + OutputState: o.OutputState, + } +} + func (o CertRequestArrayOutput) Index(i pulumi.IntInput) CertRequestOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *CertRequest { return vs[0].([]*CertRequest)[vs[1].(int)] @@ -372,6 +389,12 @@ func (o CertRequestMapOutput) ToCertRequestMapOutputWithContext(ctx context.Cont return o } +func (o CertRequestMapOutput) ToOutput(ctx context.Context) pulumix.Output[map[string]*CertRequest] { + return pulumix.Output[map[string]*CertRequest]{ + OutputState: o.OutputState, + } +} + func (o CertRequestMapOutput) MapIndex(k pulumi.StringInput) CertRequestOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *CertRequest { return vs[0].(map[string]*CertRequest)[vs[1].(string)] diff --git a/vendor/github.com/pulumi/pulumi-tls/sdk/v4/go/tls/getCertificate.go b/vendor/github.com/pulumi/pulumi-tls/sdk/v4/go/tls/getCertificate.go index ca22d38e..5b1e4943 100644 --- a/vendor/github.com/pulumi/pulumi-tls/sdk/v4/go/tls/getCertificate.go +++ b/vendor/github.com/pulumi/pulumi-tls/sdk/v4/go/tls/getCertificate.go @@ -7,10 +7,13 @@ import ( "context" "reflect" + "github.com/pulumi/pulumi-tls/sdk/v4/go/tls/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" + "github.com/pulumi/pulumi/sdk/v3/go/pulumix" ) func GetCertificate(ctx *pulumi.Context, args *GetCertificateArgs, opts ...pulumi.InvokeOption) (*GetCertificateResult, error) { + opts = internal.PkgInvokeDefaultOpts(opts) var rv GetCertificateResult err := ctx.Invoke("tls:index/getCertificate:getCertificate", args, &rv, opts...) if err != nil { @@ -85,6 +88,12 @@ func (o GetCertificateResultOutput) ToGetCertificateResultOutputWithContext(ctx return o } +func (o GetCertificateResultOutput) ToOutput(ctx context.Context) pulumix.Output[GetCertificateResult] { + return pulumix.Output[GetCertificateResult]{ + OutputState: o.OutputState, + } +} + // The certificates protecting the site, with the root of the chain first. func (o GetCertificateResultOutput) Certificates() GetCertificateCertificateArrayOutput { return o.ApplyT(func(v GetCertificateResult) []GetCertificateCertificate { return v.Certificates }).(GetCertificateCertificateArrayOutput) diff --git a/vendor/github.com/pulumi/pulumi-tls/sdk/v4/go/tls/getPublicKey.go b/vendor/github.com/pulumi/pulumi-tls/sdk/v4/go/tls/getPublicKey.go index b208e0c2..d77dd40e 100644 --- a/vendor/github.com/pulumi/pulumi-tls/sdk/v4/go/tls/getPublicKey.go +++ b/vendor/github.com/pulumi/pulumi-tls/sdk/v4/go/tls/getPublicKey.go @@ -7,7 +7,9 @@ import ( "context" "reflect" + "github.com/pulumi/pulumi-tls/sdk/v4/go/tls/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" + "github.com/pulumi/pulumi/sdk/v3/go/pulumix" ) // Get a public key from a PEM-encoded private key. @@ -21,7 +23,7 @@ import ( // // import ( // -// "io/ioutil" +// "os" // // "github.com/pulumi/pulumi-tls/sdk/v4/go/tls" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" @@ -29,7 +31,7 @@ import ( // ) // // func readFileOrPanic(path string) pulumi.StringPtrInput { -// data, err := ioutil.ReadFile(path) +// data, err := os.ReadFile(path) // if err != nil { // panic(err.Error()) // } @@ -59,6 +61,7 @@ import ( // // ``` func GetPublicKey(ctx *pulumi.Context, args *GetPublicKeyArgs, opts ...pulumi.InvokeOption) (*GetPublicKeyResult, error) { + opts = internal.PkgInvokeDefaultOpts(opts) var rv GetPublicKeyResult err := ctx.Invoke("tls:index/getPublicKey:getPublicKey", args, &rv, opts...) if err != nil { @@ -89,8 +92,10 @@ type GetPublicKeyResult struct { PublicKeyFingerprintMd5 string `pulumi:"publicKeyFingerprintMd5"` // The fingerprint of the public key data in OpenSSH SHA256 hash format, e.g. `SHA256:...`. Only available if the selected private key format is compatible, as per the rules for `publicKeyOpenssh` and ECDSA P224 limitations. PublicKeyFingerprintSha256 string `pulumi:"publicKeyFingerprintSha256"` - PublicKeyOpenssh string `pulumi:"publicKeyOpenssh"` - PublicKeyPem string `pulumi:"publicKeyPem"` + // The public key, in OpenSSH PEM (RFC 4716). + PublicKeyOpenssh string `pulumi:"publicKeyOpenssh"` + // The public key, in PEM (RFC 1421). + PublicKeyPem string `pulumi:"publicKeyPem"` } func GetPublicKeyOutput(ctx *pulumi.Context, args GetPublicKeyOutputArgs, opts ...pulumi.InvokeOption) GetPublicKeyResultOutput { @@ -133,6 +138,12 @@ func (o GetPublicKeyResultOutput) ToGetPublicKeyResultOutputWithContext(ctx cont return o } +func (o GetPublicKeyResultOutput) ToOutput(ctx context.Context) pulumix.Output[GetPublicKeyResult] { + return pulumix.Output[GetPublicKeyResult]{ + OutputState: o.OutputState, + } +} + // The name of the algorithm used by the given private key. Possible values are: `RSA`, `ECDSA` and `ED25519`. func (o GetPublicKeyResultOutput) Algorithm() pulumi.StringOutput { return o.ApplyT(func(v GetPublicKeyResult) string { return v.Algorithm }).(pulumi.StringOutput) @@ -163,10 +174,12 @@ func (o GetPublicKeyResultOutput) PublicKeyFingerprintSha256() pulumi.StringOutp return o.ApplyT(func(v GetPublicKeyResult) string { return v.PublicKeyFingerprintSha256 }).(pulumi.StringOutput) } +// The public key, in OpenSSH PEM (RFC 4716). func (o GetPublicKeyResultOutput) PublicKeyOpenssh() pulumi.StringOutput { return o.ApplyT(func(v GetPublicKeyResult) string { return v.PublicKeyOpenssh }).(pulumi.StringOutput) } +// The public key, in PEM (RFC 1421). func (o GetPublicKeyResultOutput) PublicKeyPem() pulumi.StringOutput { return o.ApplyT(func(v GetPublicKeyResult) string { return v.PublicKeyPem }).(pulumi.StringOutput) } diff --git a/vendor/github.com/pulumi/pulumi-tls/sdk/v4/go/tls/init.go b/vendor/github.com/pulumi/pulumi-tls/sdk/v4/go/tls/init.go index 8b2ed3b5..2626405d 100644 --- a/vendor/github.com/pulumi/pulumi-tls/sdk/v4/go/tls/init.go +++ b/vendor/github.com/pulumi/pulumi-tls/sdk/v4/go/tls/init.go @@ -7,6 +7,7 @@ import ( "fmt" "github.com/blang/semver" + "github.com/pulumi/pulumi-tls/sdk/v4/go/tls/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) @@ -55,7 +56,10 @@ func (p *pkg) ConstructProvider(ctx *pulumi.Context, name, typ, urn string) (pul } func init() { - version, _ := PkgVersion() + version, err := internal.PkgVersion() + if err != nil { + version = semver.Version{Major: 1} + } pulumi.RegisterResourceModule( "tls", "index/certRequest", diff --git a/vendor/github.com/pulumi/pulumi-tls/sdk/v4/go/tls/pulumiUtilities.go b/vendor/github.com/pulumi/pulumi-tls/sdk/v4/go/tls/internal/pulumiUtilities.go similarity index 58% rename from vendor/github.com/pulumi/pulumi-tls/sdk/v4/go/tls/pulumiUtilities.go rename to vendor/github.com/pulumi/pulumi-tls/sdk/v4/go/tls/internal/pulumiUtilities.go index 79167549..67c410a1 100644 --- a/vendor/github.com/pulumi/pulumi-tls/sdk/v4/go/tls/pulumiUtilities.go +++ b/vendor/github.com/pulumi/pulumi-tls/sdk/v4/go/tls/internal/pulumiUtilities.go @@ -1,7 +1,7 @@ // 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 tls +package internal import ( "fmt" @@ -17,7 +17,7 @@ import ( type envParser func(v string) interface{} -func parseEnvBool(v string) interface{} { +func ParseEnvBool(v string) interface{} { b, err := strconv.ParseBool(v) if err != nil { return nil @@ -25,7 +25,7 @@ func parseEnvBool(v string) interface{} { return b } -func parseEnvInt(v string) interface{} { +func ParseEnvInt(v string) interface{} { i, err := strconv.ParseInt(v, 0, 0) if err != nil { return nil @@ -33,7 +33,7 @@ func parseEnvInt(v string) interface{} { return int(i) } -func parseEnvFloat(v string) interface{} { +func ParseEnvFloat(v string) interface{} { f, err := strconv.ParseFloat(v, 64) if err != nil { return nil @@ -41,7 +41,7 @@ func parseEnvFloat(v string) interface{} { return f } -func parseEnvStringArray(v string) interface{} { +func ParseEnvStringArray(v string) interface{} { var result pulumi.StringArray for _, item := range strings.Split(v, ";") { result = append(result, pulumi.String(item)) @@ -49,9 +49,9 @@ func parseEnvStringArray(v string) interface{} { return result } -func getEnvOrDefault(def interface{}, parser envParser, vars ...string) interface{} { +func GetEnvOrDefault(def interface{}, parser envParser, vars ...string) interface{} { for _, v := range vars { - if value := os.Getenv(v); value != "" { + if value, ok := os.LookupEnv(v); ok { if parser != nil { return parser(value) } @@ -65,6 +65,10 @@ func getEnvOrDefault(def interface{}, parser envParser, vars ...string) interfac // If a version cannot be determined, v1 will be assumed. The second return // value is always nil. func PkgVersion() (semver.Version, error) { + // emptyVersion defaults to v0.0.0 + if !SdkVersion.Equals(semver.Version{}) { + return SdkVersion, nil + } type sentinal struct{} pkgPath := reflect.TypeOf(sentinal{}).PkgPath() re := regexp.MustCompile("^.*/pulumi-tls/sdk(/v\\d+)?") @@ -79,9 +83,31 @@ func PkgVersion() (semver.Version, error) { } // isZero is a null safe check for if a value is it's types zero value. -func isZero(v interface{}) bool { +func IsZero(v interface{}) bool { if v == nil { return true } return reflect.ValueOf(v).IsZero() } + +// PkgResourceDefaultOpts provides package level defaults to pulumi.OptionResource. +func PkgResourceDefaultOpts(opts []pulumi.ResourceOption) []pulumi.ResourceOption { + defaults := []pulumi.ResourceOption{} + + version := SdkVersion + if !version.Equals(semver.Version{}) { + defaults = append(defaults, pulumi.Version(version.String())) + } + return append(defaults, opts...) +} + +// PkgInvokeDefaultOpts provides package level defaults to pulumi.OptionInvoke. +func PkgInvokeDefaultOpts(opts []pulumi.InvokeOption) []pulumi.InvokeOption { + defaults := []pulumi.InvokeOption{} + + version := SdkVersion + if !version.Equals(semver.Version{}) { + defaults = append(defaults, pulumi.Version(version.String())) + } + return append(defaults, opts...) +} diff --git a/vendor/github.com/pulumi/pulumi-tls/sdk/v4/go/tls/internal/pulumiVersion.go b/vendor/github.com/pulumi/pulumi-tls/sdk/v4/go/tls/internal/pulumiVersion.go new file mode 100644 index 00000000..d5916876 --- /dev/null +++ b/vendor/github.com/pulumi/pulumi-tls/sdk/v4/go/tls/internal/pulumiVersion.go @@ -0,0 +1,11 @@ +// 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 internal + +import ( + "github.com/blang/semver" +) + +var SdkVersion semver.Version = semver.Version{} +var pluginDownloadURL string = "" diff --git a/vendor/github.com/pulumi/pulumi-tls/sdk/v4/go/tls/locallySignedCert.go b/vendor/github.com/pulumi/pulumi-tls/sdk/v4/go/tls/locallySignedCert.go index a92d5e23..df080509 100644 --- a/vendor/github.com/pulumi/pulumi-tls/sdk/v4/go/tls/locallySignedCert.go +++ b/vendor/github.com/pulumi/pulumi-tls/sdk/v4/go/tls/locallySignedCert.go @@ -7,8 +7,10 @@ import ( "context" "reflect" - "github.com/pkg/errors" + "errors" + "github.com/pulumi/pulumi-tls/sdk/v4/go/tls/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" + "github.com/pulumi/pulumi/sdk/v3/go/pulumix" ) type LocallySignedCert struct { @@ -24,11 +26,7 @@ type LocallySignedCert struct { CaKeyAlgorithm pulumi.StringOutput `pulumi:"caKeyAlgorithm"` // Private key of the Certificate Authority (CA) used to sign the certificate, in [PEM (RFC 1421)](https://datatracker.ietf.org/doc/html/rfc1421) format. CaPrivateKeyPem pulumi.StringOutput `pulumi:"caPrivateKeyPem"` - // Certificate data in [PEM (RFC 1421)](https://datatracker.ietf.org/doc/html/rfc1421) format. **NOTE**: the - // [underlying](https://pkg.go.dev/encoding/pem#Encode) - // [libraries](https://pkg.go.dev/golang.org/x/crypto/ssh#MarshalAuthorizedKey) that generate this value append a `\n` at - // the end of the PEM. In case this disrupts your use case, we recommend using - // [`trimspace()`](https://www.terraform.io/language/functions/trimspace). + // Certificate data in PEM (RFC 1421). CertPem pulumi.StringOutput `pulumi:"certPem"` // Certificate request data in [PEM (RFC 1421)](https://datatracker.ietf.org/doc/html/rfc1421) format. CertRequestPem pulumi.StringOutput `pulumi:"certRequestPem"` @@ -81,6 +79,7 @@ func NewLocallySignedCert(ctx *pulumi.Context, "caPrivateKeyPem", }) opts = append(opts, secrets) + opts = internal.PkgResourceDefaultOpts(opts) var resource LocallySignedCert err := ctx.RegisterResource("tls:index/locallySignedCert:LocallySignedCert", name, args, &resource, opts...) if err != nil { @@ -113,11 +112,7 @@ type locallySignedCertState struct { CaKeyAlgorithm *string `pulumi:"caKeyAlgorithm"` // Private key of the Certificate Authority (CA) used to sign the certificate, in [PEM (RFC 1421)](https://datatracker.ietf.org/doc/html/rfc1421) format. CaPrivateKeyPem *string `pulumi:"caPrivateKeyPem"` - // Certificate data in [PEM (RFC 1421)](https://datatracker.ietf.org/doc/html/rfc1421) format. **NOTE**: the - // [underlying](https://pkg.go.dev/encoding/pem#Encode) - // [libraries](https://pkg.go.dev/golang.org/x/crypto/ssh#MarshalAuthorizedKey) that generate this value append a `\n` at - // the end of the PEM. In case this disrupts your use case, we recommend using - // [`trimspace()`](https://www.terraform.io/language/functions/trimspace). + // Certificate data in PEM (RFC 1421). CertPem *string `pulumi:"certPem"` // Certificate request data in [PEM (RFC 1421)](https://datatracker.ietf.org/doc/html/rfc1421) format. CertRequestPem *string `pulumi:"certRequestPem"` @@ -152,11 +147,7 @@ type LocallySignedCertState struct { CaKeyAlgorithm pulumi.StringPtrInput // Private key of the Certificate Authority (CA) used to sign the certificate, in [PEM (RFC 1421)](https://datatracker.ietf.org/doc/html/rfc1421) format. CaPrivateKeyPem pulumi.StringPtrInput - // Certificate data in [PEM (RFC 1421)](https://datatracker.ietf.org/doc/html/rfc1421) format. **NOTE**: the - // [underlying](https://pkg.go.dev/encoding/pem#Encode) - // [libraries](https://pkg.go.dev/golang.org/x/crypto/ssh#MarshalAuthorizedKey) that generate this value append a `\n` at - // the end of the PEM. In case this disrupts your use case, we recommend using - // [`trimspace()`](https://www.terraform.io/language/functions/trimspace). + // Certificate data in PEM (RFC 1421). CertPem pulumi.StringPtrInput // Certificate request data in [PEM (RFC 1421)](https://datatracker.ietf.org/doc/html/rfc1421) format. CertRequestPem pulumi.StringPtrInput @@ -262,6 +253,12 @@ func (i *LocallySignedCert) ToLocallySignedCertOutputWithContext(ctx context.Con return pulumi.ToOutputWithContext(ctx, i).(LocallySignedCertOutput) } +func (i *LocallySignedCert) ToOutput(ctx context.Context) pulumix.Output[*LocallySignedCert] { + return pulumix.Output[*LocallySignedCert]{ + OutputState: i.ToLocallySignedCertOutputWithContext(ctx).OutputState, + } +} + // LocallySignedCertArrayInput is an input type that accepts LocallySignedCertArray and LocallySignedCertArrayOutput values. // You can construct a concrete instance of `LocallySignedCertArrayInput` via: // @@ -287,6 +284,12 @@ func (i LocallySignedCertArray) ToLocallySignedCertArrayOutputWithContext(ctx co return pulumi.ToOutputWithContext(ctx, i).(LocallySignedCertArrayOutput) } +func (i LocallySignedCertArray) ToOutput(ctx context.Context) pulumix.Output[[]*LocallySignedCert] { + return pulumix.Output[[]*LocallySignedCert]{ + OutputState: i.ToLocallySignedCertArrayOutputWithContext(ctx).OutputState, + } +} + // LocallySignedCertMapInput is an input type that accepts LocallySignedCertMap and LocallySignedCertMapOutput values. // You can construct a concrete instance of `LocallySignedCertMapInput` via: // @@ -312,6 +315,12 @@ func (i LocallySignedCertMap) ToLocallySignedCertMapOutputWithContext(ctx contex return pulumi.ToOutputWithContext(ctx, i).(LocallySignedCertMapOutput) } +func (i LocallySignedCertMap) ToOutput(ctx context.Context) pulumix.Output[map[string]*LocallySignedCert] { + return pulumix.Output[map[string]*LocallySignedCert]{ + OutputState: i.ToLocallySignedCertMapOutputWithContext(ctx).OutputState, + } +} + type LocallySignedCertOutput struct{ *pulumi.OutputState } func (LocallySignedCertOutput) ElementType() reflect.Type { @@ -326,6 +335,12 @@ func (o LocallySignedCertOutput) ToLocallySignedCertOutputWithContext(ctx contex return o } +func (o LocallySignedCertOutput) ToOutput(ctx context.Context) pulumix.Output[*LocallySignedCert] { + return pulumix.Output[*LocallySignedCert]{ + OutputState: o.OutputState, + } +} + // List of key usages allowed for the issued certificate. Values are defined in [RFC 5280](https://datatracker.ietf.org/doc/html/rfc5280) and combine flags defined by both [Key Usages](https://datatracker.ietf.org/doc/html/rfc5280#section-4.2.1.3) and [Extended Key Usages](https://datatracker.ietf.org/doc/html/rfc5280#section-4.2.1.12). Accepted values: `anyExtended`, `certSigning`, `clientAuth`, `codeSigning`, `contentCommitment`, `crlSigning`, `dataEncipherment`, `decipherOnly`, `digitalSignature`, `emailProtection`, `encipherOnly`, `ipsecEndSystem`, `ipsecTunnel`, `ipsecUser`, `keyAgreement`, `keyEncipherment`, `microsoftCommercialCodeSigning`, `microsoftKernelCodeSigning`, `microsoftServerGatedCrypto`, `netscapeServerGatedCrypto`, `ocspSigning`, `serverAuth`, `timestamping`. func (o LocallySignedCertOutput) AllowedUses() pulumi.StringArrayOutput { return o.ApplyT(func(v *LocallySignedCert) pulumi.StringArrayOutput { return v.AllowedUses }).(pulumi.StringArrayOutput) @@ -348,11 +363,7 @@ func (o LocallySignedCertOutput) CaPrivateKeyPem() pulumi.StringOutput { return o.ApplyT(func(v *LocallySignedCert) pulumi.StringOutput { return v.CaPrivateKeyPem }).(pulumi.StringOutput) } -// Certificate data in [PEM (RFC 1421)](https://datatracker.ietf.org/doc/html/rfc1421) format. **NOTE**: the -// [underlying](https://pkg.go.dev/encoding/pem#Encode) -// [libraries](https://pkg.go.dev/golang.org/x/crypto/ssh#MarshalAuthorizedKey) that generate this value append a `\n` at -// the end of the PEM. In case this disrupts your use case, we recommend using -// [`trimspace()`](https://www.terraform.io/language/functions/trimspace). +// Certificate data in PEM (RFC 1421). func (o LocallySignedCertOutput) CertPem() pulumi.StringOutput { return o.ApplyT(func(v *LocallySignedCert) pulumi.StringOutput { return v.CertPem }).(pulumi.StringOutput) } @@ -415,6 +426,12 @@ func (o LocallySignedCertArrayOutput) ToLocallySignedCertArrayOutputWithContext( return o } +func (o LocallySignedCertArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]*LocallySignedCert] { + return pulumix.Output[[]*LocallySignedCert]{ + OutputState: o.OutputState, + } +} + func (o LocallySignedCertArrayOutput) Index(i pulumi.IntInput) LocallySignedCertOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *LocallySignedCert { return vs[0].([]*LocallySignedCert)[vs[1].(int)] @@ -435,6 +452,12 @@ func (o LocallySignedCertMapOutput) ToLocallySignedCertMapOutputWithContext(ctx return o } +func (o LocallySignedCertMapOutput) ToOutput(ctx context.Context) pulumix.Output[map[string]*LocallySignedCert] { + return pulumix.Output[map[string]*LocallySignedCert]{ + OutputState: o.OutputState, + } +} + func (o LocallySignedCertMapOutput) MapIndex(k pulumi.StringInput) LocallySignedCertOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *LocallySignedCert { return vs[0].(map[string]*LocallySignedCert)[vs[1].(string)] diff --git a/vendor/github.com/pulumi/pulumi-tls/sdk/v4/go/tls/privateKey.go b/vendor/github.com/pulumi/pulumi-tls/sdk/v4/go/tls/privateKey.go index 7522afc5..b6d47234 100644 --- a/vendor/github.com/pulumi/pulumi-tls/sdk/v4/go/tls/privateKey.go +++ b/vendor/github.com/pulumi/pulumi-tls/sdk/v4/go/tls/privateKey.go @@ -7,8 +7,10 @@ import ( "context" "reflect" - "github.com/pkg/errors" + "errors" + "github.com/pulumi/pulumi-tls/sdk/v4/go/tls/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" + "github.com/pulumi/pulumi/sdk/v3/go/pulumix" ) type PrivateKey struct { @@ -26,20 +28,9 @@ type PrivateKey struct { PublicKeyFingerprintMd5 pulumi.StringOutput `pulumi:"publicKeyFingerprintMd5"` // The fingerprint of the public key data in OpenSSH SHA256 hash format, e.g. `SHA256:...`. Only available if the selected private key format is compatible, similarly to `publicKeyOpenssh` and the ECDSA P224 limitations. PublicKeyFingerprintSha256 pulumi.StringOutput `pulumi:"publicKeyFingerprintSha256"` - // The public key data in ["Authorized - // Keys"](https://www.ssh.com/academy/ssh/authorized_keys/openssh#format-of-the-authorized-keys-file) format. This is - // populated only if the configured private key is supported: this includes all `RSA` and `ED25519` keys, as well as - // `ECDSA` keys with curves `P256`, `P384` and `P521`. `ECDSA` with curve `P224` [is not - // supported](../../docs#limitations). **NOTE**: the [underlying](https://pkg.go.dev/encoding/pem#Encode) - // [libraries](https://pkg.go.dev/golang.org/x/crypto/ssh#MarshalAuthorizedKey) that generate this value append a `\n` at - // the end of the PEM. In case this disrupts your use case, we recommend using - // [`trimspace()`](https://www.terraform.io/language/functions/trimspace). + // The public key data in "Authorized Keys". PublicKeyOpenssh pulumi.StringOutput `pulumi:"publicKeyOpenssh"` - // Public key data in [PEM (RFC 1421)](https://datatracker.ietf.org/doc/html/rfc1421) format. **NOTE**: the - // [underlying](https://pkg.go.dev/encoding/pem#Encode) - // [libraries](https://pkg.go.dev/golang.org/x/crypto/ssh#MarshalAuthorizedKey) that generate this value append a `\n` at - // the end of the PEM. In case this disrupts your use case, we recommend using - // [`trimspace()`](https://www.terraform.io/language/functions/trimspace). + // Public key data in PEM (RFC 1421). PublicKeyPem pulumi.StringOutput `pulumi:"publicKeyPem"` // When `algorithm` is `RSA`, the size of the generated RSA key, in bits (default: `2048`). RsaBits pulumi.IntPtrOutput `pulumi:"rsaBits"` @@ -60,6 +51,7 @@ func NewPrivateKey(ctx *pulumi.Context, "privateKeyPem", }) opts = append(opts, secrets) + opts = internal.PkgResourceDefaultOpts(opts) var resource PrivateKey err := ctx.RegisterResource("tls:index/privateKey:PrivateKey", name, args, &resource, opts...) if err != nil { @@ -94,20 +86,9 @@ type privateKeyState struct { PublicKeyFingerprintMd5 *string `pulumi:"publicKeyFingerprintMd5"` // The fingerprint of the public key data in OpenSSH SHA256 hash format, e.g. `SHA256:...`. Only available if the selected private key format is compatible, similarly to `publicKeyOpenssh` and the ECDSA P224 limitations. PublicKeyFingerprintSha256 *string `pulumi:"publicKeyFingerprintSha256"` - // The public key data in ["Authorized - // Keys"](https://www.ssh.com/academy/ssh/authorized_keys/openssh#format-of-the-authorized-keys-file) format. This is - // populated only if the configured private key is supported: this includes all `RSA` and `ED25519` keys, as well as - // `ECDSA` keys with curves `P256`, `P384` and `P521`. `ECDSA` with curve `P224` [is not - // supported](../../docs#limitations). **NOTE**: the [underlying](https://pkg.go.dev/encoding/pem#Encode) - // [libraries](https://pkg.go.dev/golang.org/x/crypto/ssh#MarshalAuthorizedKey) that generate this value append a `\n` at - // the end of the PEM. In case this disrupts your use case, we recommend using - // [`trimspace()`](https://www.terraform.io/language/functions/trimspace). + // The public key data in "Authorized Keys". PublicKeyOpenssh *string `pulumi:"publicKeyOpenssh"` - // Public key data in [PEM (RFC 1421)](https://datatracker.ietf.org/doc/html/rfc1421) format. **NOTE**: the - // [underlying](https://pkg.go.dev/encoding/pem#Encode) - // [libraries](https://pkg.go.dev/golang.org/x/crypto/ssh#MarshalAuthorizedKey) that generate this value append a `\n` at - // the end of the PEM. In case this disrupts your use case, we recommend using - // [`trimspace()`](https://www.terraform.io/language/functions/trimspace). + // Public key data in PEM (RFC 1421). PublicKeyPem *string `pulumi:"publicKeyPem"` // When `algorithm` is `RSA`, the size of the generated RSA key, in bits (default: `2048`). RsaBits *int `pulumi:"rsaBits"` @@ -126,20 +107,9 @@ type PrivateKeyState struct { PublicKeyFingerprintMd5 pulumi.StringPtrInput // The fingerprint of the public key data in OpenSSH SHA256 hash format, e.g. `SHA256:...`. Only available if the selected private key format is compatible, similarly to `publicKeyOpenssh` and the ECDSA P224 limitations. PublicKeyFingerprintSha256 pulumi.StringPtrInput - // The public key data in ["Authorized - // Keys"](https://www.ssh.com/academy/ssh/authorized_keys/openssh#format-of-the-authorized-keys-file) format. This is - // populated only if the configured private key is supported: this includes all `RSA` and `ED25519` keys, as well as - // `ECDSA` keys with curves `P256`, `P384` and `P521`. `ECDSA` with curve `P224` [is not - // supported](../../docs#limitations). **NOTE**: the [underlying](https://pkg.go.dev/encoding/pem#Encode) - // [libraries](https://pkg.go.dev/golang.org/x/crypto/ssh#MarshalAuthorizedKey) that generate this value append a `\n` at - // the end of the PEM. In case this disrupts your use case, we recommend using - // [`trimspace()`](https://www.terraform.io/language/functions/trimspace). + // The public key data in "Authorized Keys". PublicKeyOpenssh pulumi.StringPtrInput - // Public key data in [PEM (RFC 1421)](https://datatracker.ietf.org/doc/html/rfc1421) format. **NOTE**: the - // [underlying](https://pkg.go.dev/encoding/pem#Encode) - // [libraries](https://pkg.go.dev/golang.org/x/crypto/ssh#MarshalAuthorizedKey) that generate this value append a `\n` at - // the end of the PEM. In case this disrupts your use case, we recommend using - // [`trimspace()`](https://www.terraform.io/language/functions/trimspace). + // Public key data in PEM (RFC 1421). PublicKeyPem pulumi.StringPtrInput // When `algorithm` is `RSA`, the size of the generated RSA key, in bits (default: `2048`). RsaBits pulumi.IntPtrInput @@ -191,6 +161,12 @@ func (i *PrivateKey) ToPrivateKeyOutputWithContext(ctx context.Context) PrivateK return pulumi.ToOutputWithContext(ctx, i).(PrivateKeyOutput) } +func (i *PrivateKey) ToOutput(ctx context.Context) pulumix.Output[*PrivateKey] { + return pulumix.Output[*PrivateKey]{ + OutputState: i.ToPrivateKeyOutputWithContext(ctx).OutputState, + } +} + // PrivateKeyArrayInput is an input type that accepts PrivateKeyArray and PrivateKeyArrayOutput values. // You can construct a concrete instance of `PrivateKeyArrayInput` via: // @@ -216,6 +192,12 @@ func (i PrivateKeyArray) ToPrivateKeyArrayOutputWithContext(ctx context.Context) return pulumi.ToOutputWithContext(ctx, i).(PrivateKeyArrayOutput) } +func (i PrivateKeyArray) ToOutput(ctx context.Context) pulumix.Output[[]*PrivateKey] { + return pulumix.Output[[]*PrivateKey]{ + OutputState: i.ToPrivateKeyArrayOutputWithContext(ctx).OutputState, + } +} + // PrivateKeyMapInput is an input type that accepts PrivateKeyMap and PrivateKeyMapOutput values. // You can construct a concrete instance of `PrivateKeyMapInput` via: // @@ -241,6 +223,12 @@ func (i PrivateKeyMap) ToPrivateKeyMapOutputWithContext(ctx context.Context) Pri return pulumi.ToOutputWithContext(ctx, i).(PrivateKeyMapOutput) } +func (i PrivateKeyMap) ToOutput(ctx context.Context) pulumix.Output[map[string]*PrivateKey] { + return pulumix.Output[map[string]*PrivateKey]{ + OutputState: i.ToPrivateKeyMapOutputWithContext(ctx).OutputState, + } +} + type PrivateKeyOutput struct{ *pulumi.OutputState } func (PrivateKeyOutput) ElementType() reflect.Type { @@ -255,6 +243,12 @@ func (o PrivateKeyOutput) ToPrivateKeyOutputWithContext(ctx context.Context) Pri return o } +func (o PrivateKeyOutput) ToOutput(ctx context.Context) pulumix.Output[*PrivateKey] { + return pulumix.Output[*PrivateKey]{ + OutputState: o.OutputState, + } +} + // Name of the algorithm to use when generating the private key. Currently-supported values are `RSA`, `ECDSA` and `ED25519`. func (o PrivateKeyOutput) Algorithm() pulumi.StringOutput { return o.ApplyT(func(v *PrivateKey) pulumi.StringOutput { return v.Algorithm }).(pulumi.StringOutput) @@ -285,23 +279,12 @@ func (o PrivateKeyOutput) PublicKeyFingerprintSha256() pulumi.StringOutput { return o.ApplyT(func(v *PrivateKey) pulumi.StringOutput { return v.PublicKeyFingerprintSha256 }).(pulumi.StringOutput) } -// The public key data in ["Authorized -// Keys"](https://www.ssh.com/academy/ssh/authorized_keys/openssh#format-of-the-authorized-keys-file) format. This is -// populated only if the configured private key is supported: this includes all `RSA` and `ED25519` keys, as well as -// `ECDSA` keys with curves `P256`, `P384` and `P521`. `ECDSA` with curve `P224` [is not -// supported](../../docs#limitations). **NOTE**: the [underlying](https://pkg.go.dev/encoding/pem#Encode) -// [libraries](https://pkg.go.dev/golang.org/x/crypto/ssh#MarshalAuthorizedKey) that generate this value append a `\n` at -// the end of the PEM. In case this disrupts your use case, we recommend using -// [`trimspace()`](https://www.terraform.io/language/functions/trimspace). +// The public key data in "Authorized Keys". func (o PrivateKeyOutput) PublicKeyOpenssh() pulumi.StringOutput { return o.ApplyT(func(v *PrivateKey) pulumi.StringOutput { return v.PublicKeyOpenssh }).(pulumi.StringOutput) } -// Public key data in [PEM (RFC 1421)](https://datatracker.ietf.org/doc/html/rfc1421) format. **NOTE**: the -// [underlying](https://pkg.go.dev/encoding/pem#Encode) -// [libraries](https://pkg.go.dev/golang.org/x/crypto/ssh#MarshalAuthorizedKey) that generate this value append a `\n` at -// the end of the PEM. In case this disrupts your use case, we recommend using -// [`trimspace()`](https://www.terraform.io/language/functions/trimspace). +// Public key data in PEM (RFC 1421). func (o PrivateKeyOutput) PublicKeyPem() pulumi.StringOutput { return o.ApplyT(func(v *PrivateKey) pulumi.StringOutput { return v.PublicKeyPem }).(pulumi.StringOutput) } @@ -325,6 +308,12 @@ func (o PrivateKeyArrayOutput) ToPrivateKeyArrayOutputWithContext(ctx context.Co return o } +func (o PrivateKeyArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]*PrivateKey] { + return pulumix.Output[[]*PrivateKey]{ + OutputState: o.OutputState, + } +} + func (o PrivateKeyArrayOutput) Index(i pulumi.IntInput) PrivateKeyOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *PrivateKey { return vs[0].([]*PrivateKey)[vs[1].(int)] @@ -345,6 +334,12 @@ func (o PrivateKeyMapOutput) ToPrivateKeyMapOutputWithContext(ctx context.Contex return o } +func (o PrivateKeyMapOutput) ToOutput(ctx context.Context) pulumix.Output[map[string]*PrivateKey] { + return pulumix.Output[map[string]*PrivateKey]{ + OutputState: o.OutputState, + } +} + func (o PrivateKeyMapOutput) MapIndex(k pulumi.StringInput) PrivateKeyOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *PrivateKey { return vs[0].(map[string]*PrivateKey)[vs[1].(string)] diff --git a/vendor/github.com/pulumi/pulumi-tls/sdk/v4/go/tls/provider.go b/vendor/github.com/pulumi/pulumi-tls/sdk/v4/go/tls/provider.go index 304fe123..534291b8 100644 --- a/vendor/github.com/pulumi/pulumi-tls/sdk/v4/go/tls/provider.go +++ b/vendor/github.com/pulumi/pulumi-tls/sdk/v4/go/tls/provider.go @@ -7,7 +7,9 @@ import ( "context" "reflect" + "github.com/pulumi/pulumi-tls/sdk/v4/go/tls/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" + "github.com/pulumi/pulumi/sdk/v3/go/pulumix" ) // The provider type for the tls package. By default, resources use package-wide configuration @@ -25,6 +27,7 @@ func NewProvider(ctx *pulumi.Context, args = &ProviderArgs{} } + opts = internal.PkgResourceDefaultOpts(opts) var resource Provider err := ctx.RegisterResource("pulumi:providers:tls", name, args, &resource, opts...) if err != nil { @@ -67,6 +70,12 @@ func (i *Provider) ToProviderOutputWithContext(ctx context.Context) ProviderOutp return pulumi.ToOutputWithContext(ctx, i).(ProviderOutput) } +func (i *Provider) ToOutput(ctx context.Context) pulumix.Output[*Provider] { + return pulumix.Output[*Provider]{ + OutputState: i.ToProviderOutputWithContext(ctx).OutputState, + } +} + type ProviderOutput struct{ *pulumi.OutputState } func (ProviderOutput) ElementType() reflect.Type { @@ -81,6 +90,12 @@ func (o ProviderOutput) ToProviderOutputWithContext(ctx context.Context) Provide return o } +func (o ProviderOutput) ToOutput(ctx context.Context) pulumix.Output[*Provider] { + return pulumix.Output[*Provider]{ + OutputState: o.OutputState, + } +} + func init() { pulumi.RegisterInputType(reflect.TypeOf((*ProviderInput)(nil)).Elem(), &Provider{}) pulumi.RegisterOutputType(ProviderOutput{}) diff --git a/vendor/github.com/pulumi/pulumi-tls/sdk/v4/go/tls/pulumiTypes.go b/vendor/github.com/pulumi/pulumi-tls/sdk/v4/go/tls/pulumiTypes.go index 31f86724..e5b81bcf 100644 --- a/vendor/github.com/pulumi/pulumi-tls/sdk/v4/go/tls/pulumiTypes.go +++ b/vendor/github.com/pulumi/pulumi-tls/sdk/v4/go/tls/pulumiTypes.go @@ -7,9 +7,13 @@ import ( "context" "reflect" + "github.com/pulumi/pulumi-tls/sdk/v4/go/tls/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" + "github.com/pulumi/pulumi/sdk/v3/go/pulumix" ) +var _ = internal.GetEnvOrDefault + type CertRequestSubject struct { // Distinguished name: `CN` CommonName *string `pulumi:"commonName"` @@ -75,6 +79,12 @@ func (i CertRequestSubjectArgs) ToCertRequestSubjectOutputWithContext(ctx contex return pulumi.ToOutputWithContext(ctx, i).(CertRequestSubjectOutput) } +func (i CertRequestSubjectArgs) ToOutput(ctx context.Context) pulumix.Output[CertRequestSubject] { + return pulumix.Output[CertRequestSubject]{ + OutputState: i.ToCertRequestSubjectOutputWithContext(ctx).OutputState, + } +} + func (i CertRequestSubjectArgs) ToCertRequestSubjectPtrOutput() CertRequestSubjectPtrOutput { return i.ToCertRequestSubjectPtrOutputWithContext(context.Background()) } @@ -116,6 +126,12 @@ func (i *certRequestSubjectPtrType) ToCertRequestSubjectPtrOutputWithContext(ctx return pulumi.ToOutputWithContext(ctx, i).(CertRequestSubjectPtrOutput) } +func (i *certRequestSubjectPtrType) ToOutput(ctx context.Context) pulumix.Output[*CertRequestSubject] { + return pulumix.Output[*CertRequestSubject]{ + OutputState: i.ToCertRequestSubjectPtrOutputWithContext(ctx).OutputState, + } +} + type CertRequestSubjectOutput struct{ *pulumi.OutputState } func (CertRequestSubjectOutput) ElementType() reflect.Type { @@ -140,6 +156,12 @@ func (o CertRequestSubjectOutput) ToCertRequestSubjectPtrOutputWithContext(ctx c }).(CertRequestSubjectPtrOutput) } +func (o CertRequestSubjectOutput) ToOutput(ctx context.Context) pulumix.Output[CertRequestSubject] { + return pulumix.Output[CertRequestSubject]{ + OutputState: o.OutputState, + } +} + // Distinguished name: `CN` func (o CertRequestSubjectOutput) CommonName() pulumi.StringPtrOutput { return o.ApplyT(func(v CertRequestSubject) *string { return v.CommonName }).(pulumi.StringPtrOutput) @@ -199,6 +221,12 @@ func (o CertRequestSubjectPtrOutput) ToCertRequestSubjectPtrOutputWithContext(ct return o } +func (o CertRequestSubjectPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*CertRequestSubject] { + return pulumix.Output[*CertRequestSubject]{ + OutputState: o.OutputState, + } +} + func (o CertRequestSubjectPtrOutput) Elem() CertRequestSubjectOutput { return o.ApplyT(func(v *CertRequestSubject) CertRequestSubject { if v != nil { @@ -336,6 +364,12 @@ func (i ProviderProxyArgs) ToProviderProxyOutputWithContext(ctx context.Context) return pulumi.ToOutputWithContext(ctx, i).(ProviderProxyOutput) } +func (i ProviderProxyArgs) ToOutput(ctx context.Context) pulumix.Output[ProviderProxy] { + return pulumix.Output[ProviderProxy]{ + OutputState: i.ToProviderProxyOutputWithContext(ctx).OutputState, + } +} + func (i ProviderProxyArgs) ToProviderProxyPtrOutput() ProviderProxyPtrOutput { return i.ToProviderProxyPtrOutputWithContext(context.Background()) } @@ -377,6 +411,12 @@ func (i *providerProxyPtrType) ToProviderProxyPtrOutputWithContext(ctx context.C return pulumi.ToOutputWithContext(ctx, i).(ProviderProxyPtrOutput) } +func (i *providerProxyPtrType) ToOutput(ctx context.Context) pulumix.Output[*ProviderProxy] { + return pulumix.Output[*ProviderProxy]{ + OutputState: i.ToProviderProxyPtrOutputWithContext(ctx).OutputState, + } +} + type ProviderProxyOutput struct{ *pulumi.OutputState } func (ProviderProxyOutput) ElementType() reflect.Type { @@ -401,6 +441,12 @@ func (o ProviderProxyOutput) ToProviderProxyPtrOutputWithContext(ctx context.Con }).(ProviderProxyPtrOutput) } +func (o ProviderProxyOutput) ToOutput(ctx context.Context) pulumix.Output[ProviderProxy] { + return pulumix.Output[ProviderProxy]{ + OutputState: o.OutputState, + } +} + func (o ProviderProxyOutput) FromEnv() pulumi.BoolPtrOutput { return o.ApplyT(func(v ProviderProxy) *bool { return v.FromEnv }).(pulumi.BoolPtrOutput) } @@ -431,6 +477,12 @@ func (o ProviderProxyPtrOutput) ToProviderProxyPtrOutputWithContext(ctx context. return o } +func (o ProviderProxyPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*ProviderProxy] { + return pulumix.Output[*ProviderProxy]{ + OutputState: o.OutputState, + } +} + func (o ProviderProxyPtrOutput) Elem() ProviderProxyOutput { return o.ApplyT(func(v *ProviderProxy) ProviderProxy { if v != nil { @@ -542,6 +594,12 @@ func (i SelfSignedCertSubjectArgs) ToSelfSignedCertSubjectOutputWithContext(ctx return pulumi.ToOutputWithContext(ctx, i).(SelfSignedCertSubjectOutput) } +func (i SelfSignedCertSubjectArgs) ToOutput(ctx context.Context) pulumix.Output[SelfSignedCertSubject] { + return pulumix.Output[SelfSignedCertSubject]{ + OutputState: i.ToSelfSignedCertSubjectOutputWithContext(ctx).OutputState, + } +} + func (i SelfSignedCertSubjectArgs) ToSelfSignedCertSubjectPtrOutput() SelfSignedCertSubjectPtrOutput { return i.ToSelfSignedCertSubjectPtrOutputWithContext(context.Background()) } @@ -583,6 +641,12 @@ func (i *selfSignedCertSubjectPtrType) ToSelfSignedCertSubjectPtrOutputWithConte return pulumi.ToOutputWithContext(ctx, i).(SelfSignedCertSubjectPtrOutput) } +func (i *selfSignedCertSubjectPtrType) ToOutput(ctx context.Context) pulumix.Output[*SelfSignedCertSubject] { + return pulumix.Output[*SelfSignedCertSubject]{ + OutputState: i.ToSelfSignedCertSubjectPtrOutputWithContext(ctx).OutputState, + } +} + type SelfSignedCertSubjectOutput struct{ *pulumi.OutputState } func (SelfSignedCertSubjectOutput) ElementType() reflect.Type { @@ -607,6 +671,12 @@ func (o SelfSignedCertSubjectOutput) ToSelfSignedCertSubjectPtrOutputWithContext }).(SelfSignedCertSubjectPtrOutput) } +func (o SelfSignedCertSubjectOutput) ToOutput(ctx context.Context) pulumix.Output[SelfSignedCertSubject] { + return pulumix.Output[SelfSignedCertSubject]{ + OutputState: o.OutputState, + } +} + // Distinguished name: `CN` func (o SelfSignedCertSubjectOutput) CommonName() pulumi.StringPtrOutput { return o.ApplyT(func(v SelfSignedCertSubject) *string { return v.CommonName }).(pulumi.StringPtrOutput) @@ -666,6 +736,12 @@ func (o SelfSignedCertSubjectPtrOutput) ToSelfSignedCertSubjectPtrOutputWithCont return o } +func (o SelfSignedCertSubjectPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*SelfSignedCertSubject] { + return pulumix.Output[*SelfSignedCertSubject]{ + OutputState: o.OutputState, + } +} + func (o SelfSignedCertSubjectPtrOutput) Elem() SelfSignedCertSubjectOutput { return o.ApplyT(func(v *SelfSignedCertSubject) SelfSignedCertSubject { if v != nil { @@ -767,6 +843,7 @@ func (o SelfSignedCertSubjectPtrOutput) StreetAddresses() pulumi.StringArrayOutp } type GetCertificateCertificate struct { + // Certificate data in PEM (RFC 1421). CertPem string `pulumi:"certPem"` // `true` if the certificate is of a CA (Certificate Authority). IsCa bool `pulumi:"isCa"` @@ -803,6 +880,7 @@ type GetCertificateCertificateInput interface { } type GetCertificateCertificateArgs struct { + // Certificate data in PEM (RFC 1421). CertPem pulumi.StringInput `pulumi:"certPem"` // `true` if the certificate is of a CA (Certificate Authority). IsCa pulumi.BoolInput `pulumi:"isCa"` @@ -839,6 +917,12 @@ func (i GetCertificateCertificateArgs) ToGetCertificateCertificateOutputWithCont return pulumi.ToOutputWithContext(ctx, i).(GetCertificateCertificateOutput) } +func (i GetCertificateCertificateArgs) ToOutput(ctx context.Context) pulumix.Output[GetCertificateCertificate] { + return pulumix.Output[GetCertificateCertificate]{ + OutputState: i.ToGetCertificateCertificateOutputWithContext(ctx).OutputState, + } +} + // GetCertificateCertificateArrayInput is an input type that accepts GetCertificateCertificateArray and GetCertificateCertificateArrayOutput values. // You can construct a concrete instance of `GetCertificateCertificateArrayInput` via: // @@ -864,6 +948,12 @@ func (i GetCertificateCertificateArray) ToGetCertificateCertificateArrayOutputWi return pulumi.ToOutputWithContext(ctx, i).(GetCertificateCertificateArrayOutput) } +func (i GetCertificateCertificateArray) ToOutput(ctx context.Context) pulumix.Output[[]GetCertificateCertificate] { + return pulumix.Output[[]GetCertificateCertificate]{ + OutputState: i.ToGetCertificateCertificateArrayOutputWithContext(ctx).OutputState, + } +} + type GetCertificateCertificateOutput struct{ *pulumi.OutputState } func (GetCertificateCertificateOutput) ElementType() reflect.Type { @@ -878,6 +968,13 @@ func (o GetCertificateCertificateOutput) ToGetCertificateCertificateOutputWithCo return o } +func (o GetCertificateCertificateOutput) ToOutput(ctx context.Context) pulumix.Output[GetCertificateCertificate] { + return pulumix.Output[GetCertificateCertificate]{ + OutputState: o.OutputState, + } +} + +// Certificate data in PEM (RFC 1421). func (o GetCertificateCertificateOutput) CertPem() pulumi.StringOutput { return o.ApplyT(func(v GetCertificateCertificate) string { return v.CertPem }).(pulumi.StringOutput) } @@ -947,6 +1044,12 @@ func (o GetCertificateCertificateArrayOutput) ToGetCertificateCertificateArrayOu return o } +func (o GetCertificateCertificateArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]GetCertificateCertificate] { + return pulumix.Output[[]GetCertificateCertificate]{ + OutputState: o.OutputState, + } +} + func (o GetCertificateCertificateArrayOutput) Index(i pulumi.IntInput) GetCertificateCertificateOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) GetCertificateCertificate { return vs[0].([]GetCertificateCertificate)[vs[1].(int)] diff --git a/vendor/github.com/pulumi/pulumi-tls/sdk/v4/go/tls/selfSignedCert.go b/vendor/github.com/pulumi/pulumi-tls/sdk/v4/go/tls/selfSignedCert.go index 9d77a7f1..29f42337 100644 --- a/vendor/github.com/pulumi/pulumi-tls/sdk/v4/go/tls/selfSignedCert.go +++ b/vendor/github.com/pulumi/pulumi-tls/sdk/v4/go/tls/selfSignedCert.go @@ -7,8 +7,10 @@ import ( "context" "reflect" - "github.com/pkg/errors" + "errors" + "github.com/pulumi/pulumi-tls/sdk/v4/go/tls/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" + "github.com/pulumi/pulumi/sdk/v3/go/pulumix" ) type SelfSignedCert struct { @@ -16,11 +18,7 @@ type SelfSignedCert struct { // List of key usages allowed for the issued certificate. Values are defined in [RFC 5280](https://datatracker.ietf.org/doc/html/rfc5280) and combine flags defined by both [Key Usages](https://datatracker.ietf.org/doc/html/rfc5280#section-4.2.1.3) and [Extended Key Usages](https://datatracker.ietf.org/doc/html/rfc5280#section-4.2.1.12). Accepted values: `anyExtended`, `certSigning`, `clientAuth`, `codeSigning`, `contentCommitment`, `crlSigning`, `dataEncipherment`, `decipherOnly`, `digitalSignature`, `emailProtection`, `encipherOnly`, `ipsecEndSystem`, `ipsecTunnel`, `ipsecUser`, `keyAgreement`, `keyEncipherment`, `microsoftCommercialCodeSigning`, `microsoftKernelCodeSigning`, `microsoftServerGatedCrypto`, `netscapeServerGatedCrypto`, `ocspSigning`, `serverAuth`, `timestamping`. AllowedUses pulumi.StringArrayOutput `pulumi:"allowedUses"` - // Certificate data in [PEM (RFC 1421)](https://datatracker.ietf.org/doc/html/rfc1421) format. **NOTE**: the - // [underlying](https://pkg.go.dev/encoding/pem#Encode) - // [libraries](https://pkg.go.dev/golang.org/x/crypto/ssh#MarshalAuthorizedKey) that generate this value append a `\n` at - // the end of the PEM. In case this disrupts your use case, we recommend using - // [`trimspace()`](https://www.terraform.io/language/functions/trimspace). + // Certificate data in PEM (RFC 1421). CertPem pulumi.StringOutput `pulumi:"certPem"` // List of DNS names for which a certificate is being requested (i.e. certificate subjects). DnsNames pulumi.StringArrayOutput `pulumi:"dnsNames"` @@ -83,6 +81,7 @@ func NewSelfSignedCert(ctx *pulumi.Context, "privateKeyPem", }) opts = append(opts, secrets) + opts = internal.PkgResourceDefaultOpts(opts) var resource SelfSignedCert err := ctx.RegisterResource("tls:index/selfSignedCert:SelfSignedCert", name, args, &resource, opts...) if err != nil { @@ -107,11 +106,7 @@ func GetSelfSignedCert(ctx *pulumi.Context, type selfSignedCertState struct { // List of key usages allowed for the issued certificate. Values are defined in [RFC 5280](https://datatracker.ietf.org/doc/html/rfc5280) and combine flags defined by both [Key Usages](https://datatracker.ietf.org/doc/html/rfc5280#section-4.2.1.3) and [Extended Key Usages](https://datatracker.ietf.org/doc/html/rfc5280#section-4.2.1.12). Accepted values: `anyExtended`, `certSigning`, `clientAuth`, `codeSigning`, `contentCommitment`, `crlSigning`, `dataEncipherment`, `decipherOnly`, `digitalSignature`, `emailProtection`, `encipherOnly`, `ipsecEndSystem`, `ipsecTunnel`, `ipsecUser`, `keyAgreement`, `keyEncipherment`, `microsoftCommercialCodeSigning`, `microsoftKernelCodeSigning`, `microsoftServerGatedCrypto`, `netscapeServerGatedCrypto`, `ocspSigning`, `serverAuth`, `timestamping`. AllowedUses []string `pulumi:"allowedUses"` - // Certificate data in [PEM (RFC 1421)](https://datatracker.ietf.org/doc/html/rfc1421) format. **NOTE**: the - // [underlying](https://pkg.go.dev/encoding/pem#Encode) - // [libraries](https://pkg.go.dev/golang.org/x/crypto/ssh#MarshalAuthorizedKey) that generate this value append a `\n` at - // the end of the PEM. In case this disrupts your use case, we recommend using - // [`trimspace()`](https://www.terraform.io/language/functions/trimspace). + // Certificate data in PEM (RFC 1421). CertPem *string `pulumi:"certPem"` // List of DNS names for which a certificate is being requested (i.e. certificate subjects). DnsNames []string `pulumi:"dnsNames"` @@ -154,11 +149,7 @@ type selfSignedCertState struct { type SelfSignedCertState struct { // List of key usages allowed for the issued certificate. Values are defined in [RFC 5280](https://datatracker.ietf.org/doc/html/rfc5280) and combine flags defined by both [Key Usages](https://datatracker.ietf.org/doc/html/rfc5280#section-4.2.1.3) and [Extended Key Usages](https://datatracker.ietf.org/doc/html/rfc5280#section-4.2.1.12). Accepted values: `anyExtended`, `certSigning`, `clientAuth`, `codeSigning`, `contentCommitment`, `crlSigning`, `dataEncipherment`, `decipherOnly`, `digitalSignature`, `emailProtection`, `encipherOnly`, `ipsecEndSystem`, `ipsecTunnel`, `ipsecUser`, `keyAgreement`, `keyEncipherment`, `microsoftCommercialCodeSigning`, `microsoftKernelCodeSigning`, `microsoftServerGatedCrypto`, `netscapeServerGatedCrypto`, `ocspSigning`, `serverAuth`, `timestamping`. AllowedUses pulumi.StringArrayInput - // Certificate data in [PEM (RFC 1421)](https://datatracker.ietf.org/doc/html/rfc1421) format. **NOTE**: the - // [underlying](https://pkg.go.dev/encoding/pem#Encode) - // [libraries](https://pkg.go.dev/golang.org/x/crypto/ssh#MarshalAuthorizedKey) that generate this value append a `\n` at - // the end of the PEM. In case this disrupts your use case, we recommend using - // [`trimspace()`](https://www.terraform.io/language/functions/trimspace). + // Certificate data in PEM (RFC 1421). CertPem pulumi.StringPtrInput // List of DNS names for which a certificate is being requested (i.e. certificate subjects). DnsNames pulumi.StringArrayInput @@ -296,6 +287,12 @@ func (i *SelfSignedCert) ToSelfSignedCertOutputWithContext(ctx context.Context) return pulumi.ToOutputWithContext(ctx, i).(SelfSignedCertOutput) } +func (i *SelfSignedCert) ToOutput(ctx context.Context) pulumix.Output[*SelfSignedCert] { + return pulumix.Output[*SelfSignedCert]{ + OutputState: i.ToSelfSignedCertOutputWithContext(ctx).OutputState, + } +} + // SelfSignedCertArrayInput is an input type that accepts SelfSignedCertArray and SelfSignedCertArrayOutput values. // You can construct a concrete instance of `SelfSignedCertArrayInput` via: // @@ -321,6 +318,12 @@ func (i SelfSignedCertArray) ToSelfSignedCertArrayOutputWithContext(ctx context. return pulumi.ToOutputWithContext(ctx, i).(SelfSignedCertArrayOutput) } +func (i SelfSignedCertArray) ToOutput(ctx context.Context) pulumix.Output[[]*SelfSignedCert] { + return pulumix.Output[[]*SelfSignedCert]{ + OutputState: i.ToSelfSignedCertArrayOutputWithContext(ctx).OutputState, + } +} + // SelfSignedCertMapInput is an input type that accepts SelfSignedCertMap and SelfSignedCertMapOutput values. // You can construct a concrete instance of `SelfSignedCertMapInput` via: // @@ -346,6 +349,12 @@ func (i SelfSignedCertMap) ToSelfSignedCertMapOutputWithContext(ctx context.Cont return pulumi.ToOutputWithContext(ctx, i).(SelfSignedCertMapOutput) } +func (i SelfSignedCertMap) ToOutput(ctx context.Context) pulumix.Output[map[string]*SelfSignedCert] { + return pulumix.Output[map[string]*SelfSignedCert]{ + OutputState: i.ToSelfSignedCertMapOutputWithContext(ctx).OutputState, + } +} + type SelfSignedCertOutput struct{ *pulumi.OutputState } func (SelfSignedCertOutput) ElementType() reflect.Type { @@ -360,16 +369,18 @@ func (o SelfSignedCertOutput) ToSelfSignedCertOutputWithContext(ctx context.Cont return o } +func (o SelfSignedCertOutput) ToOutput(ctx context.Context) pulumix.Output[*SelfSignedCert] { + return pulumix.Output[*SelfSignedCert]{ + OutputState: o.OutputState, + } +} + // List of key usages allowed for the issued certificate. Values are defined in [RFC 5280](https://datatracker.ietf.org/doc/html/rfc5280) and combine flags defined by both [Key Usages](https://datatracker.ietf.org/doc/html/rfc5280#section-4.2.1.3) and [Extended Key Usages](https://datatracker.ietf.org/doc/html/rfc5280#section-4.2.1.12). Accepted values: `anyExtended`, `certSigning`, `clientAuth`, `codeSigning`, `contentCommitment`, `crlSigning`, `dataEncipherment`, `decipherOnly`, `digitalSignature`, `emailProtection`, `encipherOnly`, `ipsecEndSystem`, `ipsecTunnel`, `ipsecUser`, `keyAgreement`, `keyEncipherment`, `microsoftCommercialCodeSigning`, `microsoftKernelCodeSigning`, `microsoftServerGatedCrypto`, `netscapeServerGatedCrypto`, `ocspSigning`, `serverAuth`, `timestamping`. func (o SelfSignedCertOutput) AllowedUses() pulumi.StringArrayOutput { return o.ApplyT(func(v *SelfSignedCert) pulumi.StringArrayOutput { return v.AllowedUses }).(pulumi.StringArrayOutput) } -// Certificate data in [PEM (RFC 1421)](https://datatracker.ietf.org/doc/html/rfc1421) format. **NOTE**: the -// [underlying](https://pkg.go.dev/encoding/pem#Encode) -// [libraries](https://pkg.go.dev/golang.org/x/crypto/ssh#MarshalAuthorizedKey) that generate this value append a `\n` at -// the end of the PEM. In case this disrupts your use case, we recommend using -// [`trimspace()`](https://www.terraform.io/language/functions/trimspace). +// Certificate data in PEM (RFC 1421). func (o SelfSignedCertOutput) CertPem() pulumi.StringOutput { return o.ApplyT(func(v *SelfSignedCert) pulumi.StringOutput { return v.CertPem }).(pulumi.StringOutput) } @@ -466,6 +477,12 @@ func (o SelfSignedCertArrayOutput) ToSelfSignedCertArrayOutputWithContext(ctx co return o } +func (o SelfSignedCertArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]*SelfSignedCert] { + return pulumix.Output[[]*SelfSignedCert]{ + OutputState: o.OutputState, + } +} + func (o SelfSignedCertArrayOutput) Index(i pulumi.IntInput) SelfSignedCertOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *SelfSignedCert { return vs[0].([]*SelfSignedCert)[vs[1].(int)] @@ -486,6 +503,12 @@ func (o SelfSignedCertMapOutput) ToSelfSignedCertMapOutputWithContext(ctx contex return o } +func (o SelfSignedCertMapOutput) ToOutput(ctx context.Context) pulumix.Output[map[string]*SelfSignedCert] { + return pulumix.Output[map[string]*SelfSignedCert]{ + OutputState: o.OutputState, + } +} + func (o SelfSignedCertMapOutput) MapIndex(k pulumi.StringInput) SelfSignedCertOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *SelfSignedCert { return vs[0].(map[string]*SelfSignedCert)[vs[1].(string)] diff --git a/vendor/modules.txt b/vendor/modules.txt index 699a6a44..f24c32d4 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -439,9 +439,10 @@ github.com/pulumi/pulumi-command/sdk/go/command/remote # github.com/pulumi/pulumi-random/sdk/v4 v4.13.4 ## explicit; go 1.19 github.com/pulumi/pulumi-random/sdk/v4/go/random -# github.com/pulumi/pulumi-tls/sdk/v4 v4.10.0 -## explicit; go 1.17 +# github.com/pulumi/pulumi-tls/sdk/v4 v4.11.0 +## explicit; go 1.21 github.com/pulumi/pulumi-tls/sdk/v4/go/tls +github.com/pulumi/pulumi-tls/sdk/v4/go/tls/internal # github.com/pulumi/pulumi/sdk/v3 v3.84.0 ## explicit; go 1.18 github.com/pulumi/pulumi/sdk/v3/go/auto