oci.Redis.RedisClusterCreateIdentityToken
Explore with Pulumi AI
This resource provides the Redis Cluster Create Identity Token resource in Oracle Cloud Infrastructure Redis service.
Generates an identity token to sign in with the specified redis user for the redis cluster
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testRedisClusterCreateIdentityToken = new oci.redis.RedisClusterCreateIdentityToken("test_redis_cluster_create_identity_token", {
publicKey: redisClusterCreateIdentityTokenPublicKey,
redisClusterId: testRedisCluster.id,
redisUser: redisClusterCreateIdentityTokenRedisUser,
definedTags: redisClusterCreateIdentityTokenDefinedTags,
freeformTags: redisClusterCreateIdentityTokenFreeformTags,
});
import pulumi
import pulumi_oci as oci
test_redis_cluster_create_identity_token = oci.redis.RedisClusterCreateIdentityToken("test_redis_cluster_create_identity_token",
public_key=redis_cluster_create_identity_token_public_key,
redis_cluster_id=test_redis_cluster["id"],
redis_user=redis_cluster_create_identity_token_redis_user,
defined_tags=redis_cluster_create_identity_token_defined_tags,
freeform_tags=redis_cluster_create_identity_token_freeform_tags)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v3/go/oci/redis"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := redis.NewRedisClusterCreateIdentityToken(ctx, "test_redis_cluster_create_identity_token", &redis.RedisClusterCreateIdentityTokenArgs{
PublicKey: pulumi.Any(redisClusterCreateIdentityTokenPublicKey),
RedisClusterId: pulumi.Any(testRedisCluster.Id),
RedisUser: pulumi.Any(redisClusterCreateIdentityTokenRedisUser),
DefinedTags: pulumi.Any(redisClusterCreateIdentityTokenDefinedTags),
FreeformTags: pulumi.Any(redisClusterCreateIdentityTokenFreeformTags),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testRedisClusterCreateIdentityToken = new Oci.Redis.RedisClusterCreateIdentityToken("test_redis_cluster_create_identity_token", new()
{
PublicKey = redisClusterCreateIdentityTokenPublicKey,
RedisClusterId = testRedisCluster.Id,
RedisUser = redisClusterCreateIdentityTokenRedisUser,
DefinedTags = redisClusterCreateIdentityTokenDefinedTags,
FreeformTags = redisClusterCreateIdentityTokenFreeformTags,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Redis.RedisClusterCreateIdentityToken;
import com.pulumi.oci.Redis.RedisClusterCreateIdentityTokenArgs;
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 testRedisClusterCreateIdentityToken = new RedisClusterCreateIdentityToken("testRedisClusterCreateIdentityToken", RedisClusterCreateIdentityTokenArgs.builder()
.publicKey(redisClusterCreateIdentityTokenPublicKey)
.redisClusterId(testRedisCluster.id())
.redisUser(redisClusterCreateIdentityTokenRedisUser)
.definedTags(redisClusterCreateIdentityTokenDefinedTags)
.freeformTags(redisClusterCreateIdentityTokenFreeformTags)
.build());
}
}
resources:
testRedisClusterCreateIdentityToken:
type: oci:Redis:RedisClusterCreateIdentityToken
name: test_redis_cluster_create_identity_token
properties:
publicKey: ${redisClusterCreateIdentityTokenPublicKey}
redisClusterId: ${testRedisCluster.id}
redisUser: ${redisClusterCreateIdentityTokenRedisUser}
definedTags: ${redisClusterCreateIdentityTokenDefinedTags}
freeformTags: ${redisClusterCreateIdentityTokenFreeformTags}
Create RedisClusterCreateIdentityToken Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new RedisClusterCreateIdentityToken(name: string, args: RedisClusterCreateIdentityTokenArgs, opts?: CustomResourceOptions);
@overload
def RedisClusterCreateIdentityToken(resource_name: str,
args: RedisClusterCreateIdentityTokenArgs,
opts: Optional[ResourceOptions] = None)
@overload
def RedisClusterCreateIdentityToken(resource_name: str,
opts: Optional[ResourceOptions] = None,
public_key: Optional[str] = None,
redis_cluster_id: Optional[str] = None,
redis_user: Optional[str] = None,
defined_tags: Optional[Mapping[str, str]] = None,
freeform_tags: Optional[Mapping[str, str]] = None)
func NewRedisClusterCreateIdentityToken(ctx *Context, name string, args RedisClusterCreateIdentityTokenArgs, opts ...ResourceOption) (*RedisClusterCreateIdentityToken, error)
public RedisClusterCreateIdentityToken(string name, RedisClusterCreateIdentityTokenArgs args, CustomResourceOptions? opts = null)
public RedisClusterCreateIdentityToken(String name, RedisClusterCreateIdentityTokenArgs args)
public RedisClusterCreateIdentityToken(String name, RedisClusterCreateIdentityTokenArgs args, CustomResourceOptions options)
type: oci:Redis:RedisClusterCreateIdentityToken
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 RedisClusterCreateIdentityTokenArgs
- 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 RedisClusterCreateIdentityTokenArgs
- 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 RedisClusterCreateIdentityTokenArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RedisClusterCreateIdentityTokenArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RedisClusterCreateIdentityTokenArgs
- 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 redisClusterCreateIdentityTokenResource = new Oci.Redis.RedisClusterCreateIdentityToken("redisClusterCreateIdentityTokenResource", new()
{
PublicKey = "string",
RedisClusterId = "string",
RedisUser = "string",
DefinedTags =
{
{ "string", "string" },
},
FreeformTags =
{
{ "string", "string" },
},
});
example, err := redis.NewRedisClusterCreateIdentityToken(ctx, "redisClusterCreateIdentityTokenResource", &redis.RedisClusterCreateIdentityTokenArgs{
PublicKey: pulumi.String("string"),
RedisClusterId: pulumi.String("string"),
RedisUser: pulumi.String("string"),
DefinedTags: pulumi.StringMap{
"string": pulumi.String("string"),
},
FreeformTags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var redisClusterCreateIdentityTokenResource = new RedisClusterCreateIdentityToken("redisClusterCreateIdentityTokenResource", RedisClusterCreateIdentityTokenArgs.builder()
.publicKey("string")
.redisClusterId("string")
.redisUser("string")
.definedTags(Map.of("string", "string"))
.freeformTags(Map.of("string", "string"))
.build());
redis_cluster_create_identity_token_resource = oci.redis.RedisClusterCreateIdentityToken("redisClusterCreateIdentityTokenResource",
public_key="string",
redis_cluster_id="string",
redis_user="string",
defined_tags={
"string": "string",
},
freeform_tags={
"string": "string",
})
const redisClusterCreateIdentityTokenResource = new oci.redis.RedisClusterCreateIdentityToken("redisClusterCreateIdentityTokenResource", {
publicKey: "string",
redisClusterId: "string",
redisUser: "string",
definedTags: {
string: "string",
},
freeformTags: {
string: "string",
},
});
type: oci:Redis:RedisClusterCreateIdentityToken
properties:
definedTags:
string: string
freeformTags:
string: string
publicKey: string
redisClusterId: string
redisUser: string
RedisClusterCreateIdentityToken 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 RedisClusterCreateIdentityToken resource accepts the following input properties:
- Public
Key string - User public key pair
- Redis
Cluster stringId - The OCID of the cluster.
- Redis
User string Redis User generating identity token.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- Dictionary<string, string>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Dictionary<string, string>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- Public
Key string - User public key pair
- Redis
Cluster stringId - The OCID of the cluster.
- Redis
User string Redis User generating identity token.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- map[string]string
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- map[string]string
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- public
Key String - User public key pair
- redis
Cluster StringId - The OCID of the cluster.
- redis
User String Redis User generating identity token.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- Map<String,String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Map<String,String>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- public
Key string - User public key pair
- redis
Cluster stringId - The OCID of the cluster.
- redis
User string Redis User generating identity token.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- {[key: string]: string}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- {[key: string]: string}
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- public_
key str - User public key pair
- redis_
cluster_ strid - The OCID of the cluster.
- redis_
user str Redis User generating identity token.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- Mapping[str, str]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Mapping[str, str]
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- public
Key String - User public key pair
- redis
Cluster StringId - The OCID of the cluster.
- redis
User String Redis User generating identity token.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- Map<String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Map<String>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
Outputs
All input properties are implicitly available as output properties. Additionally, the RedisClusterCreateIdentityToken resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Identity
Token string - Generated Identity token
- Id string
- The provider-assigned unique ID for this managed resource.
- Identity
Token string - Generated Identity token
- id String
- The provider-assigned unique ID for this managed resource.
- identity
Token String - Generated Identity token
- id string
- The provider-assigned unique ID for this managed resource.
- identity
Token string - Generated Identity token
- id str
- The provider-assigned unique ID for this managed resource.
- identity_
token str - Generated Identity token
- id String
- The provider-assigned unique ID for this managed resource.
- identity
Token String - Generated Identity token
Look up Existing RedisClusterCreateIdentityToken Resource
Get an existing RedisClusterCreateIdentityToken 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?: RedisClusterCreateIdentityTokenState, opts?: CustomResourceOptions): RedisClusterCreateIdentityToken
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
defined_tags: Optional[Mapping[str, str]] = None,
freeform_tags: Optional[Mapping[str, str]] = None,
identity_token: Optional[str] = None,
public_key: Optional[str] = None,
redis_cluster_id: Optional[str] = None,
redis_user: Optional[str] = None) -> RedisClusterCreateIdentityToken
func GetRedisClusterCreateIdentityToken(ctx *Context, name string, id IDInput, state *RedisClusterCreateIdentityTokenState, opts ...ResourceOption) (*RedisClusterCreateIdentityToken, error)
public static RedisClusterCreateIdentityToken Get(string name, Input<string> id, RedisClusterCreateIdentityTokenState? state, CustomResourceOptions? opts = null)
public static RedisClusterCreateIdentityToken get(String name, Output<String> id, RedisClusterCreateIdentityTokenState state, CustomResourceOptions options)
resources: _: type: oci:Redis:RedisClusterCreateIdentityToken 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.
- Dictionary<string, string>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Dictionary<string, string>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- Identity
Token string - Generated Identity token
- Public
Key string - User public key pair
- Redis
Cluster stringId - The OCID of the cluster.
- Redis
User string Redis User generating identity token.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- map[string]string
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- map[string]string
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- Identity
Token string - Generated Identity token
- Public
Key string - User public key pair
- Redis
Cluster stringId - The OCID of the cluster.
- Redis
User string Redis User generating identity token.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- Map<String,String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Map<String,String>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- identity
Token String - Generated Identity token
- public
Key String - User public key pair
- redis
Cluster StringId - The OCID of the cluster.
- redis
User String Redis User generating identity token.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- {[key: string]: string}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- {[key: string]: string}
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- identity
Token string - Generated Identity token
- public
Key string - User public key pair
- redis
Cluster stringId - The OCID of the cluster.
- redis
User string Redis User generating identity token.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- Mapping[str, str]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Mapping[str, str]
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- identity_
token str - Generated Identity token
- public_
key str - User public key pair
- redis_
cluster_ strid - The OCID of the cluster.
- redis_
user str Redis User generating identity token.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- Map<String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Map<String>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- identity
Token String - Generated Identity token
- public
Key String - User public key pair
- redis
Cluster StringId - The OCID of the cluster.
- redis
User String Redis User generating identity token.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
Import
Import is not supported for this resource.
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.