published on Wednesday, Sep 9, 2026 by tencentcloudstack
published on Wednesday, Sep 9, 2026 by tencentcloudstack
Provides a resource to create a CAM-ROLE-SSO(Only support OIDC).
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.CamRoleSso("example", {
name: "tf_example",
identityUrl: "https://login.microsoftonline.com/.../v2.0",
identityKey: "baz****",
clientIds: ["61adcf00620c31e3ddbc9546"],
description: "this is a description",
autoRotateKey: 1,
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.CamRoleSso("example",
name="tf_example",
identity_url="https://login.microsoftonline.com/.../v2.0",
identity_key="baz****",
client_ids=["61adcf00620c31e3ddbc9546"],
description="this is a description",
auto_rotate_key=1)
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.NewCamRoleSso(ctx, "example", &tencentcloud.CamRoleSsoArgs{
Name: pulumi.String("tf_example"),
IdentityUrl: pulumi.String("https://login.microsoftonline.com/.../v2.0"),
IdentityKey: pulumi.String("baz****"),
ClientIds: pulumi.StringArray{
pulumi.String("61adcf00620c31e3ddbc9546"),
},
Description: pulumi.String("this is a description"),
AutoRotateKey: pulumi.Float64(1),
})
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 example = new Tencentcloud.CamRoleSso("example", new()
{
Name = "tf_example",
IdentityUrl = "https://login.microsoftonline.com/.../v2.0",
IdentityKey = "baz****",
ClientIds = new[]
{
"61adcf00620c31e3ddbc9546",
},
Description = "this is a description",
AutoRotateKey = 1,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.CamRoleSso;
import com.pulumi.tencentcloud.CamRoleSsoArgs;
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 example = new CamRoleSso("example", CamRoleSsoArgs.builder()
.name("tf_example")
.identityUrl("https://login.microsoftonline.com/.../v2.0")
.identityKey("baz****")
.clientIds("61adcf00620c31e3ddbc9546")
.description("this is a description")
.autoRotateKey(1.0)
.build());
}
}
resources:
example:
type: tencentcloud:CamRoleSso
properties:
name: tf_example
identityUrl: https://login.microsoftonline.com/.../v2.0
identityKey: baz****
clientIds:
- 61adcf00620c31e3ddbc9546
description: this is a description
autoRotateKey: 1
Example coming soon!
Create CamRoleSso Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CamRoleSso(name: string, args: CamRoleSsoArgs, opts?: CustomResourceOptions);@overload
def CamRoleSso(resource_name: str,
args: CamRoleSsoArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CamRoleSso(resource_name: str,
opts: Optional[ResourceOptions] = None,
client_ids: Optional[Sequence[str]] = None,
identity_key: Optional[str] = None,
identity_url: Optional[str] = None,
auto_rotate_key: Optional[float] = None,
cam_role_sso_id: Optional[str] = None,
description: Optional[str] = None,
name: Optional[str] = None)func NewCamRoleSso(ctx *Context, name string, args CamRoleSsoArgs, opts ...ResourceOption) (*CamRoleSso, error)public CamRoleSso(string name, CamRoleSsoArgs args, CustomResourceOptions? opts = null)
public CamRoleSso(String name, CamRoleSsoArgs args)
public CamRoleSso(String name, CamRoleSsoArgs args, CustomResourceOptions options)
type: tencentcloud:CamRoleSso
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "tencentcloud_cam_role_sso" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args CamRoleSsoArgs
- 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 CamRoleSsoArgs
- 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 CamRoleSsoArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CamRoleSsoArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CamRoleSsoArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
CamRoleSso 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 CamRoleSso resource accepts the following input properties:
- Client
Ids List<string> - Client ids.
- Identity
Key string - Sign the public key. Base64 encryption is required.
- Identity
Url string - Identity provider URL.
- Auto
Rotate doubleKey - OIDC public key auto-rotation switch. Enum values: 0 (disabled), 1 (enabled). Default value: 0.
- Cam
Role stringSso Id - ID of the resource.
- Description string
- The description of resource.
- Name string
- The name of resource.
- Client
Ids []string - Client ids.
- Identity
Key string - Sign the public key. Base64 encryption is required.
- Identity
Url string - Identity provider URL.
- Auto
Rotate float64Key - OIDC public key auto-rotation switch. Enum values: 0 (disabled), 1 (enabled). Default value: 0.
- Cam
Role stringSso Id - ID of the resource.
- Description string
- The description of resource.
- Name string
- The name of resource.
- client_
ids list(string) - Client ids.
- identity_
key string - Sign the public key. Base64 encryption is required.
- identity_
url string - Identity provider URL.
- auto_
rotate_ numberkey - OIDC public key auto-rotation switch. Enum values: 0 (disabled), 1 (enabled). Default value: 0.
- cam_
role_ stringsso_ id - ID of the resource.
- description string
- The description of resource.
- name string
- The name of resource.
- client
Ids List<String> - Client ids.
- identity
Key String - Sign the public key. Base64 encryption is required.
- identity
Url String - Identity provider URL.
- auto
Rotate DoubleKey - OIDC public key auto-rotation switch. Enum values: 0 (disabled), 1 (enabled). Default value: 0.
- cam
Role StringSso Id - ID of the resource.
- description String
- The description of resource.
- name String
- The name of resource.
- client
Ids string[] - Client ids.
- identity
Key string - Sign the public key. Base64 encryption is required.
- identity
Url string - Identity provider URL.
- auto
Rotate numberKey - OIDC public key auto-rotation switch. Enum values: 0 (disabled), 1 (enabled). Default value: 0.
- cam
Role stringSso Id - ID of the resource.
- description string
- The description of resource.
- name string
- The name of resource.
- client_
ids Sequence[str] - Client ids.
- identity_
key str - Sign the public key. Base64 encryption is required.
- identity_
url str - Identity provider URL.
- auto_
rotate_ floatkey - OIDC public key auto-rotation switch. Enum values: 0 (disabled), 1 (enabled). Default value: 0.
- cam_
role_ strsso_ id - ID of the resource.
- description str
- The description of resource.
- name str
- The name of resource.
- client
Ids List<String> - Client ids.
- identity
Key String - Sign the public key. Base64 encryption is required.
- identity
Url String - Identity provider URL.
- auto
Rotate NumberKey - OIDC public key auto-rotation switch. Enum values: 0 (disabled), 1 (enabled). Default value: 0.
- cam
Role StringSso Id - ID of the resource.
- description String
- The description of resource.
- name String
- The name of resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the CamRoleSso 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 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 CamRoleSso Resource
Get an existing CamRoleSso 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?: CamRoleSsoState, opts?: CustomResourceOptions): CamRoleSso@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
auto_rotate_key: Optional[float] = None,
cam_role_sso_id: Optional[str] = None,
client_ids: Optional[Sequence[str]] = None,
description: Optional[str] = None,
identity_key: Optional[str] = None,
identity_url: Optional[str] = None,
name: Optional[str] = None) -> CamRoleSsofunc GetCamRoleSso(ctx *Context, name string, id IDInput, state *CamRoleSsoState, opts ...ResourceOption) (*CamRoleSso, error)public static CamRoleSso Get(string name, Input<string> id, CamRoleSsoState? state, CustomResourceOptions? opts = null)public static CamRoleSso get(String name, Output<String> id, CamRoleSsoState state, CustomResourceOptions options)resources: _: type: tencentcloud:CamRoleSso get: id: ${id}import {
to = tencentcloud_cam_role_sso.example
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.
- Auto
Rotate doubleKey - OIDC public key auto-rotation switch. Enum values: 0 (disabled), 1 (enabled). Default value: 0.
- Cam
Role stringSso Id - ID of the resource.
- Client
Ids List<string> - Client ids.
- Description string
- The description of resource.
- Identity
Key string - Sign the public key. Base64 encryption is required.
- Identity
Url string - Identity provider URL.
- Name string
- The name of resource.
- Auto
Rotate float64Key - OIDC public key auto-rotation switch. Enum values: 0 (disabled), 1 (enabled). Default value: 0.
- Cam
Role stringSso Id - ID of the resource.
- Client
Ids []string - Client ids.
- Description string
- The description of resource.
- Identity
Key string - Sign the public key. Base64 encryption is required.
- Identity
Url string - Identity provider URL.
- Name string
- The name of resource.
- auto_
rotate_ numberkey - OIDC public key auto-rotation switch. Enum values: 0 (disabled), 1 (enabled). Default value: 0.
- cam_
role_ stringsso_ id - ID of the resource.
- client_
ids list(string) - Client ids.
- description string
- The description of resource.
- identity_
key string - Sign the public key. Base64 encryption is required.
- identity_
url string - Identity provider URL.
- name string
- The name of resource.
- auto
Rotate DoubleKey - OIDC public key auto-rotation switch. Enum values: 0 (disabled), 1 (enabled). Default value: 0.
- cam
Role StringSso Id - ID of the resource.
- client
Ids List<String> - Client ids.
- description String
- The description of resource.
- identity
Key String - Sign the public key. Base64 encryption is required.
- identity
Url String - Identity provider URL.
- name String
- The name of resource.
- auto
Rotate numberKey - OIDC public key auto-rotation switch. Enum values: 0 (disabled), 1 (enabled). Default value: 0.
- cam
Role stringSso Id - ID of the resource.
- client
Ids string[] - Client ids.
- description string
- The description of resource.
- identity
Key string - Sign the public key. Base64 encryption is required.
- identity
Url string - Identity provider URL.
- name string
- The name of resource.
- auto_
rotate_ floatkey - OIDC public key auto-rotation switch. Enum values: 0 (disabled), 1 (enabled). Default value: 0.
- cam_
role_ strsso_ id - ID of the resource.
- client_
ids Sequence[str] - Client ids.
- description str
- The description of resource.
- identity_
key str - Sign the public key. Base64 encryption is required.
- identity_
url str - Identity provider URL.
- name str
- The name of resource.
- auto
Rotate NumberKey - OIDC public key auto-rotation switch. Enum values: 0 (disabled), 1 (enabled). Default value: 0.
- cam
Role StringSso Id - ID of the resource.
- client
Ids List<String> - Client ids.
- description String
- The description of resource.
- identity
Key String - Sign the public key. Base64 encryption is required.
- identity
Url String - Identity provider URL.
- name String
- The name of resource.
Import
CAM-ROLE-SSO(Only support OIDC) can be imported using the name, e.g.
$ pulumi import tencentcloud:index/camRoleSso:CamRoleSso example tf_example
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
tencentcloudTerraform Provider.
published on Wednesday, Sep 9, 2026 by tencentcloudstack