scaleway.KeyManagerKey
Explore with Pulumi AI
Provides a Scaleway Key Manager Key resource.
This resource allows you to create and manage cryptographic keys in Scaleway Key Manager (KMS).
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@pulumiverse/scaleway";
const main = new scaleway.KeyManagerKey("main", {
name: "my-kms-key",
region: "fr-par",
projectId: "your-project-id",
usage: "symmetric_encryption",
description: "Key for encrypting secrets",
tags: [
"env:prod",
"kms",
],
unprotected: true,
rotationPolicy: {
rotationPeriod: "720h",
},
});
import pulumi
import pulumiverse_scaleway as scaleway
main = scaleway.KeyManagerKey("main",
name="my-kms-key",
region="fr-par",
project_id="your-project-id",
usage="symmetric_encryption",
description="Key for encrypting secrets",
tags=[
"env:prod",
"kms",
],
unprotected=True,
rotation_policy={
"rotation_period": "720h",
})
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := scaleway.NewKeyManagerKey(ctx, "main", &scaleway.KeyManagerKeyArgs{
Name: pulumi.String("my-kms-key"),
Region: pulumi.String("fr-par"),
ProjectId: pulumi.String("your-project-id"),
Usage: pulumi.String("symmetric_encryption"),
Description: pulumi.String("Key for encrypting secrets"),
Tags: pulumi.StringArray{
pulumi.String("env:prod"),
pulumi.String("kms"),
},
Unprotected: pulumi.Bool(true),
RotationPolicy: &scaleway.KeyManagerKeyRotationPolicyArgs{
RotationPeriod: pulumi.String("720h"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scaleway = Pulumiverse.Scaleway;
return await Deployment.RunAsync(() =>
{
var main = new Scaleway.KeyManagerKey("main", new()
{
Name = "my-kms-key",
Region = "fr-par",
ProjectId = "your-project-id",
Usage = "symmetric_encryption",
Description = "Key for encrypting secrets",
Tags = new[]
{
"env:prod",
"kms",
},
Unprotected = true,
RotationPolicy = new Scaleway.Inputs.KeyManagerKeyRotationPolicyArgs
{
RotationPeriod = "720h",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scaleway.KeyManagerKey;
import com.pulumi.scaleway.KeyManagerKeyArgs;
import com.pulumi.scaleway.inputs.KeyManagerKeyRotationPolicyArgs;
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 main = new KeyManagerKey("main", KeyManagerKeyArgs.builder()
.name("my-kms-key")
.region("fr-par")
.projectId("your-project-id")
.usage("symmetric_encryption")
.description("Key for encrypting secrets")
.tags(
"env:prod",
"kms")
.unprotected(true)
.rotationPolicy(KeyManagerKeyRotationPolicyArgs.builder()
.rotationPeriod("720h")
.build())
.build());
}
}
resources:
main:
type: scaleway:KeyManagerKey
properties:
name: my-kms-key
region: fr-par
projectId: your-project-id
usage: symmetric_encryption
description: Key for encrypting secrets
tags:
- env:prod
- kms
unprotected: true
rotationPolicy:
rotationPeriod: 720h
Notes
- Protection: By default, keys are protected and cannot be deleted. To allow deletion, set
unprotected = true
when creating the key. - Rotation Policy: The
rotation_policy
block allows you to set automatic rotation for your key. - Origin: The
origin
argument is optional and defaults toscaleway_kms
. Useexternal
if you want to import an external key (see Scaleway documentation for details). - Project and Region: If not specified,
project_id
andregion
will default to the provider configuration.
Example: Asymmetric Key
import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@pulumiverse/scaleway";
const asym = new scaleway.KeyManagerKey("asym", {
name: "asymmetric-key",
region: "fr-par",
usage: "asymmetric_signing",
description: "Key for signing documents",
unprotected: true,
});
import pulumi
import pulumiverse_scaleway as scaleway
asym = scaleway.KeyManagerKey("asym",
name="asymmetric-key",
region="fr-par",
usage="asymmetric_signing",
description="Key for signing documents",
unprotected=True)
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := scaleway.NewKeyManagerKey(ctx, "asym", &scaleway.KeyManagerKeyArgs{
Name: pulumi.String("asymmetric-key"),
Region: pulumi.String("fr-par"),
Usage: pulumi.String("asymmetric_signing"),
Description: pulumi.String("Key for signing documents"),
Unprotected: pulumi.Bool(true),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scaleway = Pulumiverse.Scaleway;
return await Deployment.RunAsync(() =>
{
var asym = new Scaleway.KeyManagerKey("asym", new()
{
Name = "asymmetric-key",
Region = "fr-par",
Usage = "asymmetric_signing",
Description = "Key for signing documents",
Unprotected = true,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scaleway.KeyManagerKey;
import com.pulumi.scaleway.KeyManagerKeyArgs;
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 asym = new KeyManagerKey("asym", KeyManagerKeyArgs.builder()
.name("asymmetric-key")
.region("fr-par")
.usage("asymmetric_signing")
.description("Key for signing documents")
.unprotected(true)
.build());
}
}
resources:
asym:
type: scaleway:KeyManagerKey
properties:
name: asymmetric-key
region: fr-par
usage: asymmetric_signing
description: Key for signing documents
unprotected: true
Create KeyManagerKey Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new KeyManagerKey(name: string, args: KeyManagerKeyArgs, opts?: CustomResourceOptions);
@overload
def KeyManagerKey(resource_name: str,
args: KeyManagerKeyArgs,
opts: Optional[ResourceOptions] = None)
@overload
def KeyManagerKey(resource_name: str,
opts: Optional[ResourceOptions] = None,
usage: Optional[str] = None,
description: Optional[str] = None,
name: Optional[str] = None,
origin: Optional[str] = None,
project_id: Optional[str] = None,
region: Optional[str] = None,
rotation_policy: Optional[KeyManagerKeyRotationPolicyArgs] = None,
tags: Optional[Sequence[str]] = None,
unprotected: Optional[bool] = None)
func NewKeyManagerKey(ctx *Context, name string, args KeyManagerKeyArgs, opts ...ResourceOption) (*KeyManagerKey, error)
public KeyManagerKey(string name, KeyManagerKeyArgs args, CustomResourceOptions? opts = null)
public KeyManagerKey(String name, KeyManagerKeyArgs args)
public KeyManagerKey(String name, KeyManagerKeyArgs args, CustomResourceOptions options)
type: scaleway:KeyManagerKey
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 KeyManagerKeyArgs
- 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 KeyManagerKeyArgs
- 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 KeyManagerKeyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args KeyManagerKeyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args KeyManagerKeyArgs
- 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 keyManagerKeyResource = new Scaleway.KeyManagerKey("keyManagerKeyResource", new()
{
Usage = "string",
Description = "string",
Name = "string",
Origin = "string",
ProjectId = "string",
Region = "string",
RotationPolicy = new Scaleway.Inputs.KeyManagerKeyRotationPolicyArgs
{
NextRotationAt = "string",
RotationPeriod = "string",
},
Tags = new[]
{
"string",
},
Unprotected = false,
});
example, err := scaleway.NewKeyManagerKey(ctx, "keyManagerKeyResource", &scaleway.KeyManagerKeyArgs{
Usage: pulumi.String("string"),
Description: pulumi.String("string"),
Name: pulumi.String("string"),
Origin: pulumi.String("string"),
ProjectId: pulumi.String("string"),
Region: pulumi.String("string"),
RotationPolicy: &scaleway.KeyManagerKeyRotationPolicyArgs{
NextRotationAt: pulumi.String("string"),
RotationPeriod: pulumi.String("string"),
},
Tags: pulumi.StringArray{
pulumi.String("string"),
},
Unprotected: pulumi.Bool(false),
})
var keyManagerKeyResource = new KeyManagerKey("keyManagerKeyResource", KeyManagerKeyArgs.builder()
.usage("string")
.description("string")
.name("string")
.origin("string")
.projectId("string")
.region("string")
.rotationPolicy(KeyManagerKeyRotationPolicyArgs.builder()
.nextRotationAt("string")
.rotationPeriod("string")
.build())
.tags("string")
.unprotected(false)
.build());
key_manager_key_resource = scaleway.KeyManagerKey("keyManagerKeyResource",
usage="string",
description="string",
name="string",
origin="string",
project_id="string",
region="string",
rotation_policy={
"next_rotation_at": "string",
"rotation_period": "string",
},
tags=["string"],
unprotected=False)
const keyManagerKeyResource = new scaleway.KeyManagerKey("keyManagerKeyResource", {
usage: "string",
description: "string",
name: "string",
origin: "string",
projectId: "string",
region: "string",
rotationPolicy: {
nextRotationAt: "string",
rotationPeriod: "string",
},
tags: ["string"],
unprotected: false,
});
type: scaleway:KeyManagerKey
properties:
description: string
name: string
origin: string
projectId: string
region: string
rotationPolicy:
nextRotationAt: string
rotationPeriod: string
tags:
- string
unprotected: false
usage: string
KeyManagerKey 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 KeyManagerKey resource accepts the following input properties:
- Usage string
- – The usage of the key. Valid values are:
- Description string
- – A description for the key.
- Name string
- The name of the key.
- Origin string
- – The origin of the key. Valid values are:
- Project
Id string - – The ID of the project the key belongs to.
- Region string
- The region in which to create the key (e.g.,
fr-par
). - Rotation
Policy Pulumiverse.Scaleway. Inputs. Key Manager Key Rotation Policy - – Rotation policy for the key:
- List<string>
- – A list of tags to assign to the key.
- Unprotected bool
- – If
true
, the key can be deleted. Defaults tofalse
(protected).
- Usage string
- – The usage of the key. Valid values are:
- Description string
- – A description for the key.
- Name string
- The name of the key.
- Origin string
- – The origin of the key. Valid values are:
- Project
Id string - – The ID of the project the key belongs to.
- Region string
- The region in which to create the key (e.g.,
fr-par
). - Rotation
Policy KeyManager Key Rotation Policy Args - – Rotation policy for the key:
- []string
- – A list of tags to assign to the key.
- Unprotected bool
- – If
true
, the key can be deleted. Defaults tofalse
(protected).
- usage String
- – The usage of the key. Valid values are:
- description String
- – A description for the key.
- name String
- The name of the key.
- origin String
- – The origin of the key. Valid values are:
- project
Id String - – The ID of the project the key belongs to.
- region String
- The region in which to create the key (e.g.,
fr-par
). - rotation
Policy KeyManager Key Rotation Policy - – Rotation policy for the key:
- List<String>
- – A list of tags to assign to the key.
- unprotected Boolean
- – If
true
, the key can be deleted. Defaults tofalse
(protected).
- usage string
- – The usage of the key. Valid values are:
- description string
- – A description for the key.
- name string
- The name of the key.
- origin string
- – The origin of the key. Valid values are:
- project
Id string - – The ID of the project the key belongs to.
- region string
- The region in which to create the key (e.g.,
fr-par
). - rotation
Policy KeyManager Key Rotation Policy - – Rotation policy for the key:
- string[]
- – A list of tags to assign to the key.
- unprotected boolean
- – If
true
, the key can be deleted. Defaults tofalse
(protected).
- usage str
- – The usage of the key. Valid values are:
- description str
- – A description for the key.
- name str
- The name of the key.
- origin str
- – The origin of the key. Valid values are:
- project_
id str - – The ID of the project the key belongs to.
- region str
- The region in which to create the key (e.g.,
fr-par
). - rotation_
policy KeyManager Key Rotation Policy Args - – Rotation policy for the key:
- Sequence[str]
- – A list of tags to assign to the key.
- unprotected bool
- – If
true
, the key can be deleted. Defaults tofalse
(protected).
- usage String
- – The usage of the key. Valid values are:
- description String
- – A description for the key.
- name String
- The name of the key.
- origin String
- – The origin of the key. Valid values are:
- project
Id String - – The ID of the project the key belongs to.
- region String
- The region in which to create the key (e.g.,
fr-par
). - rotation
Policy Property Map - – Rotation policy for the key:
- List<String>
- – A list of tags to assign to the key.
- unprotected Boolean
- – If
true
, the key can be deleted. Defaults tofalse
(protected).
Outputs
All input properties are implicitly available as output properties. Additionally, the KeyManagerKey resource produces the following output properties:
- Created
At string - The date and time when the key was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Locked bool
- Whether the key is locked.
- Protected bool
- Whether the key is protected from deletion.
- Rotated
At string - The date and time when the key was last rotated.
- Rotation
Count int - The number of times the key has been rotated.
- State string
- The state of the key (e.g.,
enabled
). - Updated
At string - The date and time when the key was last updated.
- Created
At string - The date and time when the key was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Locked bool
- Whether the key is locked.
- Protected bool
- Whether the key is protected from deletion.
- Rotated
At string - The date and time when the key was last rotated.
- Rotation
Count int - The number of times the key has been rotated.
- State string
- The state of the key (e.g.,
enabled
). - Updated
At string - The date and time when the key was last updated.
- created
At String - The date and time when the key was created.
- id String
- The provider-assigned unique ID for this managed resource.
- locked Boolean
- Whether the key is locked.
- protected_ Boolean
- Whether the key is protected from deletion.
- rotated
At String - The date and time when the key was last rotated.
- rotation
Count Integer - The number of times the key has been rotated.
- state String
- The state of the key (e.g.,
enabled
). - updated
At String - The date and time when the key was last updated.
- created
At string - The date and time when the key was created.
- id string
- The provider-assigned unique ID for this managed resource.
- locked boolean
- Whether the key is locked.
- protected boolean
- Whether the key is protected from deletion.
- rotated
At string - The date and time when the key was last rotated.
- rotation
Count number - The number of times the key has been rotated.
- state string
- The state of the key (e.g.,
enabled
). - updated
At string - The date and time when the key was last updated.
- created_
at str - The date and time when the key was created.
- id str
- The provider-assigned unique ID for this managed resource.
- locked bool
- Whether the key is locked.
- protected bool
- Whether the key is protected from deletion.
- rotated_
at str - The date and time when the key was last rotated.
- rotation_
count int - The number of times the key has been rotated.
- state str
- The state of the key (e.g.,
enabled
). - updated_
at str - The date and time when the key was last updated.
- created
At String - The date and time when the key was created.
- id String
- The provider-assigned unique ID for this managed resource.
- locked Boolean
- Whether the key is locked.
- protected Boolean
- Whether the key is protected from deletion.
- rotated
At String - The date and time when the key was last rotated.
- rotation
Count Number - The number of times the key has been rotated.
- state String
- The state of the key (e.g.,
enabled
). - updated
At String - The date and time when the key was last updated.
Look up Existing KeyManagerKey Resource
Get an existing KeyManagerKey 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?: KeyManagerKeyState, opts?: CustomResourceOptions): KeyManagerKey
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
created_at: Optional[str] = None,
description: Optional[str] = None,
locked: Optional[bool] = None,
name: Optional[str] = None,
origin: Optional[str] = None,
project_id: Optional[str] = None,
protected: Optional[bool] = None,
region: Optional[str] = None,
rotated_at: Optional[str] = None,
rotation_count: Optional[int] = None,
rotation_policy: Optional[KeyManagerKeyRotationPolicyArgs] = None,
state: Optional[str] = None,
tags: Optional[Sequence[str]] = None,
unprotected: Optional[bool] = None,
updated_at: Optional[str] = None,
usage: Optional[str] = None) -> KeyManagerKey
func GetKeyManagerKey(ctx *Context, name string, id IDInput, state *KeyManagerKeyState, opts ...ResourceOption) (*KeyManagerKey, error)
public static KeyManagerKey Get(string name, Input<string> id, KeyManagerKeyState? state, CustomResourceOptions? opts = null)
public static KeyManagerKey get(String name, Output<String> id, KeyManagerKeyState state, CustomResourceOptions options)
resources: _: type: scaleway:KeyManagerKey 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.
- Created
At string - The date and time when the key was created.
- Description string
- – A description for the key.
- Locked bool
- Whether the key is locked.
- Name string
- The name of the key.
- Origin string
- – The origin of the key. Valid values are:
- Project
Id string - – The ID of the project the key belongs to.
- Protected bool
- Whether the key is protected from deletion.
- Region string
- The region in which to create the key (e.g.,
fr-par
). - Rotated
At string - The date and time when the key was last rotated.
- Rotation
Count int - The number of times the key has been rotated.
- Rotation
Policy Pulumiverse.Scaleway. Inputs. Key Manager Key Rotation Policy - – Rotation policy for the key:
- State string
- The state of the key (e.g.,
enabled
). - List<string>
- – A list of tags to assign to the key.
- Unprotected bool
- – If
true
, the key can be deleted. Defaults tofalse
(protected). - Updated
At string - The date and time when the key was last updated.
- Usage string
- – The usage of the key. Valid values are:
- Created
At string - The date and time when the key was created.
- Description string
- – A description for the key.
- Locked bool
- Whether the key is locked.
- Name string
- The name of the key.
- Origin string
- – The origin of the key. Valid values are:
- Project
Id string - – The ID of the project the key belongs to.
- Protected bool
- Whether the key is protected from deletion.
- Region string
- The region in which to create the key (e.g.,
fr-par
). - Rotated
At string - The date and time when the key was last rotated.
- Rotation
Count int - The number of times the key has been rotated.
- Rotation
Policy KeyManager Key Rotation Policy Args - – Rotation policy for the key:
- State string
- The state of the key (e.g.,
enabled
). - []string
- – A list of tags to assign to the key.
- Unprotected bool
- – If
true
, the key can be deleted. Defaults tofalse
(protected). - Updated
At string - The date and time when the key was last updated.
- Usage string
- – The usage of the key. Valid values are:
- created
At String - The date and time when the key was created.
- description String
- – A description for the key.
- locked Boolean
- Whether the key is locked.
- name String
- The name of the key.
- origin String
- – The origin of the key. Valid values are:
- project
Id String - – The ID of the project the key belongs to.
- protected_ Boolean
- Whether the key is protected from deletion.
- region String
- The region in which to create the key (e.g.,
fr-par
). - rotated
At String - The date and time when the key was last rotated.
- rotation
Count Integer - The number of times the key has been rotated.
- rotation
Policy KeyManager Key Rotation Policy - – Rotation policy for the key:
- state String
- The state of the key (e.g.,
enabled
). - List<String>
- – A list of tags to assign to the key.
- unprotected Boolean
- – If
true
, the key can be deleted. Defaults tofalse
(protected). - updated
At String - The date and time when the key was last updated.
- usage String
- – The usage of the key. Valid values are:
- created
At string - The date and time when the key was created.
- description string
- – A description for the key.
- locked boolean
- Whether the key is locked.
- name string
- The name of the key.
- origin string
- – The origin of the key. Valid values are:
- project
Id string - – The ID of the project the key belongs to.
- protected boolean
- Whether the key is protected from deletion.
- region string
- The region in which to create the key (e.g.,
fr-par
). - rotated
At string - The date and time when the key was last rotated.
- rotation
Count number - The number of times the key has been rotated.
- rotation
Policy KeyManager Key Rotation Policy - – Rotation policy for the key:
- state string
- The state of the key (e.g.,
enabled
). - string[]
- – A list of tags to assign to the key.
- unprotected boolean
- – If
true
, the key can be deleted. Defaults tofalse
(protected). - updated
At string - The date and time when the key was last updated.
- usage string
- – The usage of the key. Valid values are:
- created_
at str - The date and time when the key was created.
- description str
- – A description for the key.
- locked bool
- Whether the key is locked.
- name str
- The name of the key.
- origin str
- – The origin of the key. Valid values are:
- project_
id str - – The ID of the project the key belongs to.
- protected bool
- Whether the key is protected from deletion.
- region str
- The region in which to create the key (e.g.,
fr-par
). - rotated_
at str - The date and time when the key was last rotated.
- rotation_
count int - The number of times the key has been rotated.
- rotation_
policy KeyManager Key Rotation Policy Args - – Rotation policy for the key:
- state str
- The state of the key (e.g.,
enabled
). - Sequence[str]
- – A list of tags to assign to the key.
- unprotected bool
- – If
true
, the key can be deleted. Defaults tofalse
(protected). - updated_
at str - The date and time when the key was last updated.
- usage str
- – The usage of the key. Valid values are:
- created
At String - The date and time when the key was created.
- description String
- – A description for the key.
- locked Boolean
- Whether the key is locked.
- name String
- The name of the key.
- origin String
- – The origin of the key. Valid values are:
- project
Id String - – The ID of the project the key belongs to.
- protected Boolean
- Whether the key is protected from deletion.
- region String
- The region in which to create the key (e.g.,
fr-par
). - rotated
At String - The date and time when the key was last rotated.
- rotation
Count Number - The number of times the key has been rotated.
- rotation
Policy Property Map - – Rotation policy for the key:
- state String
- The state of the key (e.g.,
enabled
). - List<String>
- – A list of tags to assign to the key.
- unprotected Boolean
- – If
true
, the key can be deleted. Defaults tofalse
(protected). - updated
At String - The date and time when the key was last updated.
- usage String
- – The usage of the key. Valid values are:
Supporting Types
KeyManagerKeyRotationPolicy, KeyManagerKeyRotationPolicyArgs
- Next
Rotation stringAt - The date and time of the next scheduled rotation.
- Rotation
Period string - – The period between key rotations (e.g.,
"720h"
for 30 days).
- Next
Rotation stringAt - The date and time of the next scheduled rotation.
- Rotation
Period string - – The period between key rotations (e.g.,
"720h"
for 30 days).
- next
Rotation StringAt - The date and time of the next scheduled rotation.
- rotation
Period String - – The period between key rotations (e.g.,
"720h"
for 30 days).
- next
Rotation stringAt - The date and time of the next scheduled rotation.
- rotation
Period string - – The period between key rotations (e.g.,
"720h"
for 30 days).
- next_
rotation_ strat - The date and time of the next scheduled rotation.
- rotation_
period str - – The period between key rotations (e.g.,
"720h"
for 30 days).
- next
Rotation StringAt - The date and time of the next scheduled rotation.
- rotation
Period String - – The period between key rotations (e.g.,
"720h"
for 30 days).
Import
You can import a key using its ID and region:
$ pulumi import scaleway:index/keyManagerKey:KeyManagerKey main fr-par/11111111-2222-3333-4444-555555555555
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- scaleway pulumiverse/pulumi-scaleway
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
scaleway
Terraform Provider.