auth0.EncryptionKeyManager
Explore with Pulumi AI
Resource to allow the rekeying of your tenant master key.
Create EncryptionKeyManager Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new EncryptionKeyManager(name: string, args?: EncryptionKeyManagerArgs, opts?: CustomResourceOptions);
@overload
def EncryptionKeyManager(resource_name: str,
args: Optional[EncryptionKeyManagerArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def EncryptionKeyManager(resource_name: str,
opts: Optional[ResourceOptions] = None,
customer_provided_root_key: Optional[EncryptionKeyManagerCustomerProvidedRootKeyArgs] = None,
key_rotation_id: Optional[str] = None)
func NewEncryptionKeyManager(ctx *Context, name string, args *EncryptionKeyManagerArgs, opts ...ResourceOption) (*EncryptionKeyManager, error)
public EncryptionKeyManager(string name, EncryptionKeyManagerArgs? args = null, CustomResourceOptions? opts = null)
public EncryptionKeyManager(String name, EncryptionKeyManagerArgs args)
public EncryptionKeyManager(String name, EncryptionKeyManagerArgs args, CustomResourceOptions options)
type: auth0:EncryptionKeyManager
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 EncryptionKeyManagerArgs
- 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 EncryptionKeyManagerArgs
- 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 EncryptionKeyManagerArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args EncryptionKeyManagerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args EncryptionKeyManagerArgs
- 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 encryptionKeyManagerResource = new Auth0.EncryptionKeyManager("encryptionKeyManagerResource", new()
{
CustomerProvidedRootKey = new Auth0.Inputs.EncryptionKeyManagerCustomerProvidedRootKeyArgs
{
CreatedAt = "string",
KeyId = "string",
ParentKeyId = "string",
PublicWrappingKey = "string",
State = "string",
Type = "string",
UpdatedAt = "string",
WrappedKey = "string",
WrappingAlgorithm = "string",
},
KeyRotationId = "string",
});
example, err := auth0.NewEncryptionKeyManager(ctx, "encryptionKeyManagerResource", &auth0.EncryptionKeyManagerArgs{
CustomerProvidedRootKey: &auth0.EncryptionKeyManagerCustomerProvidedRootKeyArgs{
CreatedAt: pulumi.String("string"),
KeyId: pulumi.String("string"),
ParentKeyId: pulumi.String("string"),
PublicWrappingKey: pulumi.String("string"),
State: pulumi.String("string"),
Type: pulumi.String("string"),
UpdatedAt: pulumi.String("string"),
WrappedKey: pulumi.String("string"),
WrappingAlgorithm: pulumi.String("string"),
},
KeyRotationId: pulumi.String("string"),
})
var encryptionKeyManagerResource = new EncryptionKeyManager("encryptionKeyManagerResource", EncryptionKeyManagerArgs.builder()
.customerProvidedRootKey(EncryptionKeyManagerCustomerProvidedRootKeyArgs.builder()
.createdAt("string")
.keyId("string")
.parentKeyId("string")
.publicWrappingKey("string")
.state("string")
.type("string")
.updatedAt("string")
.wrappedKey("string")
.wrappingAlgorithm("string")
.build())
.keyRotationId("string")
.build());
encryption_key_manager_resource = auth0.EncryptionKeyManager("encryptionKeyManagerResource",
customer_provided_root_key={
"created_at": "string",
"key_id": "string",
"parent_key_id": "string",
"public_wrapping_key": "string",
"state": "string",
"type": "string",
"updated_at": "string",
"wrapped_key": "string",
"wrapping_algorithm": "string",
},
key_rotation_id="string")
const encryptionKeyManagerResource = new auth0.EncryptionKeyManager("encryptionKeyManagerResource", {
customerProvidedRootKey: {
createdAt: "string",
keyId: "string",
parentKeyId: "string",
publicWrappingKey: "string",
state: "string",
type: "string",
updatedAt: "string",
wrappedKey: "string",
wrappingAlgorithm: "string",
},
keyRotationId: "string",
});
type: auth0:EncryptionKeyManager
properties:
customerProvidedRootKey:
createdAt: string
keyId: string
parentKeyId: string
publicWrappingKey: string
state: string
type: string
updatedAt: string
wrappedKey: string
wrappingAlgorithm: string
keyRotationId: string
EncryptionKeyManager 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 EncryptionKeyManager resource accepts the following input properties:
- Customer
Provided EncryptionRoot Key Key Manager Customer Provided Root Key - This attribute is used for provisioning the customer provided root key. To initiate the provisioning process, create a new empty
customer_provided_root_key
block. After applying this, thepublic_wrapping_key
can be retreived from the resource, and the new root key should be generated by the customer and wrapped with the wrapping key, then base64-encoded and added as thewrapped_key
attribute. - Key
Rotation stringId - If this value is changed, the encryption keys will be rotated. A UUID is recommended for the
key_rotation_id
.
- Customer
Provided EncryptionRoot Key Key Manager Customer Provided Root Key Args - This attribute is used for provisioning the customer provided root key. To initiate the provisioning process, create a new empty
customer_provided_root_key
block. After applying this, thepublic_wrapping_key
can be retreived from the resource, and the new root key should be generated by the customer and wrapped with the wrapping key, then base64-encoded and added as thewrapped_key
attribute. - Key
Rotation stringId - If this value is changed, the encryption keys will be rotated. A UUID is recommended for the
key_rotation_id
.
- customer
Provided EncryptionRoot Key Key Manager Customer Provided Root Key - This attribute is used for provisioning the customer provided root key. To initiate the provisioning process, create a new empty
customer_provided_root_key
block. After applying this, thepublic_wrapping_key
can be retreived from the resource, and the new root key should be generated by the customer and wrapped with the wrapping key, then base64-encoded and added as thewrapped_key
attribute. - key
Rotation StringId - If this value is changed, the encryption keys will be rotated. A UUID is recommended for the
key_rotation_id
.
- customer
Provided EncryptionRoot Key Key Manager Customer Provided Root Key - This attribute is used for provisioning the customer provided root key. To initiate the provisioning process, create a new empty
customer_provided_root_key
block. After applying this, thepublic_wrapping_key
can be retreived from the resource, and the new root key should be generated by the customer and wrapped with the wrapping key, then base64-encoded and added as thewrapped_key
attribute. - key
Rotation stringId - If this value is changed, the encryption keys will be rotated. A UUID is recommended for the
key_rotation_id
.
- customer_
provided_ Encryptionroot_ key Key Manager Customer Provided Root Key Args - This attribute is used for provisioning the customer provided root key. To initiate the provisioning process, create a new empty
customer_provided_root_key
block. After applying this, thepublic_wrapping_key
can be retreived from the resource, and the new root key should be generated by the customer and wrapped with the wrapping key, then base64-encoded and added as thewrapped_key
attribute. - key_
rotation_ strid - If this value is changed, the encryption keys will be rotated. A UUID is recommended for the
key_rotation_id
.
- customer
Provided Property MapRoot Key - This attribute is used for provisioning the customer provided root key. To initiate the provisioning process, create a new empty
customer_provided_root_key
block. After applying this, thepublic_wrapping_key
can be retreived from the resource, and the new root key should be generated by the customer and wrapped with the wrapping key, then base64-encoded and added as thewrapped_key
attribute. - key
Rotation StringId - If this value is changed, the encryption keys will be rotated. A UUID is recommended for the
key_rotation_id
.
Outputs
All input properties are implicitly available as output properties. Additionally, the EncryptionKeyManager resource produces the following output properties:
- Encryption
Keys List<EncryptionKey Manager Encryption Key> - All encryption keys.
- Id string
- The provider-assigned unique ID for this managed resource.
- Encryption
Keys []EncryptionKey Manager Encryption Key - All encryption keys.
- Id string
- The provider-assigned unique ID for this managed resource.
- encryption
Keys List<EncryptionKey Manager Encryption Key> - All encryption keys.
- id String
- The provider-assigned unique ID for this managed resource.
- encryption
Keys EncryptionKey Manager Encryption Key[] - All encryption keys.
- id string
- The provider-assigned unique ID for this managed resource.
- encryption_
keys Sequence[EncryptionKey Manager Encryption Key] - All encryption keys.
- id str
- The provider-assigned unique ID for this managed resource.
- encryption
Keys List<Property Map> - All encryption keys.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing EncryptionKeyManager Resource
Get an existing EncryptionKeyManager 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?: EncryptionKeyManagerState, opts?: CustomResourceOptions): EncryptionKeyManager
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
customer_provided_root_key: Optional[EncryptionKeyManagerCustomerProvidedRootKeyArgs] = None,
encryption_keys: Optional[Sequence[EncryptionKeyManagerEncryptionKeyArgs]] = None,
key_rotation_id: Optional[str] = None) -> EncryptionKeyManager
func GetEncryptionKeyManager(ctx *Context, name string, id IDInput, state *EncryptionKeyManagerState, opts ...ResourceOption) (*EncryptionKeyManager, error)
public static EncryptionKeyManager Get(string name, Input<string> id, EncryptionKeyManagerState? state, CustomResourceOptions? opts = null)
public static EncryptionKeyManager get(String name, Output<String> id, EncryptionKeyManagerState 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.
- Customer
Provided EncryptionRoot Key Key Manager Customer Provided Root Key - This attribute is used for provisioning the customer provided root key. To initiate the provisioning process, create a new empty
customer_provided_root_key
block. After applying this, thepublic_wrapping_key
can be retreived from the resource, and the new root key should be generated by the customer and wrapped with the wrapping key, then base64-encoded and added as thewrapped_key
attribute. - Encryption
Keys List<EncryptionKey Manager Encryption Key> - All encryption keys.
- Key
Rotation stringId - If this value is changed, the encryption keys will be rotated. A UUID is recommended for the
key_rotation_id
.
- Customer
Provided EncryptionRoot Key Key Manager Customer Provided Root Key Args - This attribute is used for provisioning the customer provided root key. To initiate the provisioning process, create a new empty
customer_provided_root_key
block. After applying this, thepublic_wrapping_key
can be retreived from the resource, and the new root key should be generated by the customer and wrapped with the wrapping key, then base64-encoded and added as thewrapped_key
attribute. - Encryption
Keys []EncryptionKey Manager Encryption Key Args - All encryption keys.
- Key
Rotation stringId - If this value is changed, the encryption keys will be rotated. A UUID is recommended for the
key_rotation_id
.
- customer
Provided EncryptionRoot Key Key Manager Customer Provided Root Key - This attribute is used for provisioning the customer provided root key. To initiate the provisioning process, create a new empty
customer_provided_root_key
block. After applying this, thepublic_wrapping_key
can be retreived from the resource, and the new root key should be generated by the customer and wrapped with the wrapping key, then base64-encoded and added as thewrapped_key
attribute. - encryption
Keys List<EncryptionKey Manager Encryption Key> - All encryption keys.
- key
Rotation StringId - If this value is changed, the encryption keys will be rotated. A UUID is recommended for the
key_rotation_id
.
- customer
Provided EncryptionRoot Key Key Manager Customer Provided Root Key - This attribute is used for provisioning the customer provided root key. To initiate the provisioning process, create a new empty
customer_provided_root_key
block. After applying this, thepublic_wrapping_key
can be retreived from the resource, and the new root key should be generated by the customer and wrapped with the wrapping key, then base64-encoded and added as thewrapped_key
attribute. - encryption
Keys EncryptionKey Manager Encryption Key[] - All encryption keys.
- key
Rotation stringId - If this value is changed, the encryption keys will be rotated. A UUID is recommended for the
key_rotation_id
.
- customer_
provided_ Encryptionroot_ key Key Manager Customer Provided Root Key Args - This attribute is used for provisioning the customer provided root key. To initiate the provisioning process, create a new empty
customer_provided_root_key
block. After applying this, thepublic_wrapping_key
can be retreived from the resource, and the new root key should be generated by the customer and wrapped with the wrapping key, then base64-encoded and added as thewrapped_key
attribute. - encryption_
keys Sequence[EncryptionKey Manager Encryption Key Args] - All encryption keys.
- key_
rotation_ strid - If this value is changed, the encryption keys will be rotated. A UUID is recommended for the
key_rotation_id
.
- customer
Provided Property MapRoot Key - This attribute is used for provisioning the customer provided root key. To initiate the provisioning process, create a new empty
customer_provided_root_key
block. After applying this, thepublic_wrapping_key
can be retreived from the resource, and the new root key should be generated by the customer and wrapped with the wrapping key, then base64-encoded and added as thewrapped_key
attribute. - encryption
Keys List<Property Map> - All encryption keys.
- key
Rotation StringId - If this value is changed, the encryption keys will be rotated. A UUID is recommended for the
key_rotation_id
.
Supporting Types
EncryptionKeyManagerCustomerProvidedRootKey, EncryptionKeyManagerCustomerProvidedRootKeyArgs
- Created
At string - The ISO 8601 formatted date the customer provided root key was created.
- Key
Id string - The key ID of the customer provided root key.
- Parent
Key stringId - The key ID of the parent wrapping key.
- Public
Wrapping stringKey - The public wrapping key in PEM format.
- State string
- The state of the encryption key. One of
pre-activation
,active
,deactivated
, ordestroyed
. - Type string
- The type of the customer provided root key. Should be
customer-provided-root-key
. - Updated
At string - The ISO 8601 formatted date the customer provided root key was updated.
- Wrapped
Key string - The base64-encoded customer provided root key, wrapped using the
public_wrapping_key
. This can be removed after the wrapped key has been applied. - Wrapping
Algorithm string - The algorithm that should be used to wrap the customer provided root key. Should be
CKM_RSA_AES_KEY_WRAP
.
- Created
At string - The ISO 8601 formatted date the customer provided root key was created.
- Key
Id string - The key ID of the customer provided root key.
- Parent
Key stringId - The key ID of the parent wrapping key.
- Public
Wrapping stringKey - The public wrapping key in PEM format.
- State string
- The state of the encryption key. One of
pre-activation
,active
,deactivated
, ordestroyed
. - Type string
- The type of the customer provided root key. Should be
customer-provided-root-key
. - Updated
At string - The ISO 8601 formatted date the customer provided root key was updated.
- Wrapped
Key string - The base64-encoded customer provided root key, wrapped using the
public_wrapping_key
. This can be removed after the wrapped key has been applied. - Wrapping
Algorithm string - The algorithm that should be used to wrap the customer provided root key. Should be
CKM_RSA_AES_KEY_WRAP
.
- created
At String - The ISO 8601 formatted date the customer provided root key was created.
- key
Id String - The key ID of the customer provided root key.
- parent
Key StringId - The key ID of the parent wrapping key.
- public
Wrapping StringKey - The public wrapping key in PEM format.
- state String
- The state of the encryption key. One of
pre-activation
,active
,deactivated
, ordestroyed
. - type String
- The type of the customer provided root key. Should be
customer-provided-root-key
. - updated
At String - The ISO 8601 formatted date the customer provided root key was updated.
- wrapped
Key String - The base64-encoded customer provided root key, wrapped using the
public_wrapping_key
. This can be removed after the wrapped key has been applied. - wrapping
Algorithm String - The algorithm that should be used to wrap the customer provided root key. Should be
CKM_RSA_AES_KEY_WRAP
.
- created
At string - The ISO 8601 formatted date the customer provided root key was created.
- key
Id string - The key ID of the customer provided root key.
- parent
Key stringId - The key ID of the parent wrapping key.
- public
Wrapping stringKey - The public wrapping key in PEM format.
- state string
- The state of the encryption key. One of
pre-activation
,active
,deactivated
, ordestroyed
. - type string
- The type of the customer provided root key. Should be
customer-provided-root-key
. - updated
At string - The ISO 8601 formatted date the customer provided root key was updated.
- wrapped
Key string - The base64-encoded customer provided root key, wrapped using the
public_wrapping_key
. This can be removed after the wrapped key has been applied. - wrapping
Algorithm string - The algorithm that should be used to wrap the customer provided root key. Should be
CKM_RSA_AES_KEY_WRAP
.
- created_
at str - The ISO 8601 formatted date the customer provided root key was created.
- key_
id str - The key ID of the customer provided root key.
- parent_
key_ strid - The key ID of the parent wrapping key.
- public_
wrapping_ strkey - The public wrapping key in PEM format.
- state str
- The state of the encryption key. One of
pre-activation
,active
,deactivated
, ordestroyed
. - type str
- The type of the customer provided root key. Should be
customer-provided-root-key
. - updated_
at str - The ISO 8601 formatted date the customer provided root key was updated.
- wrapped_
key str - The base64-encoded customer provided root key, wrapped using the
public_wrapping_key
. This can be removed after the wrapped key has been applied. - wrapping_
algorithm str - The algorithm that should be used to wrap the customer provided root key. Should be
CKM_RSA_AES_KEY_WRAP
.
- created
At String - The ISO 8601 formatted date the customer provided root key was created.
- key
Id String - The key ID of the customer provided root key.
- parent
Key StringId - The key ID of the parent wrapping key.
- public
Wrapping StringKey - The public wrapping key in PEM format.
- state String
- The state of the encryption key. One of
pre-activation
,active
,deactivated
, ordestroyed
. - type String
- The type of the customer provided root key. Should be
customer-provided-root-key
. - updated
At String - The ISO 8601 formatted date the customer provided root key was updated.
- wrapped
Key String - The base64-encoded customer provided root key, wrapped using the
public_wrapping_key
. This can be removed after the wrapped key has been applied. - wrapping
Algorithm String - The algorithm that should be used to wrap the customer provided root key. Should be
CKM_RSA_AES_KEY_WRAP
.
EncryptionKeyManagerEncryptionKey, EncryptionKeyManagerEncryptionKeyArgs
- Created
At string - The ISO 8601 formatted date the encryption key was created.
- Key
Id string - The key ID of the encryption key.
- Parent
Key stringId - The key ID of the parent wrapping key.
- State string
- The state of the encryption key. One of
pre-activation
,active
,deactivated
, ordestroyed
. - Type string
- The type of the encryption key. One of
customer-provided-root-key
,environment-root-key
, ortenant-master-key
. - Updated
At string - The ISO 8601 formatted date the encryption key was updated.
- Created
At string - The ISO 8601 formatted date the encryption key was created.
- Key
Id string - The key ID of the encryption key.
- Parent
Key stringId - The key ID of the parent wrapping key.
- State string
- The state of the encryption key. One of
pre-activation
,active
,deactivated
, ordestroyed
. - Type string
- The type of the encryption key. One of
customer-provided-root-key
,environment-root-key
, ortenant-master-key
. - Updated
At string - The ISO 8601 formatted date the encryption key was updated.
- created
At String - The ISO 8601 formatted date the encryption key was created.
- key
Id String - The key ID of the encryption key.
- parent
Key StringId - The key ID of the parent wrapping key.
- state String
- The state of the encryption key. One of
pre-activation
,active
,deactivated
, ordestroyed
. - type String
- The type of the encryption key. One of
customer-provided-root-key
,environment-root-key
, ortenant-master-key
. - updated
At String - The ISO 8601 formatted date the encryption key was updated.
- created
At string - The ISO 8601 formatted date the encryption key was created.
- key
Id string - The key ID of the encryption key.
- parent
Key stringId - The key ID of the parent wrapping key.
- state string
- The state of the encryption key. One of
pre-activation
,active
,deactivated
, ordestroyed
. - type string
- The type of the encryption key. One of
customer-provided-root-key
,environment-root-key
, ortenant-master-key
. - updated
At string - The ISO 8601 formatted date the encryption key was updated.
- created_
at str - The ISO 8601 formatted date the encryption key was created.
- key_
id str - The key ID of the encryption key.
- parent_
key_ strid - The key ID of the parent wrapping key.
- state str
- The state of the encryption key. One of
pre-activation
,active
,deactivated
, ordestroyed
. - type str
- The type of the encryption key. One of
customer-provided-root-key
,environment-root-key
, ortenant-master-key
. - updated_
at str - The ISO 8601 formatted date the encryption key was updated.
- created
At String - The ISO 8601 formatted date the encryption key was created.
- key
Id String - The key ID of the encryption key.
- parent
Key StringId - The key ID of the parent wrapping key.
- state String
- The state of the encryption key. One of
pre-activation
,active
,deactivated
, ordestroyed
. - type String
- The type of the encryption key. One of
customer-provided-root-key
,environment-root-key
, ortenant-master-key
. - updated
At String - The ISO 8601 formatted date the encryption key was updated.
Package Details
- Repository
- Auth0 pulumi/pulumi-auth0
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
auth0
Terraform Provider.