tencentcloud.CdcDedicatedClusterImageCache
Explore with Pulumi AI
Provides a resource to create a CDC dedicated cluster image cache
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const cdcDedicatedClusterImageCache = new tencentcloud.CdcDedicatedClusterImageCache("cdcDedicatedClusterImageCache", {
dedicatedClusterId: "cluster-262n63e8",
imageId: "img-eb30mz89",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
cdc_dedicated_cluster_image_cache = tencentcloud.CdcDedicatedClusterImageCache("cdcDedicatedClusterImageCache",
dedicated_cluster_id="cluster-262n63e8",
image_id="img-eb30mz89")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tencentcloud.NewCdcDedicatedClusterImageCache(ctx, "cdcDedicatedClusterImageCache", &tencentcloud.CdcDedicatedClusterImageCacheArgs{
DedicatedClusterId: pulumi.String("cluster-262n63e8"),
ImageId: pulumi.String("img-eb30mz89"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var cdcDedicatedClusterImageCache = new Tencentcloud.CdcDedicatedClusterImageCache("cdcDedicatedClusterImageCache", new()
{
DedicatedClusterId = "cluster-262n63e8",
ImageId = "img-eb30mz89",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.CdcDedicatedClusterImageCache;
import com.pulumi.tencentcloud.CdcDedicatedClusterImageCacheArgs;
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 cdcDedicatedClusterImageCache = new CdcDedicatedClusterImageCache("cdcDedicatedClusterImageCache", CdcDedicatedClusterImageCacheArgs.builder()
.dedicatedClusterId("cluster-262n63e8")
.imageId("img-eb30mz89")
.build());
}
}
resources:
cdcDedicatedClusterImageCache:
type: tencentcloud:CdcDedicatedClusterImageCache
properties:
dedicatedClusterId: cluster-262n63e8
imageId: img-eb30mz89
Create CdcDedicatedClusterImageCache Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CdcDedicatedClusterImageCache(name: string, args: CdcDedicatedClusterImageCacheArgs, opts?: CustomResourceOptions);
@overload
def CdcDedicatedClusterImageCache(resource_name: str,
args: CdcDedicatedClusterImageCacheArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CdcDedicatedClusterImageCache(resource_name: str,
opts: Optional[ResourceOptions] = None,
dedicated_cluster_id: Optional[str] = None,
image_id: Optional[str] = None,
cdc_dedicated_cluster_image_cache_id: Optional[str] = None)
func NewCdcDedicatedClusterImageCache(ctx *Context, name string, args CdcDedicatedClusterImageCacheArgs, opts ...ResourceOption) (*CdcDedicatedClusterImageCache, error)
public CdcDedicatedClusterImageCache(string name, CdcDedicatedClusterImageCacheArgs args, CustomResourceOptions? opts = null)
public CdcDedicatedClusterImageCache(String name, CdcDedicatedClusterImageCacheArgs args)
public CdcDedicatedClusterImageCache(String name, CdcDedicatedClusterImageCacheArgs args, CustomResourceOptions options)
type: tencentcloud:CdcDedicatedClusterImageCache
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 CdcDedicatedClusterImageCacheArgs
- 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 CdcDedicatedClusterImageCacheArgs
- 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 CdcDedicatedClusterImageCacheArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CdcDedicatedClusterImageCacheArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CdcDedicatedClusterImageCacheArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
CdcDedicatedClusterImageCache 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 CdcDedicatedClusterImageCache resource accepts the following input properties:
- Dedicated
Cluster stringId - Cluster ID.
- Image
Id string - Image ID.
- Cdc
Dedicated stringCluster Image Cache Id - ID of the resource.
- Dedicated
Cluster stringId - Cluster ID.
- Image
Id string - Image ID.
- Cdc
Dedicated stringCluster Image Cache Id - ID of the resource.
- dedicated
Cluster StringId - Cluster ID.
- image
Id String - Image ID.
- cdc
Dedicated StringCluster Image Cache Id - ID of the resource.
- dedicated
Cluster stringId - Cluster ID.
- image
Id string - Image ID.
- cdc
Dedicated stringCluster Image Cache Id - ID of the resource.
- dedicated_
cluster_ strid - Cluster ID.
- image_
id str - Image ID.
- cdc_
dedicated_ strcluster_ image_ cache_ id - ID of the resource.
- dedicated
Cluster StringId - Cluster ID.
- image
Id String - Image ID.
- cdc
Dedicated StringCluster Image Cache Id - ID of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the CdcDedicatedClusterImageCache 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 CdcDedicatedClusterImageCache Resource
Get an existing CdcDedicatedClusterImageCache 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?: CdcDedicatedClusterImageCacheState, opts?: CustomResourceOptions): CdcDedicatedClusterImageCache
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cdc_dedicated_cluster_image_cache_id: Optional[str] = None,
dedicated_cluster_id: Optional[str] = None,
image_id: Optional[str] = None) -> CdcDedicatedClusterImageCache
func GetCdcDedicatedClusterImageCache(ctx *Context, name string, id IDInput, state *CdcDedicatedClusterImageCacheState, opts ...ResourceOption) (*CdcDedicatedClusterImageCache, error)
public static CdcDedicatedClusterImageCache Get(string name, Input<string> id, CdcDedicatedClusterImageCacheState? state, CustomResourceOptions? opts = null)
public static CdcDedicatedClusterImageCache get(String name, Output<String> id, CdcDedicatedClusterImageCacheState state, CustomResourceOptions options)
resources: _: type: tencentcloud:CdcDedicatedClusterImageCache 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.
- Cdc
Dedicated stringCluster Image Cache Id - ID of the resource.
- Dedicated
Cluster stringId - Cluster ID.
- Image
Id string - Image ID.
- Cdc
Dedicated stringCluster Image Cache Id - ID of the resource.
- Dedicated
Cluster stringId - Cluster ID.
- Image
Id string - Image ID.
- cdc
Dedicated StringCluster Image Cache Id - ID of the resource.
- dedicated
Cluster StringId - Cluster ID.
- image
Id String - Image ID.
- cdc
Dedicated stringCluster Image Cache Id - ID of the resource.
- dedicated
Cluster stringId - Cluster ID.
- image
Id string - Image ID.
- cdc_
dedicated_ strcluster_ image_ cache_ id - ID of the resource.
- dedicated_
cluster_ strid - Cluster ID.
- image_
id str - Image ID.
- cdc
Dedicated StringCluster Image Cache Id - ID of the resource.
- dedicated
Cluster StringId - Cluster ID.
- image
Id String - Image ID.
Import
CDC dedicated cluster image cache can be imported using the id, e.g.
$ pulumi import tencentcloud:index/cdcDedicatedClusterImageCache:CdcDedicatedClusterImageCache cdc_dedicated_cluster_image_cache ${dedicated_cluster_id}#${image_id}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.