This package is deprecated. We recommend using the new Confluent Cloud package.
confluent.ApiKey
Explore with Pulumi AI
This package is deprecated. We recommend using the new Confluent Cloud package.
Create ApiKey Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ApiKey(name: string, args: ApiKeyArgs, opts?: CustomResourceOptions);
@overload
def ApiKey(resource_name: str,
args: ApiKeyArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ApiKey(resource_name: str,
opts: Optional[ResourceOptions] = None,
environment_id: Optional[str] = None,
cluster_id: Optional[str] = None,
description: Optional[str] = None,
logical_clusters: Optional[Sequence[str]] = None,
user_id: Optional[int] = None)
func NewApiKey(ctx *Context, name string, args ApiKeyArgs, opts ...ResourceOption) (*ApiKey, error)
public ApiKey(string name, ApiKeyArgs args, CustomResourceOptions? opts = null)
public ApiKey(String name, ApiKeyArgs args)
public ApiKey(String name, ApiKeyArgs args, CustomResourceOptions options)
type: confluent:ApiKey
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 ApiKeyArgs
- 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 ApiKeyArgs
- 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 ApiKeyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ApiKeyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ApiKeyArgs
- 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 apiKeyResource = new Confluent.ApiKey("apiKeyResource", new()
{
EnvironmentId = "string",
ClusterId = "string",
Description = "string",
LogicalClusters = new[]
{
"string",
},
UserId = 0,
});
example, err := confluent.NewApiKey(ctx, "apiKeyResource", &confluent.ApiKeyArgs{
EnvironmentId: pulumi.String("string"),
ClusterId: pulumi.String("string"),
Description: pulumi.String("string"),
LogicalClusters: pulumi.StringArray{
pulumi.String("string"),
},
UserId: pulumi.Int(0),
})
var apiKeyResource = new ApiKey("apiKeyResource", ApiKeyArgs.builder()
.environmentId("string")
.clusterId("string")
.description("string")
.logicalClusters("string")
.userId(0)
.build());
api_key_resource = confluent.ApiKey("apiKeyResource",
environment_id="string",
cluster_id="string",
description="string",
logical_clusters=["string"],
user_id=0)
const apiKeyResource = new confluent.ApiKey("apiKeyResource", {
environmentId: "string",
clusterId: "string",
description: "string",
logicalClusters: ["string"],
userId: 0,
});
type: confluent:ApiKey
properties:
clusterId: string
description: string
environmentId: string
logicalClusters:
- string
userId: 0
ApiKey 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 ApiKey resource accepts the following input properties:
- Environment
Id string - Environment ID
- Cluster
Id string - Description string
- Description
- Logical
Clusters List<string> - Logical Cluster ID List to create API Key
- User
Id int - User ID
- Environment
Id string - Environment ID
- Cluster
Id string - Description string
- Description
- Logical
Clusters []string - Logical Cluster ID List to create API Key
- User
Id int - User ID
- environment
Id String - Environment ID
- cluster
Id String - description String
- Description
- logical
Clusters List<String> - Logical Cluster ID List to create API Key
- user
Id Integer - User ID
- environment
Id string - Environment ID
- cluster
Id string - description string
- Description
- logical
Clusters string[] - Logical Cluster ID List to create API Key
- user
Id number - User ID
- environment_
id str - Environment ID
- cluster_
id str - description str
- Description
- logical_
clusters Sequence[str] - Logical Cluster ID List to create API Key
- user_
id int - User ID
- environment
Id String - Environment ID
- cluster
Id String - description String
- Description
- logical
Clusters List<String> - Logical Cluster ID List to create API Key
- user
Id Number - User ID
Outputs
All input properties are implicitly available as output properties. Additionally, the ApiKey resource produces the following output properties:
Look up Existing ApiKey Resource
Get an existing ApiKey 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?: ApiKeyState, opts?: CustomResourceOptions): ApiKey
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cluster_id: Optional[str] = None,
description: Optional[str] = None,
environment_id: Optional[str] = None,
key: Optional[str] = None,
logical_clusters: Optional[Sequence[str]] = None,
secret: Optional[str] = None,
user_id: Optional[int] = None) -> ApiKey
func GetApiKey(ctx *Context, name string, id IDInput, state *ApiKeyState, opts ...ResourceOption) (*ApiKey, error)
public static ApiKey Get(string name, Input<string> id, ApiKeyState? state, CustomResourceOptions? opts = null)
public static ApiKey get(String name, Output<String> id, ApiKeyState 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.
- Cluster
Id string - Description string
- Description
- Environment
Id string - Environment ID
- Key string
- Logical
Clusters List<string> - Logical Cluster ID List to create API Key
- Secret string
- User
Id int - User ID
- Cluster
Id string - Description string
- Description
- Environment
Id string - Environment ID
- Key string
- Logical
Clusters []string - Logical Cluster ID List to create API Key
- Secret string
- User
Id int - User ID
- cluster
Id String - description String
- Description
- environment
Id String - Environment ID
- key String
- logical
Clusters List<String> - Logical Cluster ID List to create API Key
- secret String
- user
Id Integer - User ID
- cluster
Id string - description string
- Description
- environment
Id string - Environment ID
- key string
- logical
Clusters string[] - Logical Cluster ID List to create API Key
- secret string
- user
Id number - User ID
- cluster_
id str - description str
- Description
- environment_
id str - Environment ID
- key str
- logical_
clusters Sequence[str] - Logical Cluster ID List to create API Key
- secret str
- user_
id int - User ID
- cluster
Id String - description String
- Description
- environment
Id String - Environment ID
- key String
- logical
Clusters List<String> - Logical Cluster ID List to create API Key
- secret String
- user
Id Number - User ID
Package Details
- Repository
- Confluent Cloud (Deprecated) pulumi/pulumi-confluent
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
confluent
Terraform Provider.
This package is deprecated. We recommend using the new Confluent Cloud package.