CpsDvValidation

Once you complete the Let’s Encrypt challenges, optionally use the akamai.CpsDvValidation resource to send the acknowledgement to CPS and inform it that tokens are ready for validation. You can also wait for CPS to check for the tokens, which it does on a regular schedule. Next, CPS automatically deploys the certificate on Staging, and eventually on the Production network.

Argument reference

The following arguments are supported:

  • enrollment_id (Required) - Unique identifier for the DV certificate enrollment.
  • sans - (Optional) The Subject Alternative Names (SAN) list for tracking changes on related enrollments. Whenever any SAN changes, the Akamai provider recreates this resource and sends another acknowledgement request to CPS.

Attributes reference

  • status - The status of certificate validation.

Example Usage

using Pulumi;
using Akamai = Pulumi.Akamai;

class MyStack : Stack
{
    public MyStack()
    {
        var example = new Akamai.CpsDvValidation("example", new Akamai.CpsDvValidationArgs
        {
            EnrollmentId = akamai_cps_dv_enrollment.Example.Id,
            Sans = akamai_cps_dv_enrollment.Example.Sans,
        });
    }

}
package main

import (
	"github.com/pulumi/pulumi-akamai/sdk/v2/go/akamai"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := akamai.NewCpsDvValidation(ctx, "example", &akamai.CpsDvValidationArgs{
			EnrollmentId: pulumi.Any(akamai_cps_dv_enrollment.Example.Id),
			Sans:         pulumi.Any(akamai_cps_dv_enrollment.Example.Sans),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
import pulumi
import pulumi_akamai as akamai

example = akamai.CpsDvValidation("example",
    enrollment_id=akamai_cps_dv_enrollment["example"]["id"],
    sans=akamai_cps_dv_enrollment["example"]["sans"])
import * as pulumi from "@pulumi/pulumi";
import * as akamai from "@pulumi/akamai";

const example = new akamai.CpsDvValidation("example", {
    enrollmentId: akamai_cps_dv_enrollment.example.id,
    sans: akamai_cps_dv_enrollment.example.sans,
});

Create a CpsDvValidation Resource

new CpsDvValidation(name: string, args: CpsDvValidationArgs, opts?: CustomResourceOptions);
@overload
def CpsDvValidation(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    enrollment_id: Optional[int] = None,
                    sans: Optional[Sequence[str]] = None)
@overload
def CpsDvValidation(resource_name: str,
                    args: CpsDvValidationArgs,
                    opts: Optional[ResourceOptions] = None)
func NewCpsDvValidation(ctx *Context, name string, args CpsDvValidationArgs, opts ...ResourceOption) (*CpsDvValidation, error)
public CpsDvValidation(string name, CpsDvValidationArgs args, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args CpsDvValidationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args CpsDvValidationArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args CpsDvValidationArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args CpsDvValidationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

CpsDvValidation Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The CpsDvValidation resource accepts the following input properties:

EnrollmentId int
Sans List<string>
EnrollmentId int
Sans []string
enrollmentId number
sans string[]
enrollment_id int
sans Sequence[str]

Outputs

All input properties are implicitly available as output properties. Additionally, the CpsDvValidation resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Status string
Id string
The provider-assigned unique ID for this managed resource.
Status string
id string
The provider-assigned unique ID for this managed resource.
status string
id str
The provider-assigned unique ID for this managed resource.
status str

Look up an Existing CpsDvValidation Resource

Get an existing CpsDvValidation resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: CpsDvValidationState, opts?: CustomResourceOptions): CpsDvValidation
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        enrollment_id: Optional[int] = None,
        sans: Optional[Sequence[str]] = None,
        status: Optional[str] = None) -> CpsDvValidation
func GetCpsDvValidation(ctx *Context, name string, id IDInput, state *CpsDvValidationState, opts ...ResourceOption) (*CpsDvValidation, error)
public static CpsDvValidation Get(string name, Input<string> id, CpsDvValidationState? state, CustomResourceOptions? opts = null)
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.

The following state arguments are supported:

EnrollmentId int
Sans List<string>
Status string
EnrollmentId int
Sans []string
Status string
enrollmentId number
sans string[]
status string
enrollment_id int
sans Sequence[str]
status str

Package Details

Repository
https://github.com/pulumi/pulumi-akamai
License
Apache-2.0
Notes
This Pulumi package is based on the akamai Terraform Provider.