opentelekomcloud.WafDedicatedCertificateV1
Explore with Pulumi AI
Up-to-date reference of API arguments for WAF dedicated certificate you can get at documentation portal.
Manages a WAF dedicated certificate resource within OpenTelekomCloud.
Note: For this resource region must be set in environment variable
OS_REGION_NAME
or inclouds.yaml
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const certificate1 = new opentelekomcloud.WafDedicatedCertificateV1("certificate1", {
content: `-----BEGIN CERTIFICATE-----
MIIFazCCA1OgAwIBAgIUN3w1KX8/T/HWVxZIOdHXPhUOnsAwDQYJKoZIhvcNAQEL
BQAwRTELMAkGA1UEBhMCQVUxEzARBgNVBAgMClNvbWUtU3RhdGUxITAfBgNVBAoM
...
dKvZbPEsygYRIjwyhHHUh/YXH8KDI/uu6u6AxDckQ3rP1BkkKXr5NPBGjVgM3ZI=
-----END CERTIFICATE-----
`,
key: `-----BEGIN PRIVATE KEY-----
MIIJQQIBADANBgkqhkiG9w0BAQEFAASCCSswggknAgEAAoICAQC+9uwFVenCdPD9
5LWSWMuy4riZW718wxBpYV5Y9N8nM7N0qZLLdpImZrzBbaBldTI+AZGI3Nupuurw
...
s9urs/Kk/tbQhsEvu0X8FyGwo0zH6rG8apTFTlac+v4mJ4vlpxSvT5+FW2lgLISE
+4sM7kp0qO3/p+45HykwBY5iHq3H
-----END PRIVATE KEY-----
`,
});
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud
certificate1 = opentelekomcloud.WafDedicatedCertificateV1("certificate1",
content="""-----BEGIN CERTIFICATE-----
MIIFazCCA1OgAwIBAgIUN3w1KX8/T/HWVxZIOdHXPhUOnsAwDQYJKoZIhvcNAQEL
BQAwRTELMAkGA1UEBhMCQVUxEzARBgNVBAgMClNvbWUtU3RhdGUxITAfBgNVBAoM
...
dKvZbPEsygYRIjwyhHHUh/YXH8KDI/uu6u6AxDckQ3rP1BkkKXr5NPBGjVgM3ZI=
-----END CERTIFICATE-----
""",
key="""-----BEGIN PRIVATE KEY-----
MIIJQQIBADANBgkqhkiG9w0BAQEFAASCCSswggknAgEAAoICAQC+9uwFVenCdPD9
5LWSWMuy4riZW718wxBpYV5Y9N8nM7N0qZLLdpImZrzBbaBldTI+AZGI3Nupuurw
...
s9urs/Kk/tbQhsEvu0X8FyGwo0zH6rG8apTFTlac+v4mJ4vlpxSvT5+FW2lgLISE
+4sM7kp0qO3/p+45HykwBY5iHq3H
-----END PRIVATE KEY-----
""")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := opentelekomcloud.NewWafDedicatedCertificateV1(ctx, "certificate1", &opentelekomcloud.WafDedicatedCertificateV1Args{
Content: pulumi.String(`-----BEGIN CERTIFICATE-----
MIIFazCCA1OgAwIBAgIUN3w1KX8/T/HWVxZIOdHXPhUOnsAwDQYJKoZIhvcNAQEL
BQAwRTELMAkGA1UEBhMCQVUxEzARBgNVBAgMClNvbWUtU3RhdGUxITAfBgNVBAoM
...
dKvZbPEsygYRIjwyhHHUh/YXH8KDI/uu6u6AxDckQ3rP1BkkKXr5NPBGjVgM3ZI=
-----END CERTIFICATE-----
`),
Key: pulumi.String(`-----BEGIN PRIVATE KEY-----
MIIJQQIBADANBgkqhkiG9w0BAQEFAASCCSswggknAgEAAoICAQC+9uwFVenCdPD9
5LWSWMuy4riZW718wxBpYV5Y9N8nM7N0qZLLdpImZrzBbaBldTI+AZGI3Nupuurw
...
s9urs/Kk/tbQhsEvu0X8FyGwo0zH6rG8apTFTlac+v4mJ4vlpxSvT5+FW2lgLISE
+4sM7kp0qO3/p+45HykwBY5iHq3H
-----END PRIVATE KEY-----
`),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Opentelekomcloud = Pulumi.Opentelekomcloud;
return await Deployment.RunAsync(() =>
{
var certificate1 = new Opentelekomcloud.WafDedicatedCertificateV1("certificate1", new()
{
Content = @"-----BEGIN CERTIFICATE-----
MIIFazCCA1OgAwIBAgIUN3w1KX8/T/HWVxZIOdHXPhUOnsAwDQYJKoZIhvcNAQEL
BQAwRTELMAkGA1UEBhMCQVUxEzARBgNVBAgMClNvbWUtU3RhdGUxITAfBgNVBAoM
...
dKvZbPEsygYRIjwyhHHUh/YXH8KDI/uu6u6AxDckQ3rP1BkkKXr5NPBGjVgM3ZI=
-----END CERTIFICATE-----
",
Key = @"-----BEGIN PRIVATE KEY-----
MIIJQQIBADANBgkqhkiG9w0BAQEFAASCCSswggknAgEAAoICAQC+9uwFVenCdPD9
5LWSWMuy4riZW718wxBpYV5Y9N8nM7N0qZLLdpImZrzBbaBldTI+AZGI3Nupuurw
...
s9urs/Kk/tbQhsEvu0X8FyGwo0zH6rG8apTFTlac+v4mJ4vlpxSvT5+FW2lgLISE
+4sM7kp0qO3/p+45HykwBY5iHq3H
-----END PRIVATE KEY-----
",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.WafDedicatedCertificateV1;
import com.pulumi.opentelekomcloud.WafDedicatedCertificateV1Args;
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 WafDedicatedCertificateV1("certificate1", WafDedicatedCertificateV1Args.builder()
.content("""
-----BEGIN CERTIFICATE-----
MIIFazCCA1OgAwIBAgIUN3w1KX8/T/HWVxZIOdHXPhUOnsAwDQYJKoZIhvcNAQEL
BQAwRTELMAkGA1UEBhMCQVUxEzARBgNVBAgMClNvbWUtU3RhdGUxITAfBgNVBAoM
...
dKvZbPEsygYRIjwyhHHUh/YXH8KDI/uu6u6AxDckQ3rP1BkkKXr5NPBGjVgM3ZI=
-----END CERTIFICATE-----
""")
.key("""
-----BEGIN PRIVATE KEY-----
MIIJQQIBADANBgkqhkiG9w0BAQEFAASCCSswggknAgEAAoICAQC+9uwFVenCdPD9
5LWSWMuy4riZW718wxBpYV5Y9N8nM7N0qZLLdpImZrzBbaBldTI+AZGI3Nupuurw
...
s9urs/Kk/tbQhsEvu0X8FyGwo0zH6rG8apTFTlac+v4mJ4vlpxSvT5+FW2lgLISE
+4sM7kp0qO3/p+45HykwBY5iHq3H
-----END PRIVATE KEY-----
""")
.build());
}
}
resources:
certificate1:
type: opentelekomcloud:WafDedicatedCertificateV1
properties:
content: |+
-----BEGIN CERTIFICATE-----
MIIFazCCA1OgAwIBAgIUN3w1KX8/T/HWVxZIOdHXPhUOnsAwDQYJKoZIhvcNAQEL
BQAwRTELMAkGA1UEBhMCQVUxEzARBgNVBAgMClNvbWUtU3RhdGUxITAfBgNVBAoM
...
dKvZbPEsygYRIjwyhHHUh/YXH8KDI/uu6u6AxDckQ3rP1BkkKXr5NPBGjVgM3ZI=
-----END CERTIFICATE-----
key: |+
-----BEGIN PRIVATE KEY-----
MIIJQQIBADANBgkqhkiG9w0BAQEFAASCCSswggknAgEAAoICAQC+9uwFVenCdPD9
5LWSWMuy4riZW718wxBpYV5Y9N8nM7N0qZLLdpImZrzBbaBldTI+AZGI3Nupuurw
...
s9urs/Kk/tbQhsEvu0X8FyGwo0zH6rG8apTFTlac+v4mJ4vlpxSvT5+FW2lgLISE
+4sM7kp0qO3/p+45HykwBY5iHq3H
-----END PRIVATE KEY-----
Create WafDedicatedCertificateV1 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new WafDedicatedCertificateV1(name: string, args: WafDedicatedCertificateV1Args, opts?: CustomResourceOptions);
@overload
def WafDedicatedCertificateV1(resource_name: str,
args: WafDedicatedCertificateV1Args,
opts: Optional[ResourceOptions] = None)
@overload
def WafDedicatedCertificateV1(resource_name: str,
opts: Optional[ResourceOptions] = None,
content: Optional[str] = None,
key: Optional[str] = None,
name: Optional[str] = None,
region: Optional[str] = None,
timeouts: Optional[WafDedicatedCertificateV1TimeoutsArgs] = None,
waf_dedicated_certificate_v1_id: Optional[str] = None)
func NewWafDedicatedCertificateV1(ctx *Context, name string, args WafDedicatedCertificateV1Args, opts ...ResourceOption) (*WafDedicatedCertificateV1, error)
public WafDedicatedCertificateV1(string name, WafDedicatedCertificateV1Args args, CustomResourceOptions? opts = null)
public WafDedicatedCertificateV1(String name, WafDedicatedCertificateV1Args args)
public WafDedicatedCertificateV1(String name, WafDedicatedCertificateV1Args args, CustomResourceOptions options)
type: opentelekomcloud:WafDedicatedCertificateV1
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args WafDedicatedCertificateV1Args
- 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 WafDedicatedCertificateV1Args
- 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 WafDedicatedCertificateV1Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args WafDedicatedCertificateV1Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args WafDedicatedCertificateV1Args
- 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 wafDedicatedCertificateV1Resource = new Opentelekomcloud.WafDedicatedCertificateV1("wafDedicatedCertificateV1Resource", new()
{
Content = "string",
Key = "string",
Name = "string",
Region = "string",
Timeouts = new Opentelekomcloud.Inputs.WafDedicatedCertificateV1TimeoutsArgs
{
Create = "string",
Delete = "string",
},
WafDedicatedCertificateV1Id = "string",
});
example, err := opentelekomcloud.NewWafDedicatedCertificateV1(ctx, "wafDedicatedCertificateV1Resource", &opentelekomcloud.WafDedicatedCertificateV1Args{
Content: pulumi.String("string"),
Key: pulumi.String("string"),
Name: pulumi.String("string"),
Region: pulumi.String("string"),
Timeouts: &opentelekomcloud.WafDedicatedCertificateV1TimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
},
WafDedicatedCertificateV1Id: pulumi.String("string"),
})
var wafDedicatedCertificateV1Resource = new WafDedicatedCertificateV1("wafDedicatedCertificateV1Resource", WafDedicatedCertificateV1Args.builder()
.content("string")
.key("string")
.name("string")
.region("string")
.timeouts(WafDedicatedCertificateV1TimeoutsArgs.builder()
.create("string")
.delete("string")
.build())
.wafDedicatedCertificateV1Id("string")
.build());
waf_dedicated_certificate_v1_resource = opentelekomcloud.WafDedicatedCertificateV1("wafDedicatedCertificateV1Resource",
content="string",
key="string",
name="string",
region="string",
timeouts={
"create": "string",
"delete": "string",
},
waf_dedicated_certificate_v1_id="string")
const wafDedicatedCertificateV1Resource = new opentelekomcloud.WafDedicatedCertificateV1("wafDedicatedCertificateV1Resource", {
content: "string",
key: "string",
name: "string",
region: "string",
timeouts: {
create: "string",
"delete": "string",
},
wafDedicatedCertificateV1Id: "string",
});
type: opentelekomcloud:WafDedicatedCertificateV1
properties:
content: string
key: string
name: string
region: string
timeouts:
create: string
delete: string
wafDedicatedCertificateV1Id: string
WafDedicatedCertificateV1 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 WafDedicatedCertificateV1 resource accepts the following input properties:
- Content string
- The certificate content. Changing this creates a new certificate.
- Key string
- The private key. Changing this creates a new certificate.
- Name string
- The certificate name. The value can contain a maximum of 64 characters.
Only digits, letters, underscores(
_
), and hyphens(-
) are allowed. Changing this creates a new certificate. - Region string
- Timeouts
Waf
Dedicated Certificate V1Timeouts - Waf
Dedicated stringCertificate V1Id - ID of the certificate.
- Content string
- The certificate content. Changing this creates a new certificate.
- Key string
- The private key. Changing this creates a new certificate.
- Name string
- The certificate name. The value can contain a maximum of 64 characters.
Only digits, letters, underscores(
_
), and hyphens(-
) are allowed. Changing this creates a new certificate. - Region string
- Timeouts
Waf
Dedicated Certificate V1Timeouts Args - Waf
Dedicated stringCertificate V1Id - ID of the certificate.
- content String
- The certificate content. Changing this creates a new certificate.
- key String
- The private key. Changing this creates a new certificate.
- name String
- The certificate name. The value can contain a maximum of 64 characters.
Only digits, letters, underscores(
_
), and hyphens(-
) are allowed. Changing this creates a new certificate. - region String
- timeouts
Waf
Dedicated Certificate V1Timeouts - waf
Dedicated StringCertificate V1Id - ID of the certificate.
- content string
- The certificate content. Changing this creates a new certificate.
- key string
- The private key. Changing this creates a new certificate.
- name string
- The certificate name. The value can contain a maximum of 64 characters.
Only digits, letters, underscores(
_
), and hyphens(-
) are allowed. Changing this creates a new certificate. - region string
- timeouts
Waf
Dedicated Certificate V1Timeouts - waf
Dedicated stringCertificate V1Id - ID of the certificate.
- content str
- The certificate content. Changing this creates a new certificate.
- key str
- The private key. Changing this creates a new certificate.
- name str
- The certificate name. The value can contain a maximum of 64 characters.
Only digits, letters, underscores(
_
), and hyphens(-
) are allowed. Changing this creates a new certificate. - region str
- timeouts
Waf
Dedicated Certificate V1Timeouts Args - waf_
dedicated_ strcertificate_ v1_ id - ID of the certificate.
- content String
- The certificate content. Changing this creates a new certificate.
- key String
- The private key. Changing this creates a new certificate.
- name String
- The certificate name. The value can contain a maximum of 64 characters.
Only digits, letters, underscores(
_
), and hyphens(-
) are allowed. Changing this creates a new certificate. - region String
- timeouts Property Map
- waf
Dedicated StringCertificate V1Id - ID of the certificate.
Outputs
All input properties are implicitly available as output properties. Additionally, the WafDedicatedCertificateV1 resource produces the following output properties:
- created_
at str - Date when the certificate is uploaded.
- expires str
- Date when the certificate expires.
- id str
- The provider-assigned unique ID for this managed resource.
Look up Existing WafDedicatedCertificateV1 Resource
Get an existing WafDedicatedCertificateV1 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?: WafDedicatedCertificateV1State, opts?: CustomResourceOptions): WafDedicatedCertificateV1
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
content: Optional[str] = None,
created_at: Optional[str] = None,
expires: Optional[str] = None,
key: Optional[str] = None,
name: Optional[str] = None,
region: Optional[str] = None,
timeouts: Optional[WafDedicatedCertificateV1TimeoutsArgs] = None,
waf_dedicated_certificate_v1_id: Optional[str] = None) -> WafDedicatedCertificateV1
func GetWafDedicatedCertificateV1(ctx *Context, name string, id IDInput, state *WafDedicatedCertificateV1State, opts ...ResourceOption) (*WafDedicatedCertificateV1, error)
public static WafDedicatedCertificateV1 Get(string name, Input<string> id, WafDedicatedCertificateV1State? state, CustomResourceOptions? opts = null)
public static WafDedicatedCertificateV1 get(String name, Output<String> id, WafDedicatedCertificateV1State state, CustomResourceOptions options)
resources: _: type: opentelekomcloud:WafDedicatedCertificateV1 get: id: ${id}
- 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.
- 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.
- Content string
- The certificate content. Changing this creates a new certificate.
- Created
At string - Date when the certificate is uploaded.
- Expires string
- Date when the certificate expires.
- Key string
- The private key. Changing this creates a new certificate.
- Name string
- The certificate name. The value can contain a maximum of 64 characters.
Only digits, letters, underscores(
_
), and hyphens(-
) are allowed. Changing this creates a new certificate. - Region string
- Timeouts
Waf
Dedicated Certificate V1Timeouts - Waf
Dedicated stringCertificate V1Id - ID of the certificate.
- Content string
- The certificate content. Changing this creates a new certificate.
- Created
At string - Date when the certificate is uploaded.
- Expires string
- Date when the certificate expires.
- Key string
- The private key. Changing this creates a new certificate.
- Name string
- The certificate name. The value can contain a maximum of 64 characters.
Only digits, letters, underscores(
_
), and hyphens(-
) are allowed. Changing this creates a new certificate. - Region string
- Timeouts
Waf
Dedicated Certificate V1Timeouts Args - Waf
Dedicated stringCertificate V1Id - ID of the certificate.
- content String
- The certificate content. Changing this creates a new certificate.
- created
At String - Date when the certificate is uploaded.
- expires String
- Date when the certificate expires.
- key String
- The private key. Changing this creates a new certificate.
- name String
- The certificate name. The value can contain a maximum of 64 characters.
Only digits, letters, underscores(
_
), and hyphens(-
) are allowed. Changing this creates a new certificate. - region String
- timeouts
Waf
Dedicated Certificate V1Timeouts - waf
Dedicated StringCertificate V1Id - ID of the certificate.
- content string
- The certificate content. Changing this creates a new certificate.
- created
At string - Date when the certificate is uploaded.
- expires string
- Date when the certificate expires.
- key string
- The private key. Changing this creates a new certificate.
- name string
- The certificate name. The value can contain a maximum of 64 characters.
Only digits, letters, underscores(
_
), and hyphens(-
) are allowed. Changing this creates a new certificate. - region string
- timeouts
Waf
Dedicated Certificate V1Timeouts - waf
Dedicated stringCertificate V1Id - ID of the certificate.
- content str
- The certificate content. Changing this creates a new certificate.
- created_
at str - Date when the certificate is uploaded.
- expires str
- Date when the certificate expires.
- key str
- The private key. Changing this creates a new certificate.
- name str
- The certificate name. The value can contain a maximum of 64 characters.
Only digits, letters, underscores(
_
), and hyphens(-
) are allowed. Changing this creates a new certificate. - region str
- timeouts
Waf
Dedicated Certificate V1Timeouts Args - waf_
dedicated_ strcertificate_ v1_ id - ID of the certificate.
- content String
- The certificate content. Changing this creates a new certificate.
- created
At String - Date when the certificate is uploaded.
- expires String
- Date when the certificate expires.
- key String
- The private key. Changing this creates a new certificate.
- name String
- The certificate name. The value can contain a maximum of 64 characters.
Only digits, letters, underscores(
_
), and hyphens(-
) are allowed. Changing this creates a new certificate. - region String
- timeouts Property Map
- waf
Dedicated StringCertificate V1Id - ID of the certificate.
Supporting Types
WafDedicatedCertificateV1Timeouts, WafDedicatedCertificateV1TimeoutsArgs
Import
WAF dedicated certificates can be imported using the id
, e.g.
$ pulumi import opentelekomcloud:index/wafDedicatedCertificateV1:WafDedicatedCertificateV1 cert_1 7117d38e-4c8f-4624-a505-bd96b97d024c
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
- License
- Notes
- This Pulumi package is based on the
opentelekomcloud
Terraform Provider.