oci.Redis.RedisClusterDetachOciCacheUser
Explore with Pulumi AI
This resource provides the Redis Cluster Detach Oci Cache User resource in Oracle Cloud Infrastructure Redis service.
Detach existing Oracle Cloud Infrastructure cache users to a redis cluster.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testRedisClusterDetachOciCacheUser = new oci.redis.RedisClusterDetachOciCacheUser("test_redis_cluster_detach_oci_cache_user", {
ociCacheUsers: redisClusterDetachOciCacheUserOciCacheUsers,
redisClusterId: testRedisCluster.id,
});
import pulumi
import pulumi_oci as oci
test_redis_cluster_detach_oci_cache_user = oci.redis.RedisClusterDetachOciCacheUser("test_redis_cluster_detach_oci_cache_user",
oci_cache_users=redis_cluster_detach_oci_cache_user_oci_cache_users,
redis_cluster_id=test_redis_cluster["id"])
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.NewRedisClusterDetachOciCacheUser(ctx, "test_redis_cluster_detach_oci_cache_user", &redis.RedisClusterDetachOciCacheUserArgs{
OciCacheUsers: pulumi.Any(redisClusterDetachOciCacheUserOciCacheUsers),
RedisClusterId: pulumi.Any(testRedisCluster.Id),
})
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 testRedisClusterDetachOciCacheUser = new Oci.Redis.RedisClusterDetachOciCacheUser("test_redis_cluster_detach_oci_cache_user", new()
{
OciCacheUsers = redisClusterDetachOciCacheUserOciCacheUsers,
RedisClusterId = testRedisCluster.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Redis.RedisClusterDetachOciCacheUser;
import com.pulumi.oci.Redis.RedisClusterDetachOciCacheUserArgs;
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 testRedisClusterDetachOciCacheUser = new RedisClusterDetachOciCacheUser("testRedisClusterDetachOciCacheUser", RedisClusterDetachOciCacheUserArgs.builder()
.ociCacheUsers(redisClusterDetachOciCacheUserOciCacheUsers)
.redisClusterId(testRedisCluster.id())
.build());
}
}
resources:
testRedisClusterDetachOciCacheUser:
type: oci:Redis:RedisClusterDetachOciCacheUser
name: test_redis_cluster_detach_oci_cache_user
properties:
ociCacheUsers: ${redisClusterDetachOciCacheUserOciCacheUsers}
redisClusterId: ${testRedisCluster.id}
Create RedisClusterDetachOciCacheUser Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new RedisClusterDetachOciCacheUser(name: string, args: RedisClusterDetachOciCacheUserArgs, opts?: CustomResourceOptions);
@overload
def RedisClusterDetachOciCacheUser(resource_name: str,
args: RedisClusterDetachOciCacheUserArgs,
opts: Optional[ResourceOptions] = None)
@overload
def RedisClusterDetachOciCacheUser(resource_name: str,
opts: Optional[ResourceOptions] = None,
oci_cache_users: Optional[Sequence[str]] = None,
redis_cluster_id: Optional[str] = None)
func NewRedisClusterDetachOciCacheUser(ctx *Context, name string, args RedisClusterDetachOciCacheUserArgs, opts ...ResourceOption) (*RedisClusterDetachOciCacheUser, error)
public RedisClusterDetachOciCacheUser(string name, RedisClusterDetachOciCacheUserArgs args, CustomResourceOptions? opts = null)
public RedisClusterDetachOciCacheUser(String name, RedisClusterDetachOciCacheUserArgs args)
public RedisClusterDetachOciCacheUser(String name, RedisClusterDetachOciCacheUserArgs args, CustomResourceOptions options)
type: oci:Redis:RedisClusterDetachOciCacheUser
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 RedisClusterDetachOciCacheUserArgs
- 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 RedisClusterDetachOciCacheUserArgs
- 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 RedisClusterDetachOciCacheUserArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RedisClusterDetachOciCacheUserArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RedisClusterDetachOciCacheUserArgs
- 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 redisClusterDetachOciCacheUserResource = new Oci.Redis.RedisClusterDetachOciCacheUser("redisClusterDetachOciCacheUserResource", new()
{
OciCacheUsers = new[]
{
"string",
},
RedisClusterId = "string",
});
example, err := redis.NewRedisClusterDetachOciCacheUser(ctx, "redisClusterDetachOciCacheUserResource", &redis.RedisClusterDetachOciCacheUserArgs{
OciCacheUsers: pulumi.StringArray{
pulumi.String("string"),
},
RedisClusterId: pulumi.String("string"),
})
var redisClusterDetachOciCacheUserResource = new RedisClusterDetachOciCacheUser("redisClusterDetachOciCacheUserResource", RedisClusterDetachOciCacheUserArgs.builder()
.ociCacheUsers("string")
.redisClusterId("string")
.build());
redis_cluster_detach_oci_cache_user_resource = oci.redis.RedisClusterDetachOciCacheUser("redisClusterDetachOciCacheUserResource",
oci_cache_users=["string"],
redis_cluster_id="string")
const redisClusterDetachOciCacheUserResource = new oci.redis.RedisClusterDetachOciCacheUser("redisClusterDetachOciCacheUserResource", {
ociCacheUsers: ["string"],
redisClusterId: "string",
});
type: oci:Redis:RedisClusterDetachOciCacheUser
properties:
ociCacheUsers:
- string
redisClusterId: string
RedisClusterDetachOciCacheUser 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 RedisClusterDetachOciCacheUser resource accepts the following input properties:
- Oci
Cache List<string>Users - List of Oracle Cloud Infrastructure cache user unique IDs (OCIDs).
- Redis
Cluster stringId The OCID of the cluster.
** 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
- Oci
Cache []stringUsers - List of Oracle Cloud Infrastructure cache user unique IDs (OCIDs).
- Redis
Cluster stringId The OCID of the cluster.
** 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
- oci
Cache List<String>Users - List of Oracle Cloud Infrastructure cache user unique IDs (OCIDs).
- redis
Cluster StringId The OCID of the cluster.
** 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
- oci
Cache string[]Users - List of Oracle Cloud Infrastructure cache user unique IDs (OCIDs).
- redis
Cluster stringId The OCID of the cluster.
** 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
- oci_
cache_ Sequence[str]users - List of Oracle Cloud Infrastructure cache user unique IDs (OCIDs).
- redis_
cluster_ strid The OCID of the cluster.
** 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
- oci
Cache List<String>Users - List of Oracle Cloud Infrastructure cache user unique IDs (OCIDs).
- redis
Cluster StringId The OCID of the cluster.
** 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
Outputs
All input properties are implicitly available as output properties. Additionally, the RedisClusterDetachOciCacheUser resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing RedisClusterDetachOciCacheUser Resource
Get an existing RedisClusterDetachOciCacheUser 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?: RedisClusterDetachOciCacheUserState, opts?: CustomResourceOptions): RedisClusterDetachOciCacheUser
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
oci_cache_users: Optional[Sequence[str]] = None,
redis_cluster_id: Optional[str] = None) -> RedisClusterDetachOciCacheUser
func GetRedisClusterDetachOciCacheUser(ctx *Context, name string, id IDInput, state *RedisClusterDetachOciCacheUserState, opts ...ResourceOption) (*RedisClusterDetachOciCacheUser, error)
public static RedisClusterDetachOciCacheUser Get(string name, Input<string> id, RedisClusterDetachOciCacheUserState? state, CustomResourceOptions? opts = null)
public static RedisClusterDetachOciCacheUser get(String name, Output<String> id, RedisClusterDetachOciCacheUserState state, CustomResourceOptions options)
resources: _: type: oci:Redis:RedisClusterDetachOciCacheUser 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.
- Oci
Cache List<string>Users - List of Oracle Cloud Infrastructure cache user unique IDs (OCIDs).
- Redis
Cluster stringId The OCID of the cluster.
** 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
- Oci
Cache []stringUsers - List of Oracle Cloud Infrastructure cache user unique IDs (OCIDs).
- Redis
Cluster stringId The OCID of the cluster.
** 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
- oci
Cache List<String>Users - List of Oracle Cloud Infrastructure cache user unique IDs (OCIDs).
- redis
Cluster StringId The OCID of the cluster.
** 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
- oci
Cache string[]Users - List of Oracle Cloud Infrastructure cache user unique IDs (OCIDs).
- redis
Cluster stringId The OCID of the cluster.
** 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
- oci_
cache_ Sequence[str]users - List of Oracle Cloud Infrastructure cache user unique IDs (OCIDs).
- redis_
cluster_ strid The OCID of the cluster.
** 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
- oci
Cache List<String>Users - List of Oracle Cloud Infrastructure cache user unique IDs (OCIDs).
- redis
Cluster StringId The OCID of the cluster.
** 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.