SecurityPolicy

class SecurityPolicy : KotlinCustomResource

Provides a ALB Security Policy resource. For information about ALB Security Policy and how to use it, see What is Security Policy.

NOTE: Available since v1.130.0.

Example Usage

Basic Usage

import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const _default = new alicloud.alb.SecurityPolicy("default", {
securityPolicyName: "tf_example",
tlsVersions: ["TLSv1.0"],
ciphers: [
"ECDHE-ECDSA-AES128-SHA",
"AES256-SHA",
],
});
import pulumi
import pulumi_alicloud as alicloud
default = alicloud.alb.SecurityPolicy("default",
security_policy_name="tf_example",
tls_versions=["TLSv1.0"],
ciphers=[
"ECDHE-ECDSA-AES128-SHA",
"AES256-SHA",
])
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var @default = new AliCloud.Alb.SecurityPolicy("default", new()
{
SecurityPolicyName = "tf_example",
TlsVersions = new[]
{
"TLSv1.0",
},
Ciphers = new[]
{
"ECDHE-ECDSA-AES128-SHA",
"AES256-SHA",
},
});
});
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/alb"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := alb.NewSecurityPolicy(ctx, "default", &alb.SecurityPolicyArgs{
SecurityPolicyName: pulumi.String("tf_example"),
TlsVersions: pulumi.StringArray{
pulumi.String("TLSv1.0"),
},
Ciphers: pulumi.StringArray{
pulumi.String("ECDHE-ECDSA-AES128-SHA"),
pulumi.String("AES256-SHA"),
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.alb.SecurityPolicy;
import com.pulumi.alicloud.alb.SecurityPolicyArgs;
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 default_ = new SecurityPolicy("default", SecurityPolicyArgs.builder()
.securityPolicyName("tf_example")
.tlsVersions("TLSv1.0")
.ciphers(
"ECDHE-ECDSA-AES128-SHA",
"AES256-SHA")
.build());
}
}
resources:
default:
type: alicloud:alb:SecurityPolicy
properties:
securityPolicyName: tf_example
tlsVersions:
- TLSv1.0
ciphers:
- ECDHE-ECDSA-AES128-SHA
- AES256-SHA

Import

ALB Security Policy can be imported using the id, e.g.

$ pulumi import alicloud:alb/securityPolicy:SecurityPolicy example <id>

Properties

Link copied to clipboard
val ciphers: Output<List<String>>

The supported cipher suites, which are determined by the TLS protocol version.The specified cipher suites must be supported by at least one TLS protocol version that you select.

Link copied to clipboard
val dryRun: Output<Boolean>?

The dry run.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val resourceGroupId: Output<String>

The ID of the resource group.

Link copied to clipboard

The name of the resource. The name must be 2 to 128 characters in length and must start with a letter. It can contain digits, periods (.), underscores (_), and hyphens (-).

Link copied to clipboard
val status: Output<String>

The status of the resource.

Link copied to clipboard
val tags: Output<Map<String, String>>?

A mapping of tags to assign to the resource.

Link copied to clipboard
val tlsVersions: Output<List<String>>

The TLS protocol versions that are supported. Valid values: TLSv1.0, TLSv1.1, TLSv1.2 and TLSv1.3.

Link copied to clipboard
val urn: Output<String>