Try AWS Native preview for resources not in the classic version.
aws.redshift.HsmConfiguration
Explore with Pulumi AI
Try AWS Native preview for resources not in the classic version.
Creates an HSM configuration that contains the information required by an Amazon Redshift cluster to store and use database encryption keys in a Hardware Security Module (HSM).
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.redshift.HsmConfiguration("example", {
description: "example",
hsmConfigurationIdentifier: "example",
hsmIpAddress: "10.0.0.1",
hsmPartitionName: "aws",
hsmPartitionPassword: "example",
hsmServerPublicCertificate: "example",
});
import pulumi
import pulumi_aws as aws
example = aws.redshift.HsmConfiguration("example",
description="example",
hsm_configuration_identifier="example",
hsm_ip_address="10.0.0.1",
hsm_partition_name="aws",
hsm_partition_password="example",
hsm_server_public_certificate="example")
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/redshift"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := redshift.NewHsmConfiguration(ctx, "example", &redshift.HsmConfigurationArgs{
Description: pulumi.String("example"),
HsmConfigurationIdentifier: pulumi.String("example"),
HsmIpAddress: pulumi.String("10.0.0.1"),
HsmPartitionName: pulumi.String("aws"),
HsmPartitionPassword: pulumi.String("example"),
HsmServerPublicCertificate: pulumi.String("example"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.RedShift.HsmConfiguration("example", new()
{
Description = "example",
HsmConfigurationIdentifier = "example",
HsmIpAddress = "10.0.0.1",
HsmPartitionName = "aws",
HsmPartitionPassword = "example",
HsmServerPublicCertificate = "example",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.redshift.HsmConfiguration;
import com.pulumi.aws.redshift.HsmConfigurationArgs;
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 example = new HsmConfiguration("example", HsmConfigurationArgs.builder()
.description("example")
.hsmConfigurationIdentifier("example")
.hsmIpAddress("10.0.0.1")
.hsmPartitionName("aws")
.hsmPartitionPassword("example")
.hsmServerPublicCertificate("example")
.build());
}
}
resources:
example:
type: aws:redshift:HsmConfiguration
properties:
description: example
hsmConfigurationIdentifier: example
hsmIpAddress: 10.0.0.1
hsmPartitionName: aws
hsmPartitionPassword: example
hsmServerPublicCertificate: example
Create HsmConfiguration Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new HsmConfiguration(name: string, args: HsmConfigurationArgs, opts?: CustomResourceOptions);
@overload
def HsmConfiguration(resource_name: str,
args: HsmConfigurationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def HsmConfiguration(resource_name: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
hsm_configuration_identifier: Optional[str] = None,
hsm_ip_address: Optional[str] = None,
hsm_partition_name: Optional[str] = None,
hsm_partition_password: Optional[str] = None,
hsm_server_public_certificate: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None)
func NewHsmConfiguration(ctx *Context, name string, args HsmConfigurationArgs, opts ...ResourceOption) (*HsmConfiguration, error)
public HsmConfiguration(string name, HsmConfigurationArgs args, CustomResourceOptions? opts = null)
public HsmConfiguration(String name, HsmConfigurationArgs args)
public HsmConfiguration(String name, HsmConfigurationArgs args, CustomResourceOptions options)
type: aws:redshift:HsmConfiguration
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 HsmConfigurationArgs
- 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 HsmConfigurationArgs
- 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 HsmConfigurationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args HsmConfigurationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args HsmConfigurationArgs
- 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 hsmConfigurationResource = new Aws.RedShift.HsmConfiguration("hsmConfigurationResource", new()
{
Description = "string",
HsmConfigurationIdentifier = "string",
HsmIpAddress = "string",
HsmPartitionName = "string",
HsmPartitionPassword = "string",
HsmServerPublicCertificate = "string",
Tags =
{
{ "string", "string" },
},
});
example, err := redshift.NewHsmConfiguration(ctx, "hsmConfigurationResource", &redshift.HsmConfigurationArgs{
Description: pulumi.String("string"),
HsmConfigurationIdentifier: pulumi.String("string"),
HsmIpAddress: pulumi.String("string"),
HsmPartitionName: pulumi.String("string"),
HsmPartitionPassword: pulumi.String("string"),
HsmServerPublicCertificate: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var hsmConfigurationResource = new HsmConfiguration("hsmConfigurationResource", HsmConfigurationArgs.builder()
.description("string")
.hsmConfigurationIdentifier("string")
.hsmIpAddress("string")
.hsmPartitionName("string")
.hsmPartitionPassword("string")
.hsmServerPublicCertificate("string")
.tags(Map.of("string", "string"))
.build());
hsm_configuration_resource = aws.redshift.HsmConfiguration("hsmConfigurationResource",
description="string",
hsm_configuration_identifier="string",
hsm_ip_address="string",
hsm_partition_name="string",
hsm_partition_password="string",
hsm_server_public_certificate="string",
tags={
"string": "string",
})
const hsmConfigurationResource = new aws.redshift.HsmConfiguration("hsmConfigurationResource", {
description: "string",
hsmConfigurationIdentifier: "string",
hsmIpAddress: "string",
hsmPartitionName: "string",
hsmPartitionPassword: "string",
hsmServerPublicCertificate: "string",
tags: {
string: "string",
},
});
type: aws:redshift:HsmConfiguration
properties:
description: string
hsmConfigurationIdentifier: string
hsmIpAddress: string
hsmPartitionName: string
hsmPartitionPassword: string
hsmServerPublicCertificate: string
tags:
string: string
HsmConfiguration 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 HsmConfiguration resource accepts the following input properties:
- Description string
- A text description of the HSM configuration to be created.
- Hsm
Configuration stringIdentifier - The identifier to be assigned to the new Amazon Redshift HSM configuration.
- Hsm
Ip stringAddress - The IP address that the Amazon Redshift cluster must use to access the HSM.
- Hsm
Partition stringName - The name of the partition in the HSM where the Amazon Redshift clusters will store their database encryption keys.
- Hsm
Partition stringPassword - The password required to access the HSM partition.
- Hsm
Server stringPublic Certificate - The HSMs public certificate file. When using Cloud HSM, the file name is server.pem.
- Dictionary<string, string>
- A map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- Description string
- A text description of the HSM configuration to be created.
- Hsm
Configuration stringIdentifier - The identifier to be assigned to the new Amazon Redshift HSM configuration.
- Hsm
Ip stringAddress - The IP address that the Amazon Redshift cluster must use to access the HSM.
- Hsm
Partition stringName - The name of the partition in the HSM where the Amazon Redshift clusters will store their database encryption keys.
- Hsm
Partition stringPassword - The password required to access the HSM partition.
- Hsm
Server stringPublic Certificate - The HSMs public certificate file. When using Cloud HSM, the file name is server.pem.
- map[string]string
- A map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- description String
- A text description of the HSM configuration to be created.
- hsm
Configuration StringIdentifier - The identifier to be assigned to the new Amazon Redshift HSM configuration.
- hsm
Ip StringAddress - The IP address that the Amazon Redshift cluster must use to access the HSM.
- hsm
Partition StringName - The name of the partition in the HSM where the Amazon Redshift clusters will store their database encryption keys.
- hsm
Partition StringPassword - The password required to access the HSM partition.
- hsm
Server StringPublic Certificate - The HSMs public certificate file. When using Cloud HSM, the file name is server.pem.
- Map<String,String>
- A map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- description string
- A text description of the HSM configuration to be created.
- hsm
Configuration stringIdentifier - The identifier to be assigned to the new Amazon Redshift HSM configuration.
- hsm
Ip stringAddress - The IP address that the Amazon Redshift cluster must use to access the HSM.
- hsm
Partition stringName - The name of the partition in the HSM where the Amazon Redshift clusters will store their database encryption keys.
- hsm
Partition stringPassword - The password required to access the HSM partition.
- hsm
Server stringPublic Certificate - The HSMs public certificate file. When using Cloud HSM, the file name is server.pem.
- {[key: string]: string}
- A map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- description str
- A text description of the HSM configuration to be created.
- hsm_
configuration_ stridentifier - The identifier to be assigned to the new Amazon Redshift HSM configuration.
- hsm_
ip_ straddress - The IP address that the Amazon Redshift cluster must use to access the HSM.
- hsm_
partition_ strname - The name of the partition in the HSM where the Amazon Redshift clusters will store their database encryption keys.
- hsm_
partition_ strpassword - The password required to access the HSM partition.
- hsm_
server_ strpublic_ certificate - The HSMs public certificate file. When using Cloud HSM, the file name is server.pem.
- Mapping[str, str]
- A map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- description String
- A text description of the HSM configuration to be created.
- hsm
Configuration StringIdentifier - The identifier to be assigned to the new Amazon Redshift HSM configuration.
- hsm
Ip StringAddress - The IP address that the Amazon Redshift cluster must use to access the HSM.
- hsm
Partition StringName - The name of the partition in the HSM where the Amazon Redshift clusters will store their database encryption keys.
- hsm
Partition StringPassword - The password required to access the HSM partition.
- hsm
Server StringPublic Certificate - The HSMs public certificate file. When using Cloud HSM, the file name is server.pem.
- Map<String>
- A map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
Outputs
All input properties are implicitly available as output properties. Additionally, the HsmConfiguration resource produces the following output properties:
Look up Existing HsmConfiguration Resource
Get an existing HsmConfiguration 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?: HsmConfigurationState, opts?: CustomResourceOptions): HsmConfiguration
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
arn: Optional[str] = None,
description: Optional[str] = None,
hsm_configuration_identifier: Optional[str] = None,
hsm_ip_address: Optional[str] = None,
hsm_partition_name: Optional[str] = None,
hsm_partition_password: Optional[str] = None,
hsm_server_public_certificate: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
tags_all: Optional[Mapping[str, str]] = None) -> HsmConfiguration
func GetHsmConfiguration(ctx *Context, name string, id IDInput, state *HsmConfigurationState, opts ...ResourceOption) (*HsmConfiguration, error)
public static HsmConfiguration Get(string name, Input<string> id, HsmConfigurationState? state, CustomResourceOptions? opts = null)
public static HsmConfiguration get(String name, Output<String> id, HsmConfigurationState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- Arn string
- Amazon Resource Name (ARN) of the Hsm Client Certificate.
- Description string
- A text description of the HSM configuration to be created.
- Hsm
Configuration stringIdentifier - The identifier to be assigned to the new Amazon Redshift HSM configuration.
- Hsm
Ip stringAddress - The IP address that the Amazon Redshift cluster must use to access the HSM.
- Hsm
Partition stringName - The name of the partition in the HSM where the Amazon Redshift clusters will store their database encryption keys.
- Hsm
Partition stringPassword - The password required to access the HSM partition.
- Hsm
Server stringPublic Certificate - The HSMs public certificate file. When using Cloud HSM, the file name is server.pem.
- Dictionary<string, string>
- A map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Dictionary<string, string>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- Arn string
- Amazon Resource Name (ARN) of the Hsm Client Certificate.
- Description string
- A text description of the HSM configuration to be created.
- Hsm
Configuration stringIdentifier - The identifier to be assigned to the new Amazon Redshift HSM configuration.
- Hsm
Ip stringAddress - The IP address that the Amazon Redshift cluster must use to access the HSM.
- Hsm
Partition stringName - The name of the partition in the HSM where the Amazon Redshift clusters will store their database encryption keys.
- Hsm
Partition stringPassword - The password required to access the HSM partition.
- Hsm
Server stringPublic Certificate - The HSMs public certificate file. When using Cloud HSM, the file name is server.pem.
- map[string]string
- A map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - map[string]string
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn String
- Amazon Resource Name (ARN) of the Hsm Client Certificate.
- description String
- A text description of the HSM configuration to be created.
- hsm
Configuration StringIdentifier - The identifier to be assigned to the new Amazon Redshift HSM configuration.
- hsm
Ip StringAddress - The IP address that the Amazon Redshift cluster must use to access the HSM.
- hsm
Partition StringName - The name of the partition in the HSM where the Amazon Redshift clusters will store their database encryption keys.
- hsm
Partition StringPassword - The password required to access the HSM partition.
- hsm
Server StringPublic Certificate - The HSMs public certificate file. When using Cloud HSM, the file name is server.pem.
- Map<String,String>
- A map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Map<String,String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn string
- Amazon Resource Name (ARN) of the Hsm Client Certificate.
- description string
- A text description of the HSM configuration to be created.
- hsm
Configuration stringIdentifier - The identifier to be assigned to the new Amazon Redshift HSM configuration.
- hsm
Ip stringAddress - The IP address that the Amazon Redshift cluster must use to access the HSM.
- hsm
Partition stringName - The name of the partition in the HSM where the Amazon Redshift clusters will store their database encryption keys.
- hsm
Partition stringPassword - The password required to access the HSM partition.
- hsm
Server stringPublic Certificate - The HSMs public certificate file. When using Cloud HSM, the file name is server.pem.
- {[key: string]: string}
- A map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - {[key: string]: string}
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn str
- Amazon Resource Name (ARN) of the Hsm Client Certificate.
- description str
- A text description of the HSM configuration to be created.
- hsm_
configuration_ stridentifier - The identifier to be assigned to the new Amazon Redshift HSM configuration.
- hsm_
ip_ straddress - The IP address that the Amazon Redshift cluster must use to access the HSM.
- hsm_
partition_ strname - The name of the partition in the HSM where the Amazon Redshift clusters will store their database encryption keys.
- hsm_
partition_ strpassword - The password required to access the HSM partition.
- hsm_
server_ strpublic_ certificate - The HSMs public certificate file. When using Cloud HSM, the file name is server.pem.
- Mapping[str, str]
- A map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Mapping[str, str]
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn String
- Amazon Resource Name (ARN) of the Hsm Client Certificate.
- description String
- A text description of the HSM configuration to be created.
- hsm
Configuration StringIdentifier - The identifier to be assigned to the new Amazon Redshift HSM configuration.
- hsm
Ip StringAddress - The IP address that the Amazon Redshift cluster must use to access the HSM.
- hsm
Partition StringName - The name of the partition in the HSM where the Amazon Redshift clusters will store their database encryption keys.
- hsm
Partition StringPassword - The password required to access the HSM partition.
- hsm
Server StringPublic Certificate - The HSMs public certificate file. When using Cloud HSM, the file name is server.pem.
- Map<String>
- A map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Map<String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
Import
Using pulumi import
, import Redshift HSM Client Certificates using hsm_configuration_identifier
. For example:
$ pulumi import aws:redshift/hsmConfiguration:HsmConfiguration example example
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.
Try AWS Native preview for resources not in the classic version.