1. Packages
  2. Flexibleengine Provider
  3. API Docs
  4. WafDedicatedCertificate
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

flexibleengine.WafDedicatedCertificate

Explore with Pulumi AI

Manages a WAF dedicated certificate resource within FlexibleEngine.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as flexibleengine from "@pulumi/flexibleengine";

const certificate1 = new flexibleengine.WafDedicatedCertificate("certificate1", {
    certificate: `-----BEGIN CERTIFICATE-----
MIIFmQl5dh2QUAeo39TIKtadgAgh4zHx09kSgayS9Wph9LEqq7MA+2042L3J9aOa
DAYDVR0TAQH/BAIwADAdBgNVHQ4EFgQUR+SosWwALt6PkP0J9iOIxA6RW8gVsLwq
...
+HhDvD/VeOHytX3RAs2GeTOtxyAV5XpKY5r+PkyUqPJj04t3d0Fopi0gNtLpMF=
-----END CERTIFICATE-----

`,
    privateKey: `-----BEGIN PRIVATE KEY-----
MIIJwIgYDVQQKExtEaWdpdGFsIFNpZ25hdHVyZSBUcnVzdCBDby4xFzAVBgNVBAM
ATAwMC4GCCsGAQUFBwIBFiJodHRwOi8vY3BzLnJvb3QteDEubGV0c2VuY3J5cHQu
...
he8Y4IWS6wY7bCkjCWDcRQJMEhg76fsO3txE+FiYruq9RUWhiF1myv4Q6W+CyBFC
1qoJFlcDyqSMo5iHq3HLjs
-----END PRIVATE KEY-----

`,
});
Copy
import pulumi
import pulumi_flexibleengine as flexibleengine

certificate1 = flexibleengine.WafDedicatedCertificate("certificate1",
    certificate="""-----BEGIN CERTIFICATE-----
MIIFmQl5dh2QUAeo39TIKtadgAgh4zHx09kSgayS9Wph9LEqq7MA+2042L3J9aOa
DAYDVR0TAQH/BAIwADAdBgNVHQ4EFgQUR+SosWwALt6PkP0J9iOIxA6RW8gVsLwq
...
+HhDvD/VeOHytX3RAs2GeTOtxyAV5XpKY5r+PkyUqPJj04t3d0Fopi0gNtLpMF=
-----END CERTIFICATE-----

""",
    private_key="""-----BEGIN PRIVATE KEY-----
MIIJwIgYDVQQKExtEaWdpdGFsIFNpZ25hdHVyZSBUcnVzdCBDby4xFzAVBgNVBAM
ATAwMC4GCCsGAQUFBwIBFiJodHRwOi8vY3BzLnJvb3QteDEubGV0c2VuY3J5cHQu
...
he8Y4IWS6wY7bCkjCWDcRQJMEhg76fsO3txE+FiYruq9RUWhiF1myv4Q6W+CyBFC
1qoJFlcDyqSMo5iHq3HLjs
-----END PRIVATE KEY-----

""")
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := flexibleengine.NewWafDedicatedCertificate(ctx, "certificate1", &flexibleengine.WafDedicatedCertificateArgs{
			Certificate: pulumi.String(`-----BEGIN CERTIFICATE-----
MIIFmQl5dh2QUAeo39TIKtadgAgh4zHx09kSgayS9Wph9LEqq7MA+2042L3J9aOa
DAYDVR0TAQH/BAIwADAdBgNVHQ4EFgQUR+SosWwALt6PkP0J9iOIxA6RW8gVsLwq
...
+HhDvD/VeOHytX3RAs2GeTOtxyAV5XpKY5r+PkyUqPJj04t3d0Fopi0gNtLpMF=
-----END CERTIFICATE-----

`),
			PrivateKey: pulumi.String(`-----BEGIN PRIVATE KEY-----
MIIJwIgYDVQQKExtEaWdpdGFsIFNpZ25hdHVyZSBUcnVzdCBDby4xFzAVBgNVBAM
ATAwMC4GCCsGAQUFBwIBFiJodHRwOi8vY3BzLnJvb3QteDEubGV0c2VuY3J5cHQu
...
he8Y4IWS6wY7bCkjCWDcRQJMEhg76fsO3txE+FiYruq9RUWhiF1myv4Q6W+CyBFC
1qoJFlcDyqSMo5iHq3HLjs
-----END PRIVATE KEY-----

`),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Flexibleengine = Pulumi.Flexibleengine;

return await Deployment.RunAsync(() => 
{
    var certificate1 = new Flexibleengine.WafDedicatedCertificate("certificate1", new()
    {
        Certificate = @"-----BEGIN CERTIFICATE-----
MIIFmQl5dh2QUAeo39TIKtadgAgh4zHx09kSgayS9Wph9LEqq7MA+2042L3J9aOa
DAYDVR0TAQH/BAIwADAdBgNVHQ4EFgQUR+SosWwALt6PkP0J9iOIxA6RW8gVsLwq
...
+HhDvD/VeOHytX3RAs2GeTOtxyAV5XpKY5r+PkyUqPJj04t3d0Fopi0gNtLpMF=
-----END CERTIFICATE-----

",
        PrivateKey = @"-----BEGIN PRIVATE KEY-----
MIIJwIgYDVQQKExtEaWdpdGFsIFNpZ25hdHVyZSBUcnVzdCBDby4xFzAVBgNVBAM
ATAwMC4GCCsGAQUFBwIBFiJodHRwOi8vY3BzLnJvb3QteDEubGV0c2VuY3J5cHQu
...
he8Y4IWS6wY7bCkjCWDcRQJMEhg76fsO3txE+FiYruq9RUWhiF1myv4Q6W+CyBFC
1qoJFlcDyqSMo5iHq3HLjs
-----END PRIVATE KEY-----

",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.flexibleengine.WafDedicatedCertificate;
import com.pulumi.flexibleengine.WafDedicatedCertificateArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var certificate1 = new WafDedicatedCertificate("certificate1", WafDedicatedCertificateArgs.builder()
            .certificate("""
-----BEGIN CERTIFICATE-----
MIIFmQl5dh2QUAeo39TIKtadgAgh4zHx09kSgayS9Wph9LEqq7MA+2042L3J9aOa
DAYDVR0TAQH/BAIwADAdBgNVHQ4EFgQUR+SosWwALt6PkP0J9iOIxA6RW8gVsLwq
...
+HhDvD/VeOHytX3RAs2GeTOtxyAV5XpKY5r+PkyUqPJj04t3d0Fopi0gNtLpMF=
-----END CERTIFICATE-----

            """)
            .privateKey("""
-----BEGIN PRIVATE KEY-----
MIIJwIgYDVQQKExtEaWdpdGFsIFNpZ25hdHVyZSBUcnVzdCBDby4xFzAVBgNVBAM
ATAwMC4GCCsGAQUFBwIBFiJodHRwOi8vY3BzLnJvb3QteDEubGV0c2VuY3J5cHQu
...
he8Y4IWS6wY7bCkjCWDcRQJMEhg76fsO3txE+FiYruq9RUWhiF1myv4Q6W+CyBFC
1qoJFlcDyqSMo5iHq3HLjs
-----END PRIVATE KEY-----

            """)
            .build());

    }
}
Copy
resources:
  certificate1:
    type: flexibleengine:WafDedicatedCertificate
    properties:
      certificate: |+
        -----BEGIN CERTIFICATE-----
        MIIFmQl5dh2QUAeo39TIKtadgAgh4zHx09kSgayS9Wph9LEqq7MA+2042L3J9aOa
        DAYDVR0TAQH/BAIwADAdBgNVHQ4EFgQUR+SosWwALt6PkP0J9iOIxA6RW8gVsLwq
        ...
        +HhDvD/VeOHytX3RAs2GeTOtxyAV5XpKY5r+PkyUqPJj04t3d0Fopi0gNtLpMF=
        -----END CERTIFICATE-----        

      privateKey: |+
        -----BEGIN PRIVATE KEY-----
        MIIJwIgYDVQQKExtEaWdpdGFsIFNpZ25hdHVyZSBUcnVzdCBDby4xFzAVBgNVBAM
        ATAwMC4GCCsGAQUFBwIBFiJodHRwOi8vY3BzLnJvb3QteDEubGV0c2VuY3J5cHQu
        ...
        he8Y4IWS6wY7bCkjCWDcRQJMEhg76fsO3txE+FiYruq9RUWhiF1myv4Q6W+CyBFC
        1qoJFlcDyqSMo5iHq3HLjs
        -----END PRIVATE KEY-----        
Copy

Create WafDedicatedCertificate Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new WafDedicatedCertificate(name: string, args: WafDedicatedCertificateArgs, opts?: CustomResourceOptions);
@overload
def WafDedicatedCertificate(resource_name: str,
                            args: WafDedicatedCertificateArgs,
                            opts: Optional[ResourceOptions] = None)

@overload
def WafDedicatedCertificate(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            certificate: Optional[str] = None,
                            private_key: Optional[str] = None,
                            name: Optional[str] = None,
                            region: Optional[str] = None,
                            timeouts: Optional[WafDedicatedCertificateTimeoutsArgs] = None,
                            waf_dedicated_certificate_id: Optional[str] = None)
func NewWafDedicatedCertificate(ctx *Context, name string, args WafDedicatedCertificateArgs, opts ...ResourceOption) (*WafDedicatedCertificate, error)
public WafDedicatedCertificate(string name, WafDedicatedCertificateArgs args, CustomResourceOptions? opts = null)
public WafDedicatedCertificate(String name, WafDedicatedCertificateArgs args)
public WafDedicatedCertificate(String name, WafDedicatedCertificateArgs args, CustomResourceOptions options)
type: flexibleengine:WafDedicatedCertificate
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. WafDedicatedCertificateArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. WafDedicatedCertificateArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. WafDedicatedCertificateArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. WafDedicatedCertificateArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. WafDedicatedCertificateArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var wafDedicatedCertificateResource = new Flexibleengine.WafDedicatedCertificate("wafDedicatedCertificateResource", new()
{
    Certificate = "string",
    PrivateKey = "string",
    Name = "string",
    Region = "string",
    Timeouts = new Flexibleengine.Inputs.WafDedicatedCertificateTimeoutsArgs
    {
        Create = "string",
        Delete = "string",
    },
    WafDedicatedCertificateId = "string",
});
Copy
example, err := flexibleengine.NewWafDedicatedCertificate(ctx, "wafDedicatedCertificateResource", &flexibleengine.WafDedicatedCertificateArgs{
Certificate: pulumi.String("string"),
PrivateKey: pulumi.String("string"),
Name: pulumi.String("string"),
Region: pulumi.String("string"),
Timeouts: &.WafDedicatedCertificateTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
},
WafDedicatedCertificateId: pulumi.String("string"),
})
Copy
var wafDedicatedCertificateResource = new WafDedicatedCertificate("wafDedicatedCertificateResource", WafDedicatedCertificateArgs.builder()
    .certificate("string")
    .privateKey("string")
    .name("string")
    .region("string")
    .timeouts(WafDedicatedCertificateTimeoutsArgs.builder()
        .create("string")
        .delete("string")
        .build())
    .wafDedicatedCertificateId("string")
    .build());
Copy
waf_dedicated_certificate_resource = flexibleengine.WafDedicatedCertificate("wafDedicatedCertificateResource",
    certificate="string",
    private_key="string",
    name="string",
    region="string",
    timeouts={
        "create": "string",
        "delete": "string",
    },
    waf_dedicated_certificate_id="string")
Copy
const wafDedicatedCertificateResource = new flexibleengine.WafDedicatedCertificate("wafDedicatedCertificateResource", {
    certificate: "string",
    privateKey: "string",
    name: "string",
    region: "string",
    timeouts: {
        create: "string",
        "delete": "string",
    },
    wafDedicatedCertificateId: "string",
});
Copy
type: flexibleengine:WafDedicatedCertificate
properties:
    certificate: string
    name: string
    privateKey: string
    region: string
    timeouts:
        create: string
        delete: string
    wafDedicatedCertificateId: string
Copy

WafDedicatedCertificate Resource Properties

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

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The WafDedicatedCertificate resource accepts the following input properties:

Certificate This property is required. string
Specifies the certificate content. Changing this creates a new certificate.
PrivateKey This property is required. string
Specifies the private key. Changing this creates a new certificate.
Name string
Specifies the certificate name. The maximum length is 256 characters. Only digits, letters, underscores(_), and hyphens(-) are allowed.
Region string
The region in which to create the WAF certificate resource. If omitted, the provider-level region will be used. Changing this setting will push a new certificate.
Timeouts WafDedicatedCertificateTimeouts
WafDedicatedCertificateId string
The certificate ID in UUID format.
Certificate This property is required. string
Specifies the certificate content. Changing this creates a new certificate.
PrivateKey This property is required. string
Specifies the private key. Changing this creates a new certificate.
Name string
Specifies the certificate name. The maximum length is 256 characters. Only digits, letters, underscores(_), and hyphens(-) are allowed.
Region string
The region in which to create the WAF certificate resource. If omitted, the provider-level region will be used. Changing this setting will push a new certificate.
Timeouts WafDedicatedCertificateTimeoutsArgs
WafDedicatedCertificateId string
The certificate ID in UUID format.
certificate This property is required. String
Specifies the certificate content. Changing this creates a new certificate.
privateKey This property is required. String
Specifies the private key. Changing this creates a new certificate.
name String
Specifies the certificate name. The maximum length is 256 characters. Only digits, letters, underscores(_), and hyphens(-) are allowed.
region String
The region in which to create the WAF certificate resource. If omitted, the provider-level region will be used. Changing this setting will push a new certificate.
timeouts WafDedicatedCertificateTimeouts
wafDedicatedCertificateId String
The certificate ID in UUID format.
certificate This property is required. string
Specifies the certificate content. Changing this creates a new certificate.
privateKey This property is required. string
Specifies the private key. Changing this creates a new certificate.
name string
Specifies the certificate name. The maximum length is 256 characters. Only digits, letters, underscores(_), and hyphens(-) are allowed.
region string
The region in which to create the WAF certificate resource. If omitted, the provider-level region will be used. Changing this setting will push a new certificate.
timeouts WafDedicatedCertificateTimeouts
wafDedicatedCertificateId string
The certificate ID in UUID format.
certificate This property is required. str
Specifies the certificate content. Changing this creates a new certificate.
private_key This property is required. str
Specifies the private key. Changing this creates a new certificate.
name str
Specifies the certificate name. The maximum length is 256 characters. Only digits, letters, underscores(_), and hyphens(-) are allowed.
region str
The region in which to create the WAF certificate resource. If omitted, the provider-level region will be used. Changing this setting will push a new certificate.
timeouts WafDedicatedCertificateTimeoutsArgs
waf_dedicated_certificate_id str
The certificate ID in UUID format.
certificate This property is required. String
Specifies the certificate content. Changing this creates a new certificate.
privateKey This property is required. String
Specifies the private key. Changing this creates a new certificate.
name String
Specifies the certificate name. The maximum length is 256 characters. Only digits, letters, underscores(_), and hyphens(-) are allowed.
region String
The region in which to create the WAF certificate resource. If omitted, the provider-level region will be used. Changing this setting will push a new certificate.
timeouts Property Map
wafDedicatedCertificateId String
The certificate ID in UUID format.

Outputs

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

Expiration string
Indicates the time when the certificate expires.
Id string
The provider-assigned unique ID for this managed resource.
Expiration string
Indicates the time when the certificate expires.
Id string
The provider-assigned unique ID for this managed resource.
expiration String
Indicates the time when the certificate expires.
id String
The provider-assigned unique ID for this managed resource.
expiration string
Indicates the time when the certificate expires.
id string
The provider-assigned unique ID for this managed resource.
expiration str
Indicates the time when the certificate expires.
id str
The provider-assigned unique ID for this managed resource.
expiration String
Indicates the time when the certificate expires.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing WafDedicatedCertificate Resource

Get an existing WafDedicatedCertificate 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?: WafDedicatedCertificateState, opts?: CustomResourceOptions): WafDedicatedCertificate
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        certificate: Optional[str] = None,
        expiration: Optional[str] = None,
        name: Optional[str] = None,
        private_key: Optional[str] = None,
        region: Optional[str] = None,
        timeouts: Optional[WafDedicatedCertificateTimeoutsArgs] = None,
        waf_dedicated_certificate_id: Optional[str] = None) -> WafDedicatedCertificate
func GetWafDedicatedCertificate(ctx *Context, name string, id IDInput, state *WafDedicatedCertificateState, opts ...ResourceOption) (*WafDedicatedCertificate, error)
public static WafDedicatedCertificate Get(string name, Input<string> id, WafDedicatedCertificateState? state, CustomResourceOptions? opts = null)
public static WafDedicatedCertificate get(String name, Output<String> id, WafDedicatedCertificateState state, CustomResourceOptions options)
resources:  _:    type: flexibleengine:WafDedicatedCertificate    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
Certificate string
Specifies the certificate content. Changing this creates a new certificate.
Expiration string
Indicates the time when the certificate expires.
Name string
Specifies the certificate name. The maximum length is 256 characters. Only digits, letters, underscores(_), and hyphens(-) are allowed.
PrivateKey string
Specifies the private key. Changing this creates a new certificate.
Region string
The region in which to create the WAF certificate resource. If omitted, the provider-level region will be used. Changing this setting will push a new certificate.
Timeouts WafDedicatedCertificateTimeouts
WafDedicatedCertificateId string
The certificate ID in UUID format.
Certificate string
Specifies the certificate content. Changing this creates a new certificate.
Expiration string
Indicates the time when the certificate expires.
Name string
Specifies the certificate name. The maximum length is 256 characters. Only digits, letters, underscores(_), and hyphens(-) are allowed.
PrivateKey string
Specifies the private key. Changing this creates a new certificate.
Region string
The region in which to create the WAF certificate resource. If omitted, the provider-level region will be used. Changing this setting will push a new certificate.
Timeouts WafDedicatedCertificateTimeoutsArgs
WafDedicatedCertificateId string
The certificate ID in UUID format.
certificate String
Specifies the certificate content. Changing this creates a new certificate.
expiration String
Indicates the time when the certificate expires.
name String
Specifies the certificate name. The maximum length is 256 characters. Only digits, letters, underscores(_), and hyphens(-) are allowed.
privateKey String
Specifies the private key. Changing this creates a new certificate.
region String
The region in which to create the WAF certificate resource. If omitted, the provider-level region will be used. Changing this setting will push a new certificate.
timeouts WafDedicatedCertificateTimeouts
wafDedicatedCertificateId String
The certificate ID in UUID format.
certificate string
Specifies the certificate content. Changing this creates a new certificate.
expiration string
Indicates the time when the certificate expires.
name string
Specifies the certificate name. The maximum length is 256 characters. Only digits, letters, underscores(_), and hyphens(-) are allowed.
privateKey string
Specifies the private key. Changing this creates a new certificate.
region string
The region in which to create the WAF certificate resource. If omitted, the provider-level region will be used. Changing this setting will push a new certificate.
timeouts WafDedicatedCertificateTimeouts
wafDedicatedCertificateId string
The certificate ID in UUID format.
certificate str
Specifies the certificate content. Changing this creates a new certificate.
expiration str
Indicates the time when the certificate expires.
name str
Specifies the certificate name. The maximum length is 256 characters. Only digits, letters, underscores(_), and hyphens(-) are allowed.
private_key str
Specifies the private key. Changing this creates a new certificate.
region str
The region in which to create the WAF certificate resource. If omitted, the provider-level region will be used. Changing this setting will push a new certificate.
timeouts WafDedicatedCertificateTimeoutsArgs
waf_dedicated_certificate_id str
The certificate ID in UUID format.
certificate String
Specifies the certificate content. Changing this creates a new certificate.
expiration String
Indicates the time when the certificate expires.
name String
Specifies the certificate name. The maximum length is 256 characters. Only digits, letters, underscores(_), and hyphens(-) are allowed.
privateKey String
Specifies the private key. Changing this creates a new certificate.
region String
The region in which to create the WAF certificate resource. If omitted, the provider-level region will be used. Changing this setting will push a new certificate.
timeouts Property Map
wafDedicatedCertificateId String
The certificate ID in UUID format.

Supporting Types

WafDedicatedCertificateTimeouts
, WafDedicatedCertificateTimeoutsArgs

Create string
Delete string
Create string
Delete string
create String
delete String
create string
delete string
create str
delete str
create String
delete String

Import

Certificates can be imported using the id, e.g.

$ pulumi import flexibleengine:index/wafDedicatedCertificate:WafDedicatedCertificate certificate_2 3ebd3201238d41f9bfc3623b61435954
Copy

Note that the imported state is not identical to your resource definition, due to security reason. The missing

attributes include certificate, and private_key. You can ignore changes as below.

hcl

resource “flexibleengine_waf_dedicated_certificate” “certificate_2” {

...

lifecycle {

ignore_changes = [

  certificate, private_key

]

}

}

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
License
Notes
This Pulumi package is based on the flexibleengine Terraform Provider.