github.com/pulumi/pulumi-aws/sdk/v6@v6.32.0/go/aws/iot/caCertificate.go (about)

     1  // Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT.
     2  // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
     3  
     4  package iot
     5  
     6  import (
     7  	"context"
     8  	"reflect"
     9  
    10  	"errors"
    11  	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/internal"
    12  	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    13  )
    14  
    15  // Creates and manages an AWS IoT CA Certificate.
    16  //
    17  // ## Example Usage
    18  //
    19  // <!--Start PulumiCodeChooser -->
    20  // ```go
    21  // package main
    22  //
    23  // import (
    24  //
    25  //	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/iot"
    26  //	"github.com/pulumi/pulumi-tls/sdk/v4/go/tls"
    27  //	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    28  //
    29  // )
    30  //
    31  //	func main() {
    32  //		pulumi.Run(func(ctx *pulumi.Context) error {
    33  //			caPrivateKey, err := tls.NewPrivateKey(ctx, "ca", &tls.PrivateKeyArgs{
    34  //				Algorithm: pulumi.String("RSA"),
    35  //			})
    36  //			if err != nil {
    37  //				return err
    38  //			}
    39  //			ca, err := tls.NewSelfSignedCert(ctx, "ca", &tls.SelfSignedCertArgs{
    40  //				PrivateKeyPem: caPrivateKey.PrivateKeyPem,
    41  //				Subject: &tls.SelfSignedCertSubjectArgs{
    42  //					CommonName:   pulumi.String("example.com"),
    43  //					Organization: pulumi.String("ACME Examples, Inc"),
    44  //				},
    45  //				ValidityPeriodHours: pulumi.Int(12),
    46  //				AllowedUses: pulumi.StringArray{
    47  //					pulumi.String("key_encipherment"),
    48  //					pulumi.String("digital_signature"),
    49  //					pulumi.String("server_auth"),
    50  //				},
    51  //				IsCaCertificate: pulumi.Bool(true),
    52  //			})
    53  //			if err != nil {
    54  //				return err
    55  //			}
    56  //			verificationPrivateKey, err := tls.NewPrivateKey(ctx, "verification", &tls.PrivateKeyArgs{
    57  //				Algorithm: pulumi.String("RSA"),
    58  //			})
    59  //			if err != nil {
    60  //				return err
    61  //			}
    62  //			example, err := iot.GetRegistrationCode(ctx, nil, nil)
    63  //			if err != nil {
    64  //				return err
    65  //			}
    66  //			verification, err := tls.NewCertRequest(ctx, "verification", &tls.CertRequestArgs{
    67  //				PrivateKeyPem: verificationPrivateKey.PrivateKeyPem,
    68  //				Subject: &tls.CertRequestSubjectArgs{
    69  //					CommonName: pulumi.String(example.RegistrationCode),
    70  //				},
    71  //			})
    72  //			if err != nil {
    73  //				return err
    74  //			}
    75  //			verificationLocallySignedCert, err := tls.NewLocallySignedCert(ctx, "verification", &tls.LocallySignedCertArgs{
    76  //				CertRequestPem:      verification.CertRequestPem,
    77  //				CaPrivateKeyPem:     caPrivateKey.PrivateKeyPem,
    78  //				CaCertPem:           ca.CertPem,
    79  //				ValidityPeriodHours: pulumi.Int(12),
    80  //				AllowedUses: pulumi.StringArray{
    81  //					pulumi.String("key_encipherment"),
    82  //					pulumi.String("digital_signature"),
    83  //					pulumi.String("server_auth"),
    84  //				},
    85  //			})
    86  //			if err != nil {
    87  //				return err
    88  //			}
    89  //			_, err = iot.NewCaCertificate(ctx, "example", &iot.CaCertificateArgs{
    90  //				Active:                     pulumi.Bool(true),
    91  //				CaCertificatePem:           ca.CertPem,
    92  //				VerificationCertificatePem: verificationLocallySignedCert.CertPem,
    93  //				AllowAutoRegistration:      pulumi.Bool(true),
    94  //			})
    95  //			if err != nil {
    96  //				return err
    97  //			}
    98  //			return nil
    99  //		})
   100  //	}
   101  //
   102  // ```
   103  // <!--End PulumiCodeChooser -->
   104  type CaCertificate struct {
   105  	pulumi.CustomResourceState
   106  
   107  	// Boolean flag to indicate if the certificate should be active for device authentication.
   108  	Active pulumi.BoolOutput `pulumi:"active"`
   109  	// Boolean flag to indicate if the certificate should be active for device regisration.
   110  	AllowAutoRegistration pulumi.BoolOutput `pulumi:"allowAutoRegistration"`
   111  	// The ARN of the created CA certificate.
   112  	Arn pulumi.StringOutput `pulumi:"arn"`
   113  	// PEM encoded CA certificate.
   114  	CaCertificatePem pulumi.StringOutput `pulumi:"caCertificatePem"`
   115  	// The certificate mode in which the CA will be registered. Valida values: `DEFAULT` and `SNI_ONLY`. Default: `DEFAULT`.
   116  	CertificateMode pulumi.StringPtrOutput `pulumi:"certificateMode"`
   117  	// The customer version of the CA certificate.
   118  	CustomerVersion pulumi.IntOutput `pulumi:"customerVersion"`
   119  	// The generation ID of the CA certificate.
   120  	GenerationId pulumi.StringOutput `pulumi:"generationId"`
   121  	// Information about the registration configuration. See below.
   122  	RegistrationConfig CaCertificateRegistrationConfigPtrOutput `pulumi:"registrationConfig"`
   123  	// A map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
   124  	Tags pulumi.StringMapOutput `pulumi:"tags"`
   125  	// A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
   126  	//
   127  	// Deprecated: Please use `tags` instead.
   128  	TagsAll pulumi.StringMapOutput `pulumi:"tagsAll"`
   129  	// When the CA certificate is valid.
   130  	Validities CaCertificateValidityArrayOutput `pulumi:"validities"`
   131  	// PEM encoded verification certificate containing the common name of a registration code. Review
   132  	// [CreateVerificationCSR](https://docs.aws.amazon.com/iot/latest/developerguide/register-CA-cert.html). Reuired if `certificateMode` is `DEFAULT`.
   133  	VerificationCertificatePem pulumi.StringPtrOutput `pulumi:"verificationCertificatePem"`
   134  }
   135  
   136  // NewCaCertificate registers a new resource with the given unique name, arguments, and options.
   137  func NewCaCertificate(ctx *pulumi.Context,
   138  	name string, args *CaCertificateArgs, opts ...pulumi.ResourceOption) (*CaCertificate, error) {
   139  	if args == nil {
   140  		return nil, errors.New("missing one or more required arguments")
   141  	}
   142  
   143  	if args.Active == nil {
   144  		return nil, errors.New("invalid value for required argument 'Active'")
   145  	}
   146  	if args.AllowAutoRegistration == nil {
   147  		return nil, errors.New("invalid value for required argument 'AllowAutoRegistration'")
   148  	}
   149  	if args.CaCertificatePem == nil {
   150  		return nil, errors.New("invalid value for required argument 'CaCertificatePem'")
   151  	}
   152  	if args.CaCertificatePem != nil {
   153  		args.CaCertificatePem = pulumi.ToSecret(args.CaCertificatePem).(pulumi.StringInput)
   154  	}
   155  	if args.VerificationCertificatePem != nil {
   156  		args.VerificationCertificatePem = pulumi.ToSecret(args.VerificationCertificatePem).(pulumi.StringPtrInput)
   157  	}
   158  	secrets := pulumi.AdditionalSecretOutputs([]string{
   159  		"caCertificatePem",
   160  		"verificationCertificatePem",
   161  	})
   162  	opts = append(opts, secrets)
   163  	opts = internal.PkgResourceDefaultOpts(opts)
   164  	var resource CaCertificate
   165  	err := ctx.RegisterResource("aws:iot/caCertificate:CaCertificate", name, args, &resource, opts...)
   166  	if err != nil {
   167  		return nil, err
   168  	}
   169  	return &resource, nil
   170  }
   171  
   172  // GetCaCertificate gets an existing CaCertificate resource's state with the given name, ID, and optional
   173  // state properties that are used to uniquely qualify the lookup (nil if not required).
   174  func GetCaCertificate(ctx *pulumi.Context,
   175  	name string, id pulumi.IDInput, state *CaCertificateState, opts ...pulumi.ResourceOption) (*CaCertificate, error) {
   176  	var resource CaCertificate
   177  	err := ctx.ReadResource("aws:iot/caCertificate:CaCertificate", name, id, state, &resource, opts...)
   178  	if err != nil {
   179  		return nil, err
   180  	}
   181  	return &resource, nil
   182  }
   183  
   184  // Input properties used for looking up and filtering CaCertificate resources.
   185  type caCertificateState struct {
   186  	// Boolean flag to indicate if the certificate should be active for device authentication.
   187  	Active *bool `pulumi:"active"`
   188  	// Boolean flag to indicate if the certificate should be active for device regisration.
   189  	AllowAutoRegistration *bool `pulumi:"allowAutoRegistration"`
   190  	// The ARN of the created CA certificate.
   191  	Arn *string `pulumi:"arn"`
   192  	// PEM encoded CA certificate.
   193  	CaCertificatePem *string `pulumi:"caCertificatePem"`
   194  	// The certificate mode in which the CA will be registered. Valida values: `DEFAULT` and `SNI_ONLY`. Default: `DEFAULT`.
   195  	CertificateMode *string `pulumi:"certificateMode"`
   196  	// The customer version of the CA certificate.
   197  	CustomerVersion *int `pulumi:"customerVersion"`
   198  	// The generation ID of the CA certificate.
   199  	GenerationId *string `pulumi:"generationId"`
   200  	// Information about the registration configuration. See below.
   201  	RegistrationConfig *CaCertificateRegistrationConfig `pulumi:"registrationConfig"`
   202  	// A map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
   203  	Tags map[string]string `pulumi:"tags"`
   204  	// A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
   205  	//
   206  	// Deprecated: Please use `tags` instead.
   207  	TagsAll map[string]string `pulumi:"tagsAll"`
   208  	// When the CA certificate is valid.
   209  	Validities []CaCertificateValidity `pulumi:"validities"`
   210  	// PEM encoded verification certificate containing the common name of a registration code. Review
   211  	// [CreateVerificationCSR](https://docs.aws.amazon.com/iot/latest/developerguide/register-CA-cert.html). Reuired if `certificateMode` is `DEFAULT`.
   212  	VerificationCertificatePem *string `pulumi:"verificationCertificatePem"`
   213  }
   214  
   215  type CaCertificateState struct {
   216  	// Boolean flag to indicate if the certificate should be active for device authentication.
   217  	Active pulumi.BoolPtrInput
   218  	// Boolean flag to indicate if the certificate should be active for device regisration.
   219  	AllowAutoRegistration pulumi.BoolPtrInput
   220  	// The ARN of the created CA certificate.
   221  	Arn pulumi.StringPtrInput
   222  	// PEM encoded CA certificate.
   223  	CaCertificatePem pulumi.StringPtrInput
   224  	// The certificate mode in which the CA will be registered. Valida values: `DEFAULT` and `SNI_ONLY`. Default: `DEFAULT`.
   225  	CertificateMode pulumi.StringPtrInput
   226  	// The customer version of the CA certificate.
   227  	CustomerVersion pulumi.IntPtrInput
   228  	// The generation ID of the CA certificate.
   229  	GenerationId pulumi.StringPtrInput
   230  	// Information about the registration configuration. See below.
   231  	RegistrationConfig CaCertificateRegistrationConfigPtrInput
   232  	// A map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
   233  	Tags pulumi.StringMapInput
   234  	// A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
   235  	//
   236  	// Deprecated: Please use `tags` instead.
   237  	TagsAll pulumi.StringMapInput
   238  	// When the CA certificate is valid.
   239  	Validities CaCertificateValidityArrayInput
   240  	// PEM encoded verification certificate containing the common name of a registration code. Review
   241  	// [CreateVerificationCSR](https://docs.aws.amazon.com/iot/latest/developerguide/register-CA-cert.html). Reuired if `certificateMode` is `DEFAULT`.
   242  	VerificationCertificatePem pulumi.StringPtrInput
   243  }
   244  
   245  func (CaCertificateState) ElementType() reflect.Type {
   246  	return reflect.TypeOf((*caCertificateState)(nil)).Elem()
   247  }
   248  
   249  type caCertificateArgs struct {
   250  	// Boolean flag to indicate if the certificate should be active for device authentication.
   251  	Active bool `pulumi:"active"`
   252  	// Boolean flag to indicate if the certificate should be active for device regisration.
   253  	AllowAutoRegistration bool `pulumi:"allowAutoRegistration"`
   254  	// PEM encoded CA certificate.
   255  	CaCertificatePem string `pulumi:"caCertificatePem"`
   256  	// The certificate mode in which the CA will be registered. Valida values: `DEFAULT` and `SNI_ONLY`. Default: `DEFAULT`.
   257  	CertificateMode *string `pulumi:"certificateMode"`
   258  	// Information about the registration configuration. See below.
   259  	RegistrationConfig *CaCertificateRegistrationConfig `pulumi:"registrationConfig"`
   260  	// A map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
   261  	Tags map[string]string `pulumi:"tags"`
   262  	// PEM encoded verification certificate containing the common name of a registration code. Review
   263  	// [CreateVerificationCSR](https://docs.aws.amazon.com/iot/latest/developerguide/register-CA-cert.html). Reuired if `certificateMode` is `DEFAULT`.
   264  	VerificationCertificatePem *string `pulumi:"verificationCertificatePem"`
   265  }
   266  
   267  // The set of arguments for constructing a CaCertificate resource.
   268  type CaCertificateArgs struct {
   269  	// Boolean flag to indicate if the certificate should be active for device authentication.
   270  	Active pulumi.BoolInput
   271  	// Boolean flag to indicate if the certificate should be active for device regisration.
   272  	AllowAutoRegistration pulumi.BoolInput
   273  	// PEM encoded CA certificate.
   274  	CaCertificatePem pulumi.StringInput
   275  	// The certificate mode in which the CA will be registered. Valida values: `DEFAULT` and `SNI_ONLY`. Default: `DEFAULT`.
   276  	CertificateMode pulumi.StringPtrInput
   277  	// Information about the registration configuration. See below.
   278  	RegistrationConfig CaCertificateRegistrationConfigPtrInput
   279  	// A map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
   280  	Tags pulumi.StringMapInput
   281  	// PEM encoded verification certificate containing the common name of a registration code. Review
   282  	// [CreateVerificationCSR](https://docs.aws.amazon.com/iot/latest/developerguide/register-CA-cert.html). Reuired if `certificateMode` is `DEFAULT`.
   283  	VerificationCertificatePem pulumi.StringPtrInput
   284  }
   285  
   286  func (CaCertificateArgs) ElementType() reflect.Type {
   287  	return reflect.TypeOf((*caCertificateArgs)(nil)).Elem()
   288  }
   289  
   290  type CaCertificateInput interface {
   291  	pulumi.Input
   292  
   293  	ToCaCertificateOutput() CaCertificateOutput
   294  	ToCaCertificateOutputWithContext(ctx context.Context) CaCertificateOutput
   295  }
   296  
   297  func (*CaCertificate) ElementType() reflect.Type {
   298  	return reflect.TypeOf((**CaCertificate)(nil)).Elem()
   299  }
   300  
   301  func (i *CaCertificate) ToCaCertificateOutput() CaCertificateOutput {
   302  	return i.ToCaCertificateOutputWithContext(context.Background())
   303  }
   304  
   305  func (i *CaCertificate) ToCaCertificateOutputWithContext(ctx context.Context) CaCertificateOutput {
   306  	return pulumi.ToOutputWithContext(ctx, i).(CaCertificateOutput)
   307  }
   308  
   309  // CaCertificateArrayInput is an input type that accepts CaCertificateArray and CaCertificateArrayOutput values.
   310  // You can construct a concrete instance of `CaCertificateArrayInput` via:
   311  //
   312  //	CaCertificateArray{ CaCertificateArgs{...} }
   313  type CaCertificateArrayInput interface {
   314  	pulumi.Input
   315  
   316  	ToCaCertificateArrayOutput() CaCertificateArrayOutput
   317  	ToCaCertificateArrayOutputWithContext(context.Context) CaCertificateArrayOutput
   318  }
   319  
   320  type CaCertificateArray []CaCertificateInput
   321  
   322  func (CaCertificateArray) ElementType() reflect.Type {
   323  	return reflect.TypeOf((*[]*CaCertificate)(nil)).Elem()
   324  }
   325  
   326  func (i CaCertificateArray) ToCaCertificateArrayOutput() CaCertificateArrayOutput {
   327  	return i.ToCaCertificateArrayOutputWithContext(context.Background())
   328  }
   329  
   330  func (i CaCertificateArray) ToCaCertificateArrayOutputWithContext(ctx context.Context) CaCertificateArrayOutput {
   331  	return pulumi.ToOutputWithContext(ctx, i).(CaCertificateArrayOutput)
   332  }
   333  
   334  // CaCertificateMapInput is an input type that accepts CaCertificateMap and CaCertificateMapOutput values.
   335  // You can construct a concrete instance of `CaCertificateMapInput` via:
   336  //
   337  //	CaCertificateMap{ "key": CaCertificateArgs{...} }
   338  type CaCertificateMapInput interface {
   339  	pulumi.Input
   340  
   341  	ToCaCertificateMapOutput() CaCertificateMapOutput
   342  	ToCaCertificateMapOutputWithContext(context.Context) CaCertificateMapOutput
   343  }
   344  
   345  type CaCertificateMap map[string]CaCertificateInput
   346  
   347  func (CaCertificateMap) ElementType() reflect.Type {
   348  	return reflect.TypeOf((*map[string]*CaCertificate)(nil)).Elem()
   349  }
   350  
   351  func (i CaCertificateMap) ToCaCertificateMapOutput() CaCertificateMapOutput {
   352  	return i.ToCaCertificateMapOutputWithContext(context.Background())
   353  }
   354  
   355  func (i CaCertificateMap) ToCaCertificateMapOutputWithContext(ctx context.Context) CaCertificateMapOutput {
   356  	return pulumi.ToOutputWithContext(ctx, i).(CaCertificateMapOutput)
   357  }
   358  
   359  type CaCertificateOutput struct{ *pulumi.OutputState }
   360  
   361  func (CaCertificateOutput) ElementType() reflect.Type {
   362  	return reflect.TypeOf((**CaCertificate)(nil)).Elem()
   363  }
   364  
   365  func (o CaCertificateOutput) ToCaCertificateOutput() CaCertificateOutput {
   366  	return o
   367  }
   368  
   369  func (o CaCertificateOutput) ToCaCertificateOutputWithContext(ctx context.Context) CaCertificateOutput {
   370  	return o
   371  }
   372  
   373  // Boolean flag to indicate if the certificate should be active for device authentication.
   374  func (o CaCertificateOutput) Active() pulumi.BoolOutput {
   375  	return o.ApplyT(func(v *CaCertificate) pulumi.BoolOutput { return v.Active }).(pulumi.BoolOutput)
   376  }
   377  
   378  // Boolean flag to indicate if the certificate should be active for device regisration.
   379  func (o CaCertificateOutput) AllowAutoRegistration() pulumi.BoolOutput {
   380  	return o.ApplyT(func(v *CaCertificate) pulumi.BoolOutput { return v.AllowAutoRegistration }).(pulumi.BoolOutput)
   381  }
   382  
   383  // The ARN of the created CA certificate.
   384  func (o CaCertificateOutput) Arn() pulumi.StringOutput {
   385  	return o.ApplyT(func(v *CaCertificate) pulumi.StringOutput { return v.Arn }).(pulumi.StringOutput)
   386  }
   387  
   388  // PEM encoded CA certificate.
   389  func (o CaCertificateOutput) CaCertificatePem() pulumi.StringOutput {
   390  	return o.ApplyT(func(v *CaCertificate) pulumi.StringOutput { return v.CaCertificatePem }).(pulumi.StringOutput)
   391  }
   392  
   393  // The certificate mode in which the CA will be registered. Valida values: `DEFAULT` and `SNI_ONLY`. Default: `DEFAULT`.
   394  func (o CaCertificateOutput) CertificateMode() pulumi.StringPtrOutput {
   395  	return o.ApplyT(func(v *CaCertificate) pulumi.StringPtrOutput { return v.CertificateMode }).(pulumi.StringPtrOutput)
   396  }
   397  
   398  // The customer version of the CA certificate.
   399  func (o CaCertificateOutput) CustomerVersion() pulumi.IntOutput {
   400  	return o.ApplyT(func(v *CaCertificate) pulumi.IntOutput { return v.CustomerVersion }).(pulumi.IntOutput)
   401  }
   402  
   403  // The generation ID of the CA certificate.
   404  func (o CaCertificateOutput) GenerationId() pulumi.StringOutput {
   405  	return o.ApplyT(func(v *CaCertificate) pulumi.StringOutput { return v.GenerationId }).(pulumi.StringOutput)
   406  }
   407  
   408  // Information about the registration configuration. See below.
   409  func (o CaCertificateOutput) RegistrationConfig() CaCertificateRegistrationConfigPtrOutput {
   410  	return o.ApplyT(func(v *CaCertificate) CaCertificateRegistrationConfigPtrOutput { return v.RegistrationConfig }).(CaCertificateRegistrationConfigPtrOutput)
   411  }
   412  
   413  // A map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
   414  func (o CaCertificateOutput) Tags() pulumi.StringMapOutput {
   415  	return o.ApplyT(func(v *CaCertificate) pulumi.StringMapOutput { return v.Tags }).(pulumi.StringMapOutput)
   416  }
   417  
   418  // A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
   419  //
   420  // Deprecated: Please use `tags` instead.
   421  func (o CaCertificateOutput) TagsAll() pulumi.StringMapOutput {
   422  	return o.ApplyT(func(v *CaCertificate) pulumi.StringMapOutput { return v.TagsAll }).(pulumi.StringMapOutput)
   423  }
   424  
   425  // When the CA certificate is valid.
   426  func (o CaCertificateOutput) Validities() CaCertificateValidityArrayOutput {
   427  	return o.ApplyT(func(v *CaCertificate) CaCertificateValidityArrayOutput { return v.Validities }).(CaCertificateValidityArrayOutput)
   428  }
   429  
   430  // PEM encoded verification certificate containing the common name of a registration code. Review
   431  // [CreateVerificationCSR](https://docs.aws.amazon.com/iot/latest/developerguide/register-CA-cert.html). Reuired if `certificateMode` is `DEFAULT`.
   432  func (o CaCertificateOutput) VerificationCertificatePem() pulumi.StringPtrOutput {
   433  	return o.ApplyT(func(v *CaCertificate) pulumi.StringPtrOutput { return v.VerificationCertificatePem }).(pulumi.StringPtrOutput)
   434  }
   435  
   436  type CaCertificateArrayOutput struct{ *pulumi.OutputState }
   437  
   438  func (CaCertificateArrayOutput) ElementType() reflect.Type {
   439  	return reflect.TypeOf((*[]*CaCertificate)(nil)).Elem()
   440  }
   441  
   442  func (o CaCertificateArrayOutput) ToCaCertificateArrayOutput() CaCertificateArrayOutput {
   443  	return o
   444  }
   445  
   446  func (o CaCertificateArrayOutput) ToCaCertificateArrayOutputWithContext(ctx context.Context) CaCertificateArrayOutput {
   447  	return o
   448  }
   449  
   450  func (o CaCertificateArrayOutput) Index(i pulumi.IntInput) CaCertificateOutput {
   451  	return pulumi.All(o, i).ApplyT(func(vs []interface{}) *CaCertificate {
   452  		return vs[0].([]*CaCertificate)[vs[1].(int)]
   453  	}).(CaCertificateOutput)
   454  }
   455  
   456  type CaCertificateMapOutput struct{ *pulumi.OutputState }
   457  
   458  func (CaCertificateMapOutput) ElementType() reflect.Type {
   459  	return reflect.TypeOf((*map[string]*CaCertificate)(nil)).Elem()
   460  }
   461  
   462  func (o CaCertificateMapOutput) ToCaCertificateMapOutput() CaCertificateMapOutput {
   463  	return o
   464  }
   465  
   466  func (o CaCertificateMapOutput) ToCaCertificateMapOutputWithContext(ctx context.Context) CaCertificateMapOutput {
   467  	return o
   468  }
   469  
   470  func (o CaCertificateMapOutput) MapIndex(k pulumi.StringInput) CaCertificateOutput {
   471  	return pulumi.All(o, k).ApplyT(func(vs []interface{}) *CaCertificate {
   472  		return vs[0].(map[string]*CaCertificate)[vs[1].(string)]
   473  	}).(CaCertificateOutput)
   474  }
   475  
   476  func init() {
   477  	pulumi.RegisterInputType(reflect.TypeOf((*CaCertificateInput)(nil)).Elem(), &CaCertificate{})
   478  	pulumi.RegisterInputType(reflect.TypeOf((*CaCertificateArrayInput)(nil)).Elem(), CaCertificateArray{})
   479  	pulumi.RegisterInputType(reflect.TypeOf((*CaCertificateMapInput)(nil)).Elem(), CaCertificateMap{})
   480  	pulumi.RegisterOutputType(CaCertificateOutput{})
   481  	pulumi.RegisterOutputType(CaCertificateArrayOutput{})
   482  	pulumi.RegisterOutputType(CaCertificateMapOutput{})
   483  }