published on Saturday, Aug 8, 2026 by Formal
published on Saturday, Aug 8, 2026 by Formal
Register a KMS key encryption key (KEK) for HTTP policy token encryption on a Connector.
Create ConnectorTokenEncryptionKey Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ConnectorTokenEncryptionKey(name: string, args: ConnectorTokenEncryptionKeyArgs, opts?: CustomResourceOptions);@overload
def ConnectorTokenEncryptionKey(resource_name: str,
args: ConnectorTokenEncryptionKeyArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ConnectorTokenEncryptionKey(resource_name: str,
opts: Optional[ResourceOptions] = None,
connector_id: Optional[str] = None,
key_id: Optional[str] = None,
key_provider: Optional[str] = None)func NewConnectorTokenEncryptionKey(ctx *Context, name string, args ConnectorTokenEncryptionKeyArgs, opts ...ResourceOption) (*ConnectorTokenEncryptionKey, error)public ConnectorTokenEncryptionKey(string name, ConnectorTokenEncryptionKeyArgs args, CustomResourceOptions? opts = null)
public ConnectorTokenEncryptionKey(String name, ConnectorTokenEncryptionKeyArgs args)
public ConnectorTokenEncryptionKey(String name, ConnectorTokenEncryptionKeyArgs args, CustomResourceOptions options)
type: formal:ConnectorTokenEncryptionKey
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "formal_connector_token_encryption_key" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args ConnectorTokenEncryptionKeyArgs
- 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 ConnectorTokenEncryptionKeyArgs
- 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 ConnectorTokenEncryptionKeyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ConnectorTokenEncryptionKeyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ConnectorTokenEncryptionKeyArgs
- 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 connectorTokenEncryptionKeyResource = new Pulumi.ConnectorTokenEncryptionKey("connectorTokenEncryptionKeyResource", new()
{
ConnectorId = "string",
KeyId = "string",
KeyProvider = "string",
});
example, err := formal.NewConnectorTokenEncryptionKey(ctx, "connectorTokenEncryptionKeyResource", &formal.ConnectorTokenEncryptionKeyArgs{
ConnectorId: pulumi.String("string"),
KeyId: pulumi.String("string"),
KeyProvider: pulumi.String("string"),
})
resource "formal_connector_token_encryption_key" "connectorTokenEncryptionKeyResource" {
lifecycle {
create_before_destroy = true
}
connector_id = "string"
key_id = "string"
key_provider = "string"
}
var connectorTokenEncryptionKeyResource = new ConnectorTokenEncryptionKey("connectorTokenEncryptionKeyResource", ConnectorTokenEncryptionKeyArgs.builder()
.connectorId("string")
.keyId("string")
.keyProvider("string")
.build());
connector_token_encryption_key_resource = formal.ConnectorTokenEncryptionKey("connectorTokenEncryptionKeyResource",
connector_id="string",
key_id="string",
key_provider="string")
const connectorTokenEncryptionKeyResource = new formal.ConnectorTokenEncryptionKey("connectorTokenEncryptionKeyResource", {
connectorId: "string",
keyId: "string",
keyProvider: "string",
});
type: formal:ConnectorTokenEncryptionKey
properties:
connectorId: string
keyId: string
keyProvider: string
ConnectorTokenEncryptionKey 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 ConnectorTokenEncryptionKey resource accepts the following input properties:
- Connector
Id string - The ID of the Connector this token encryption key is linked to.
- Key
Id string - Provider-native key identifier (AWS KMS ARN, GCP CryptoKey resource name, or Azure Key Vault key URI).
- Key
Provider string - The KMS provider. One of 'aws-kms', 'gcp-kms', or 'azure-key-vault'.
- Connector
Id string - The ID of the Connector this token encryption key is linked to.
- Key
Id string - Provider-native key identifier (AWS KMS ARN, GCP CryptoKey resource name, or Azure Key Vault key URI).
- Key
Provider string - The KMS provider. One of 'aws-kms', 'gcp-kms', or 'azure-key-vault'.
- connector_
id string - The ID of the Connector this token encryption key is linked to.
- key_
id string - Provider-native key identifier (AWS KMS ARN, GCP CryptoKey resource name, or Azure Key Vault key URI).
- key_
provider string - The KMS provider. One of 'aws-kms', 'gcp-kms', or 'azure-key-vault'.
- connector
Id String - The ID of the Connector this token encryption key is linked to.
- key
Id String - Provider-native key identifier (AWS KMS ARN, GCP CryptoKey resource name, or Azure Key Vault key URI).
- key
Provider String - The KMS provider. One of 'aws-kms', 'gcp-kms', or 'azure-key-vault'.
- connector
Id string - The ID of the Connector this token encryption key is linked to.
- key
Id string - Provider-native key identifier (AWS KMS ARN, GCP CryptoKey resource name, or Azure Key Vault key URI).
- key
Provider string - The KMS provider. One of 'aws-kms', 'gcp-kms', or 'azure-key-vault'.
- connector_
id str - The ID of the Connector this token encryption key is linked to.
- key_
id str - Provider-native key identifier (AWS KMS ARN, GCP CryptoKey resource name, or Azure Key Vault key URI).
- key_
provider str - The KMS provider. One of 'aws-kms', 'gcp-kms', or 'azure-key-vault'.
- connector
Id String - The ID of the Connector this token encryption key is linked to.
- key
Id String - Provider-native key identifier (AWS KMS ARN, GCP CryptoKey resource name, or Azure Key Vault key URI).
- key
Provider String - The KMS provider. One of 'aws-kms', 'gcp-kms', or 'azure-key-vault'.
Outputs
All input properties are implicitly available as output properties. Additionally, the ConnectorTokenEncryptionKey resource produces the following output properties:
- created_
at string - When the connector token encryption key was created.
- id string
- The provider-assigned unique ID for this managed resource.
- updated_
at string - Last update time.
- created_
at str - When the connector token encryption key was created.
- id str
- The provider-assigned unique ID for this managed resource.
- updated_
at str - Last update time.
Look up Existing ConnectorTokenEncryptionKey Resource
Get an existing ConnectorTokenEncryptionKey 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?: ConnectorTokenEncryptionKeyState, opts?: CustomResourceOptions): ConnectorTokenEncryptionKey@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
connector_id: Optional[str] = None,
created_at: Optional[str] = None,
key_id: Optional[str] = None,
key_provider: Optional[str] = None,
updated_at: Optional[str] = None) -> ConnectorTokenEncryptionKeyfunc GetConnectorTokenEncryptionKey(ctx *Context, name string, id IDInput, state *ConnectorTokenEncryptionKeyState, opts ...ResourceOption) (*ConnectorTokenEncryptionKey, error)public static ConnectorTokenEncryptionKey Get(string name, Input<string> id, ConnectorTokenEncryptionKeyState? state, CustomResourceOptions? opts = null)public static ConnectorTokenEncryptionKey get(String name, Output<String> id, ConnectorTokenEncryptionKeyState state, CustomResourceOptions options)resources: _: type: formal:ConnectorTokenEncryptionKey get: id: ${id}import {
to = formal_connector_token_encryption_key.example
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.
- Connector
Id string - The ID of the Connector this token encryption key is linked to.
- Created
At string - When the connector token encryption key was created.
- Key
Id string - Provider-native key identifier (AWS KMS ARN, GCP CryptoKey resource name, or Azure Key Vault key URI).
- Key
Provider string - The KMS provider. One of 'aws-kms', 'gcp-kms', or 'azure-key-vault'.
- Updated
At string - Last update time.
- Connector
Id string - The ID of the Connector this token encryption key is linked to.
- Created
At string - When the connector token encryption key was created.
- Key
Id string - Provider-native key identifier (AWS KMS ARN, GCP CryptoKey resource name, or Azure Key Vault key URI).
- Key
Provider string - The KMS provider. One of 'aws-kms', 'gcp-kms', or 'azure-key-vault'.
- Updated
At string - Last update time.
- connector_
id string - The ID of the Connector this token encryption key is linked to.
- created_
at string - When the connector token encryption key was created.
- key_
id string - Provider-native key identifier (AWS KMS ARN, GCP CryptoKey resource name, or Azure Key Vault key URI).
- key_
provider string - The KMS provider. One of 'aws-kms', 'gcp-kms', or 'azure-key-vault'.
- updated_
at string - Last update time.
- connector
Id String - The ID of the Connector this token encryption key is linked to.
- created
At String - When the connector token encryption key was created.
- key
Id String - Provider-native key identifier (AWS KMS ARN, GCP CryptoKey resource name, or Azure Key Vault key URI).
- key
Provider String - The KMS provider. One of 'aws-kms', 'gcp-kms', or 'azure-key-vault'.
- updated
At String - Last update time.
- connector
Id string - The ID of the Connector this token encryption key is linked to.
- created
At string - When the connector token encryption key was created.
- key
Id string - Provider-native key identifier (AWS KMS ARN, GCP CryptoKey resource name, or Azure Key Vault key URI).
- key
Provider string - The KMS provider. One of 'aws-kms', 'gcp-kms', or 'azure-key-vault'.
- updated
At string - Last update time.
- connector_
id str - The ID of the Connector this token encryption key is linked to.
- created_
at str - When the connector token encryption key was created.
- key_
id str - Provider-native key identifier (AWS KMS ARN, GCP CryptoKey resource name, or Azure Key Vault key URI).
- key_
provider str - The KMS provider. One of 'aws-kms', 'gcp-kms', or 'azure-key-vault'.
- updated_
at str - Last update time.
- connector
Id String - The ID of the Connector this token encryption key is linked to.
- created
At String - When the connector token encryption key was created.
- key
Id String - Provider-native key identifier (AWS KMS ARN, GCP CryptoKey resource name, or Azure Key Vault key URI).
- key
Provider String - The KMS provider. One of 'aws-kms', 'gcp-kms', or 'azure-key-vault'.
- updated
At String - Last update time.
Package Details
- Repository
- formal formalco/pulumi-formal
- License
- MPL-2.0
- Notes
- This Pulumi package is based on the
formalTerraform Provider.
published on Saturday, Aug 8, 2026 by Formal