tencentcloud.CamGroup
Explore with Pulumi AI
Provides a resource to create a CAM group.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const foo = new tencentcloud.CamGroup("foo", {remark: "tf_group_remark"});
import pulumi
import pulumi_tencentcloud as tencentcloud
foo = tencentcloud.CamGroup("foo", remark="tf_group_remark")
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.NewCamGroup(ctx, "foo", &tencentcloud.CamGroupArgs{
Remark: pulumi.String("tf_group_remark"),
})
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 foo = new Tencentcloud.CamGroup("foo", new()
{
Remark = "tf_group_remark",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.CamGroup;
import com.pulumi.tencentcloud.CamGroupArgs;
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 foo = new CamGroup("foo", CamGroupArgs.builder()
.remark("tf_group_remark")
.build());
}
}
resources:
foo:
type: tencentcloud:CamGroup
properties:
remark: tf_group_remark
Create CamGroup Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CamGroup(name: string, args?: CamGroupArgs, opts?: CustomResourceOptions);
@overload
def CamGroup(resource_name: str,
args: Optional[CamGroupArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def CamGroup(resource_name: str,
opts: Optional[ResourceOptions] = None,
cam_group_id: Optional[str] = None,
name: Optional[str] = None,
remark: Optional[str] = None)
func NewCamGroup(ctx *Context, name string, args *CamGroupArgs, opts ...ResourceOption) (*CamGroup, error)
public CamGroup(string name, CamGroupArgs? args = null, CustomResourceOptions? opts = null)
public CamGroup(String name, CamGroupArgs args)
public CamGroup(String name, CamGroupArgs args, CustomResourceOptions options)
type: tencentcloud:CamGroup
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 CamGroupArgs
- 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 CamGroupArgs
- 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 CamGroupArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CamGroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CamGroupArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
CamGroup 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 CamGroup resource accepts the following input properties:
- Cam
Group stringId - ID of the resource.
- Name string
- Name of CAM group.
- Remark string
- Description of the CAM group.
- Cam
Group stringId - ID of the resource.
- Name string
- Name of CAM group.
- Remark string
- Description of the CAM group.
- cam
Group StringId - ID of the resource.
- name String
- Name of CAM group.
- remark String
- Description of the CAM group.
- cam
Group stringId - ID of the resource.
- name string
- Name of CAM group.
- remark string
- Description of the CAM group.
- cam_
group_ strid - ID of the resource.
- name str
- Name of CAM group.
- remark str
- Description of the CAM group.
- cam
Group StringId - ID of the resource.
- name String
- Name of CAM group.
- remark String
- Description of the CAM group.
Outputs
All input properties are implicitly available as output properties. Additionally, the CamGroup resource produces the following output properties:
- Create
Time string - Create time of the CAM group.
- Id string
- The provider-assigned unique ID for this managed resource.
- Create
Time string - Create time of the CAM group.
- Id string
- The provider-assigned unique ID for this managed resource.
- create
Time String - Create time of the CAM group.
- id String
- The provider-assigned unique ID for this managed resource.
- create
Time string - Create time of the CAM group.
- id string
- The provider-assigned unique ID for this managed resource.
- create_
time str - Create time of the CAM group.
- id str
- The provider-assigned unique ID for this managed resource.
- create
Time String - Create time of the CAM group.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing CamGroup Resource
Get an existing CamGroup 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?: CamGroupState, opts?: CustomResourceOptions): CamGroup
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cam_group_id: Optional[str] = None,
create_time: Optional[str] = None,
name: Optional[str] = None,
remark: Optional[str] = None) -> CamGroup
func GetCamGroup(ctx *Context, name string, id IDInput, state *CamGroupState, opts ...ResourceOption) (*CamGroup, error)
public static CamGroup Get(string name, Input<string> id, CamGroupState? state, CustomResourceOptions? opts = null)
public static CamGroup get(String name, Output<String> id, CamGroupState state, CustomResourceOptions options)
resources: _: type: tencentcloud:CamGroup 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.
- Cam
Group stringId - ID of the resource.
- Create
Time string - Create time of the CAM group.
- Name string
- Name of CAM group.
- Remark string
- Description of the CAM group.
- Cam
Group stringId - ID of the resource.
- Create
Time string - Create time of the CAM group.
- Name string
- Name of CAM group.
- Remark string
- Description of the CAM group.
- cam
Group StringId - ID of the resource.
- create
Time String - Create time of the CAM group.
- name String
- Name of CAM group.
- remark String
- Description of the CAM group.
- cam
Group stringId - ID of the resource.
- create
Time string - Create time of the CAM group.
- name string
- Name of CAM group.
- remark string
- Description of the CAM group.
- cam_
group_ strid - ID of the resource.
- create_
time str - Create time of the CAM group.
- name str
- Name of CAM group.
- remark str
- Description of the CAM group.
- cam
Group StringId - ID of the resource.
- create
Time String - Create time of the CAM group.
- name String
- Name of CAM group.
- remark String
- Description of the CAM group.
Import
CAM group can be imported using the id, e.g.
$ pulumi import tencentcloud:index/camGroup:CamGroup foo 90496
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.