ovh.Okms.Okms
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@ovhcloud/pulumi-ovh";
const newKms = new ovh.okms.Okms("newKms", {
displayName: "terraformed KMS",
ovhSubsidiary: "FR",
region: "eu-west-rbx",
});
import pulumi
import pulumi_ovh as ovh
new_kms = ovh.okms.Okms("newKms",
display_name="terraformed KMS",
ovh_subsidiary="FR",
region="eu-west-rbx")
package main
import (
"github.com/ovh/pulumi-ovh/sdk/v2/go/ovh/okms"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := okms.NewOkms(ctx, "newKms", &okms.OkmsArgs{
DisplayName: pulumi.String("terraformed KMS"),
OvhSubsidiary: pulumi.String("FR"),
Region: pulumi.String("eu-west-rbx"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ovh = Pulumi.Ovh;
return await Deployment.RunAsync(() =>
{
var newKms = new Ovh.Okms.Okms("newKms", new()
{
DisplayName = "terraformed KMS",
OvhSubsidiary = "FR",
Region = "eu-west-rbx",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ovh.Okms.Okms;
import com.pulumi.ovh.Okms.OkmsArgs;
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 newKms = new Okms("newKms", OkmsArgs.builder()
.displayName("terraformed KMS")
.ovhSubsidiary("FR")
.region("eu-west-rbx")
.build());
}
}
resources:
newKms:
type: ovh:Okms:Okms
properties:
displayName: terraformed KMS
ovhSubsidiary: FR
region: eu-west-rbx
Create Okms Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Okms(name: string, args: OkmsArgs, opts?: CustomResourceOptions);
@overload
def Okms(resource_name: str,
args: OkmsArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Okms(resource_name: str,
opts: Optional[ResourceOptions] = None,
ovh_subsidiary: Optional[str] = None,
region: Optional[str] = None,
display_name: Optional[str] = None)
func NewOkms(ctx *Context, name string, args OkmsArgs, opts ...ResourceOption) (*Okms, error)
public Okms(string name, OkmsArgs args, CustomResourceOptions? opts = null)
type: ovh:Okms:Okms
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 OkmsArgs
- 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 OkmsArgs
- 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 OkmsArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args OkmsArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args OkmsArgs
- 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 okmsResource = new Ovh.Okms.Okms("okmsResource", new()
{
OvhSubsidiary = "string",
Region = "string",
DisplayName = "string",
});
example, err := Okms.NewOkms(ctx, "okmsResource", &Okms.OkmsArgs{
OvhSubsidiary: pulumi.String("string"),
Region: pulumi.String("string"),
DisplayName: pulumi.String("string"),
})
var okmsResource = new Okms("okmsResource", OkmsArgs.builder()
.ovhSubsidiary("string")
.region("string")
.displayName("string")
.build());
okms_resource = ovh.okms.Okms("okmsResource",
ovh_subsidiary="string",
region="string",
display_name="string")
const okmsResource = new ovh.okms.Okms("okmsResource", {
ovhSubsidiary: "string",
region: "string",
displayName: "string",
});
type: ovh:Okms:Okms
properties:
displayName: string
ovhSubsidiary: string
region: string
Okms 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 Okms resource accepts the following input properties:
- Ovh
Subsidiary string - OVH subsidiaries
- Region string
- KMS region
- Display
Name string - (String) Resource display name
- Ovh
Subsidiary string - OVH subsidiaries
- Region string
- KMS region
- Display
Name string - (String) Resource display name
- ovh
Subsidiary String - OVH subsidiaries
- region String
- KMS region
- display
Name String - (String) Resource display name
- ovh
Subsidiary string - OVH subsidiaries
- region string
- KMS region
- display
Name string - (String) Resource display name
- ovh_
subsidiary str - OVH subsidiaries
- region str
- KMS region
- display_
name str - (String) Resource display name
- ovh
Subsidiary String - OVH subsidiaries
- region String
- KMS region
- display
Name String - (String) Resource display name
Outputs
All input properties are implicitly available as output properties. Additionally, the Okms resource produces the following output properties:
- Iam
Okms
Iam - (Attributes) IAM resource metadata (see below for nested schema)
- Id string
- The provider-assigned unique ID for this managed resource.
- Kmip
Endpoint string - (String) KMS kmip API endpoint
- Public
Ca string - (String) KMS public CA (Certificate Authority)
- Rest
Endpoint string - (String) KMS rest API endpoint
- Swagger
Endpoint string - (String) KMS rest API swagger UI
- Iam
Okms
Iam - (Attributes) IAM resource metadata (see below for nested schema)
- Id string
- The provider-assigned unique ID for this managed resource.
- Kmip
Endpoint string - (String) KMS kmip API endpoint
- Public
Ca string - (String) KMS public CA (Certificate Authority)
- Rest
Endpoint string - (String) KMS rest API endpoint
- Swagger
Endpoint string - (String) KMS rest API swagger UI
- iam Iam
- (Attributes) IAM resource metadata (see below for nested schema)
- id String
- The provider-assigned unique ID for this managed resource.
- kmip
Endpoint String - (String) KMS kmip API endpoint
- public
Ca String - (String) KMS public CA (Certificate Authority)
- rest
Endpoint String - (String) KMS rest API endpoint
- swagger
Endpoint String - (String) KMS rest API swagger UI
- iam
Okms
Iam - (Attributes) IAM resource metadata (see below for nested schema)
- id string
- The provider-assigned unique ID for this managed resource.
- kmip
Endpoint string - (String) KMS kmip API endpoint
- public
Ca string - (String) KMS public CA (Certificate Authority)
- rest
Endpoint string - (String) KMS rest API endpoint
- swagger
Endpoint string - (String) KMS rest API swagger UI
- iam
okms.
Okms Iam - (Attributes) IAM resource metadata (see below for nested schema)
- id str
- The provider-assigned unique ID for this managed resource.
- kmip_
endpoint str - (String) KMS kmip API endpoint
- public_
ca str - (String) KMS public CA (Certificate Authority)
- rest_
endpoint str - (String) KMS rest API endpoint
- swagger_
endpoint str - (String) KMS rest API swagger UI
- iam Property Map
- (Attributes) IAM resource metadata (see below for nested schema)
- id String
- The provider-assigned unique ID for this managed resource.
- kmip
Endpoint String - (String) KMS kmip API endpoint
- public
Ca String - (String) KMS public CA (Certificate Authority)
- rest
Endpoint String - (String) KMS rest API endpoint
- swagger
Endpoint String - (String) KMS rest API swagger UI
Look up Existing Okms Resource
Get an existing Okms 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?: OkmsState, opts?: CustomResourceOptions): Okms
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
display_name: Optional[str] = None,
iam: Optional[_okms.OkmsIamArgs] = None,
kmip_endpoint: Optional[str] = None,
ovh_subsidiary: Optional[str] = None,
public_ca: Optional[str] = None,
region: Optional[str] = None,
rest_endpoint: Optional[str] = None,
swagger_endpoint: Optional[str] = None) -> Okms
func GetOkms(ctx *Context, name string, id IDInput, state *OkmsState, opts ...ResourceOption) (*Okms, error)
public static Okms Get(string name, Input<string> id, OkmsState? state, CustomResourceOptions? opts = null)
public static Okms get(String name, Output<String> id, OkmsState state, CustomResourceOptions options)
resources: _: type: ovh:Okms:Okms 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.
- Display
Name string - (String) Resource display name
- Iam
Okms
Iam - (Attributes) IAM resource metadata (see below for nested schema)
- Kmip
Endpoint string - (String) KMS kmip API endpoint
- Ovh
Subsidiary string - OVH subsidiaries
- Public
Ca string - (String) KMS public CA (Certificate Authority)
- Region string
- KMS region
- Rest
Endpoint string - (String) KMS rest API endpoint
- Swagger
Endpoint string - (String) KMS rest API swagger UI
- Display
Name string - (String) Resource display name
- Iam
Okms
Iam Args - (Attributes) IAM resource metadata (see below for nested schema)
- Kmip
Endpoint string - (String) KMS kmip API endpoint
- Ovh
Subsidiary string - OVH subsidiaries
- Public
Ca string - (String) KMS public CA (Certificate Authority)
- Region string
- KMS region
- Rest
Endpoint string - (String) KMS rest API endpoint
- Swagger
Endpoint string - (String) KMS rest API swagger UI
- display
Name String - (String) Resource display name
- iam Iam
- (Attributes) IAM resource metadata (see below for nested schema)
- kmip
Endpoint String - (String) KMS kmip API endpoint
- ovh
Subsidiary String - OVH subsidiaries
- public
Ca String - (String) KMS public CA (Certificate Authority)
- region String
- KMS region
- rest
Endpoint String - (String) KMS rest API endpoint
- swagger
Endpoint String - (String) KMS rest API swagger UI
- display
Name string - (String) Resource display name
- iam
Okms
Iam - (Attributes) IAM resource metadata (see below for nested schema)
- kmip
Endpoint string - (String) KMS kmip API endpoint
- ovh
Subsidiary string - OVH subsidiaries
- public
Ca string - (String) KMS public CA (Certificate Authority)
- region string
- KMS region
- rest
Endpoint string - (String) KMS rest API endpoint
- swagger
Endpoint string - (String) KMS rest API swagger UI
- display_
name str - (String) Resource display name
- iam
okms.
Okms Iam Args - (Attributes) IAM resource metadata (see below for nested schema)
- kmip_
endpoint str - (String) KMS kmip API endpoint
- ovh_
subsidiary str - OVH subsidiaries
- public_
ca str - (String) KMS public CA (Certificate Authority)
- region str
- KMS region
- rest_
endpoint str - (String) KMS rest API endpoint
- swagger_
endpoint str - (String) KMS rest API swagger UI
- display
Name String - (String) Resource display name
- iam Property Map
- (Attributes) IAM resource metadata (see below for nested schema)
- kmip
Endpoint String - (String) KMS kmip API endpoint
- ovh
Subsidiary String - OVH subsidiaries
- public
Ca String - (String) KMS public CA (Certificate Authority)
- region String
- KMS region
- rest
Endpoint String - (String) KMS rest API endpoint
- swagger
Endpoint String - (String) KMS rest API swagger UI
Supporting Types
OkmsIam, OkmsIamArgs
- Display
Name string - (String) Resource display name
- Id string
- (String) Unique identifier of the resource
- Dictionary<string, string>
- (Map of String) Resource tags. Tags that were internally computed are prefixed with ovh:
- Urn string
- (String) Unique resource name used in policies
- Display
Name string - (String) Resource display name
- Id string
- (String) Unique identifier of the resource
- map[string]string
- (Map of String) Resource tags. Tags that were internally computed are prefixed with ovh:
- Urn string
- (String) Unique resource name used in policies
- display
Name String - (String) Resource display name
- id String
- (String) Unique identifier of the resource
- Map<String,String>
- (Map of String) Resource tags. Tags that were internally computed are prefixed with ovh:
- urn String
- (String) Unique resource name used in policies
- display
Name string - (String) Resource display name
- id string
- (String) Unique identifier of the resource
- {[key: string]: string}
- (Map of String) Resource tags. Tags that were internally computed are prefixed with ovh:
- urn string
- (String) Unique resource name used in policies
- display_
name str - (String) Resource display name
- id str
- (String) Unique identifier of the resource
- Mapping[str, str]
- (Map of String) Resource tags. Tags that were internally computed are prefixed with ovh:
- urn str
- (String) Unique resource name used in policies
- display
Name String - (String) Resource display name
- id String
- (String) Unique identifier of the resource
- Map<String>
- (Map of String) Resource tags. Tags that were internally computed are prefixed with ovh:
- urn String
- (String) Unique resource name used in policies
Package Details
- Repository
- ovh ovh/pulumi-ovh
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ovh
Terraform Provider.