cas

package
v2.35.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 16, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Certificate

type Certificate struct {
	pulumi.CustomResourceState

	// Cert of the Certificate in which the Certificate will add.
	Cert pulumi.StringOutput `pulumi:"cert"`
	// Key of the Certificate in which the Certificate will add.
	Key pulumi.StringOutput `pulumi:"key"`
	// Name of the Certificate. This name without suffix can have a string of 1 to 63 characters, must contain only alphanumeric characters or "-", and must not begin or end with "-", and "-" must not in the 3th and 4th character positions at the same time. Suffix `.sh` and `.tel` are not supported.
	Name pulumi.StringOutput `pulumi:"name"`
}

Provides a CAS Certificate resource.

> **NOTE:** The Certificate name which you want to add must be already registered and had not added by another account. Every Certificate name can only exist in a unique group.

> **NOTE:** The Cas Certificate region only support cn-hangzhou, ap-south-1, me-east-1, eu-central-1, ap-northeast-1, ap-southeast-2.

> **NOTE:** Available in 1.35.0+ .

func GetCertificate

func GetCertificate(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *CertificateState, opts ...pulumi.ResourceOption) (*Certificate, error)

GetCertificate gets an existing Certificate resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewCertificate

func NewCertificate(ctx *pulumi.Context,
	name string, args *CertificateArgs, opts ...pulumi.ResourceOption) (*Certificate, error)

NewCertificate registers a new resource with the given unique name, arguments, and options.

func (*Certificate) ElementType added in v2.25.1

func (*Certificate) ElementType() reflect.Type

func (*Certificate) ToCertificateOutput added in v2.25.1

func (i *Certificate) ToCertificateOutput() CertificateOutput

func (*Certificate) ToCertificateOutputWithContext added in v2.25.1

func (i *Certificate) ToCertificateOutputWithContext(ctx context.Context) CertificateOutput

func (*Certificate) ToCertificatePtrOutput added in v2.35.1

func (i *Certificate) ToCertificatePtrOutput() CertificatePtrOutput

func (*Certificate) ToCertificatePtrOutputWithContext added in v2.35.1

func (i *Certificate) ToCertificatePtrOutputWithContext(ctx context.Context) CertificatePtrOutput

type CertificateArgs

type CertificateArgs struct {
	// Cert of the Certificate in which the Certificate will add.
	Cert pulumi.StringInput
	// Key of the Certificate in which the Certificate will add.
	Key pulumi.StringInput
	// Name of the Certificate. This name without suffix can have a string of 1 to 63 characters, must contain only alphanumeric characters or "-", and must not begin or end with "-", and "-" must not in the 3th and 4th character positions at the same time. Suffix `.sh` and `.tel` are not supported.
	Name pulumi.StringPtrInput
}

The set of arguments for constructing a Certificate resource.

func (CertificateArgs) ElementType

func (CertificateArgs) ElementType() reflect.Type

type CertificateArray added in v2.35.1

type CertificateArray []CertificateInput

func (CertificateArray) ElementType added in v2.35.1

func (CertificateArray) ElementType() reflect.Type

func (CertificateArray) ToCertificateArrayOutput added in v2.35.1

func (i CertificateArray) ToCertificateArrayOutput() CertificateArrayOutput

func (CertificateArray) ToCertificateArrayOutputWithContext added in v2.35.1

func (i CertificateArray) ToCertificateArrayOutputWithContext(ctx context.Context) CertificateArrayOutput

type CertificateArrayInput added in v2.35.1

type CertificateArrayInput interface {
	pulumi.Input

	ToCertificateArrayOutput() CertificateArrayOutput
	ToCertificateArrayOutputWithContext(context.Context) CertificateArrayOutput
}

CertificateArrayInput is an input type that accepts CertificateArray and CertificateArrayOutput values. You can construct a concrete instance of `CertificateArrayInput` via:

CertificateArray{ CertificateArgs{...} }

type CertificateArrayOutput added in v2.35.1

type CertificateArrayOutput struct{ *pulumi.OutputState }

func (CertificateArrayOutput) ElementType added in v2.35.1

func (CertificateArrayOutput) ElementType() reflect.Type

func (CertificateArrayOutput) Index added in v2.35.1

func (CertificateArrayOutput) ToCertificateArrayOutput added in v2.35.1

func (o CertificateArrayOutput) ToCertificateArrayOutput() CertificateArrayOutput

func (CertificateArrayOutput) ToCertificateArrayOutputWithContext added in v2.35.1

func (o CertificateArrayOutput) ToCertificateArrayOutputWithContext(ctx context.Context) CertificateArrayOutput

type CertificateInput added in v2.25.1

type CertificateInput interface {
	pulumi.Input

	ToCertificateOutput() CertificateOutput
	ToCertificateOutputWithContext(ctx context.Context) CertificateOutput
}

type CertificateMap added in v2.35.1

type CertificateMap map[string]CertificateInput

func (CertificateMap) ElementType added in v2.35.1

func (CertificateMap) ElementType() reflect.Type

func (CertificateMap) ToCertificateMapOutput added in v2.35.1

func (i CertificateMap) ToCertificateMapOutput() CertificateMapOutput

func (CertificateMap) ToCertificateMapOutputWithContext added in v2.35.1

func (i CertificateMap) ToCertificateMapOutputWithContext(ctx context.Context) CertificateMapOutput

type CertificateMapInput added in v2.35.1

type CertificateMapInput interface {
	pulumi.Input

	ToCertificateMapOutput() CertificateMapOutput
	ToCertificateMapOutputWithContext(context.Context) CertificateMapOutput
}

CertificateMapInput is an input type that accepts CertificateMap and CertificateMapOutput values. You can construct a concrete instance of `CertificateMapInput` via:

CertificateMap{ "key": CertificateArgs{...} }

type CertificateMapOutput added in v2.35.1

type CertificateMapOutput struct{ *pulumi.OutputState }

func (CertificateMapOutput) ElementType added in v2.35.1

func (CertificateMapOutput) ElementType() reflect.Type

func (CertificateMapOutput) MapIndex added in v2.35.1

func (CertificateMapOutput) ToCertificateMapOutput added in v2.35.1

func (o CertificateMapOutput) ToCertificateMapOutput() CertificateMapOutput

func (CertificateMapOutput) ToCertificateMapOutputWithContext added in v2.35.1

func (o CertificateMapOutput) ToCertificateMapOutputWithContext(ctx context.Context) CertificateMapOutput

type CertificateOutput added in v2.25.1

type CertificateOutput struct {
	*pulumi.OutputState
}

func (CertificateOutput) ElementType added in v2.25.1

func (CertificateOutput) ElementType() reflect.Type

func (CertificateOutput) ToCertificateOutput added in v2.25.1

func (o CertificateOutput) ToCertificateOutput() CertificateOutput

func (CertificateOutput) ToCertificateOutputWithContext added in v2.25.1

func (o CertificateOutput) ToCertificateOutputWithContext(ctx context.Context) CertificateOutput

func (CertificateOutput) ToCertificatePtrOutput added in v2.35.1

func (o CertificateOutput) ToCertificatePtrOutput() CertificatePtrOutput

func (CertificateOutput) ToCertificatePtrOutputWithContext added in v2.35.1

func (o CertificateOutput) ToCertificatePtrOutputWithContext(ctx context.Context) CertificatePtrOutput

type CertificatePtrInput added in v2.35.1

type CertificatePtrInput interface {
	pulumi.Input

	ToCertificatePtrOutput() CertificatePtrOutput
	ToCertificatePtrOutputWithContext(ctx context.Context) CertificatePtrOutput
}

type CertificatePtrOutput added in v2.35.1

type CertificatePtrOutput struct {
	*pulumi.OutputState
}

func (CertificatePtrOutput) ElementType added in v2.35.1

func (CertificatePtrOutput) ElementType() reflect.Type

func (CertificatePtrOutput) ToCertificatePtrOutput added in v2.35.1

func (o CertificatePtrOutput) ToCertificatePtrOutput() CertificatePtrOutput

func (CertificatePtrOutput) ToCertificatePtrOutputWithContext added in v2.35.1

func (o CertificatePtrOutput) ToCertificatePtrOutputWithContext(ctx context.Context) CertificatePtrOutput

type CertificateState

type CertificateState struct {
	// Cert of the Certificate in which the Certificate will add.
	Cert pulumi.StringPtrInput
	// Key of the Certificate in which the Certificate will add.
	Key pulumi.StringPtrInput
	// Name of the Certificate. This name without suffix can have a string of 1 to 63 characters, must contain only alphanumeric characters or "-", and must not begin or end with "-", and "-" must not in the 3th and 4th character positions at the same time. Suffix `.sh` and `.tel` are not supported.
	Name pulumi.StringPtrInput
}

func (CertificateState) ElementType

func (CertificateState) ElementType() reflect.Type

type GetCertificatesArgs

type GetCertificatesArgs struct {
	// A list of cert IDs.
	Ids []string `pulumi:"ids"`
	// A regex string to filter results by the certificate name.
	NameRegex  *string `pulumi:"nameRegex"`
	OutputFile *string `pulumi:"outputFile"`
}

A collection of arguments for invoking getCertificates.

type GetCertificatesCertificate

type GetCertificatesCertificate struct {
	// The cert is buy from aliyun or not.
	BuyInAliyun bool `pulumi:"buyInAliyun"`
	// The cert's city.
	City string `pulumi:"city"`
	// The cert's common name.
	Common string `pulumi:"common"`
	// The cert's country.
	Country string `pulumi:"country"`
	// The cert's not valid after time.
	EndDate string `pulumi:"endDate"`
	// The cert is expired or not.
	Expired bool `pulumi:"expired"`
	// The cert's finger.
	FingerPrint string `pulumi:"fingerPrint"`
	// The cert's id.
	Id int `pulumi:"id"`
	// The cert's .
	Issuer string `pulumi:"issuer"`
	// The cert's name.
	Name string `pulumi:"name"`
	// The cert's organization.
	OrgName string `pulumi:"orgName"`
	// The cert's province.
	Province string `pulumi:"province"`
	// The cert's subject alternative name.
	Sans string `pulumi:"sans"`
	// The cert's not valid before time.
	StartDate string `pulumi:"startDate"`
}

type GetCertificatesCertificateArgs

type GetCertificatesCertificateArgs struct {
	// The cert is buy from aliyun or not.
	BuyInAliyun pulumi.BoolInput `pulumi:"buyInAliyun"`
	// The cert's city.
	City pulumi.StringInput `pulumi:"city"`
	// The cert's common name.
	Common pulumi.StringInput `pulumi:"common"`
	// The cert's country.
	Country pulumi.StringInput `pulumi:"country"`
	// The cert's not valid after time.
	EndDate pulumi.StringInput `pulumi:"endDate"`
	// The cert is expired or not.
	Expired pulumi.BoolInput `pulumi:"expired"`
	// The cert's finger.
	FingerPrint pulumi.StringInput `pulumi:"fingerPrint"`
	// The cert's id.
	Id pulumi.IntInput `pulumi:"id"`
	// The cert's .
	Issuer pulumi.StringInput `pulumi:"issuer"`
	// The cert's name.
	Name pulumi.StringInput `pulumi:"name"`
	// The cert's organization.
	OrgName pulumi.StringInput `pulumi:"orgName"`
	// The cert's province.
	Province pulumi.StringInput `pulumi:"province"`
	// The cert's subject alternative name.
	Sans pulumi.StringInput `pulumi:"sans"`
	// The cert's not valid before time.
	StartDate pulumi.StringInput `pulumi:"startDate"`
}

func (GetCertificatesCertificateArgs) ElementType

func (GetCertificatesCertificateArgs) ToGetCertificatesCertificateOutput

func (i GetCertificatesCertificateArgs) ToGetCertificatesCertificateOutput() GetCertificatesCertificateOutput

func (GetCertificatesCertificateArgs) ToGetCertificatesCertificateOutputWithContext

func (i GetCertificatesCertificateArgs) ToGetCertificatesCertificateOutputWithContext(ctx context.Context) GetCertificatesCertificateOutput

type GetCertificatesCertificateArray

type GetCertificatesCertificateArray []GetCertificatesCertificateInput

func (GetCertificatesCertificateArray) ElementType

func (GetCertificatesCertificateArray) ToGetCertificatesCertificateArrayOutput

func (i GetCertificatesCertificateArray) ToGetCertificatesCertificateArrayOutput() GetCertificatesCertificateArrayOutput

func (GetCertificatesCertificateArray) ToGetCertificatesCertificateArrayOutputWithContext

func (i GetCertificatesCertificateArray) ToGetCertificatesCertificateArrayOutputWithContext(ctx context.Context) GetCertificatesCertificateArrayOutput

type GetCertificatesCertificateArrayInput

type GetCertificatesCertificateArrayInput interface {
	pulumi.Input

	ToGetCertificatesCertificateArrayOutput() GetCertificatesCertificateArrayOutput
	ToGetCertificatesCertificateArrayOutputWithContext(context.Context) GetCertificatesCertificateArrayOutput
}

GetCertificatesCertificateArrayInput is an input type that accepts GetCertificatesCertificateArray and GetCertificatesCertificateArrayOutput values. You can construct a concrete instance of `GetCertificatesCertificateArrayInput` via:

GetCertificatesCertificateArray{ GetCertificatesCertificateArgs{...} }

type GetCertificatesCertificateArrayOutput

type GetCertificatesCertificateArrayOutput struct{ *pulumi.OutputState }

func (GetCertificatesCertificateArrayOutput) ElementType

func (GetCertificatesCertificateArrayOutput) Index

func (GetCertificatesCertificateArrayOutput) ToGetCertificatesCertificateArrayOutput

func (o GetCertificatesCertificateArrayOutput) ToGetCertificatesCertificateArrayOutput() GetCertificatesCertificateArrayOutput

func (GetCertificatesCertificateArrayOutput) ToGetCertificatesCertificateArrayOutputWithContext

func (o GetCertificatesCertificateArrayOutput) ToGetCertificatesCertificateArrayOutputWithContext(ctx context.Context) GetCertificatesCertificateArrayOutput

type GetCertificatesCertificateInput

type GetCertificatesCertificateInput interface {
	pulumi.Input

	ToGetCertificatesCertificateOutput() GetCertificatesCertificateOutput
	ToGetCertificatesCertificateOutputWithContext(context.Context) GetCertificatesCertificateOutput
}

GetCertificatesCertificateInput is an input type that accepts GetCertificatesCertificateArgs and GetCertificatesCertificateOutput values. You can construct a concrete instance of `GetCertificatesCertificateInput` via:

GetCertificatesCertificateArgs{...}

type GetCertificatesCertificateOutput

type GetCertificatesCertificateOutput struct{ *pulumi.OutputState }

func (GetCertificatesCertificateOutput) BuyInAliyun

The cert is buy from aliyun or not.

func (GetCertificatesCertificateOutput) City

The cert's city.

func (GetCertificatesCertificateOutput) Common

The cert's common name.

func (GetCertificatesCertificateOutput) Country

The cert's country.

func (GetCertificatesCertificateOutput) ElementType

func (GetCertificatesCertificateOutput) EndDate

The cert's not valid after time.

func (GetCertificatesCertificateOutput) Expired

The cert is expired or not.

func (GetCertificatesCertificateOutput) FingerPrint

The cert's finger.

func (GetCertificatesCertificateOutput) Id

The cert's id.

func (GetCertificatesCertificateOutput) Issuer

The cert's .

func (GetCertificatesCertificateOutput) Name

The cert's name.

func (GetCertificatesCertificateOutput) OrgName

The cert's organization.

func (GetCertificatesCertificateOutput) Province

The cert's province.

func (GetCertificatesCertificateOutput) Sans

The cert's subject alternative name.

func (GetCertificatesCertificateOutput) StartDate

The cert's not valid before time.

func (GetCertificatesCertificateOutput) ToGetCertificatesCertificateOutput

func (o GetCertificatesCertificateOutput) ToGetCertificatesCertificateOutput() GetCertificatesCertificateOutput

func (GetCertificatesCertificateOutput) ToGetCertificatesCertificateOutputWithContext

func (o GetCertificatesCertificateOutput) ToGetCertificatesCertificateOutputWithContext(ctx context.Context) GetCertificatesCertificateOutput

type GetCertificatesResult

type GetCertificatesResult struct {
	// A list of apis. Each element contains the following attributes:
	Certificates []GetCertificatesCertificate `pulumi:"certificates"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// A list of cert IDs.
	Ids       []string `pulumi:"ids"`
	NameRegex *string  `pulumi:"nameRegex"`
	// A list of cert names.
	Names      []string `pulumi:"names"`
	OutputFile *string  `pulumi:"outputFile"`
}

A collection of values returned by getCertificates.

func GetCertificates

func GetCertificates(ctx *pulumi.Context, args *GetCertificatesArgs, opts ...pulumi.InvokeOption) (*GetCertificatesResult, error)

This data source provides a list of CAS Certificates in an Alibaba Cloud account according to the specified filters.

## Example Usage

```go package main

import (

"fmt"

"github.com/pulumi/pulumi-alicloud/sdk/v2/go/alicloud/cas"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		opt0 := "^cas"
		opt1 := fmt.Sprintf("%v%v", path.Module, "/cas_certificates.json")
		certs, err := cas.GetCertificates(ctx, &cas.GetCertificatesArgs{
			NameRegex:  &opt0,
			OutputFile: &opt1,
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("cert", certs.Certificates[0].Id)
		return nil
	})
}

```

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL