tencentcloud.CamRoleSso
Explore with Pulumi AI
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 foo = new tencentcloud.CamRoleSso("foo", {
clientIds: ["..."],
description: "this is a description",
identityKey: "...",
identityUrl: "https://login.microsoftonline.com/.../v2.0",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
foo = tencentcloud.CamRoleSso("foo",
client_ids=["..."],
description="this is a description",
identity_key="...",
identity_url="https://login.microsoftonline.com/.../v2.0")
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, "foo", &tencentcloud.CamRoleSsoArgs{
ClientIds: pulumi.StringArray{
pulumi.String("..."),
},
Description: pulumi.String("this is a description"),
IdentityKey: pulumi.String("..."),
IdentityUrl: pulumi.String("https://login.microsoftonline.com/.../v2.0"),
})
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.CamRoleSso("foo", new()
{
ClientIds = new[]
{
"...",
},
Description = "this is a description",
IdentityKey = "...",
IdentityUrl = "https://login.microsoftonline.com/.../v2.0",
});
});
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 foo = new CamRoleSso("foo", CamRoleSsoArgs.builder()
.clientIds("...")
.description("this is a description")
.identityKey("...")
.identityUrl("https://login.microsoftonline.com/.../v2.0")
.build());
}
}
resources:
foo:
type: tencentcloud:CamRoleSso
properties:
clientIds:
- '...'
description: this is a description
identityKey: '...'
identityUrl: https://login.microsoftonline.com/.../v2.0
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,
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.
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.
- Identity
Url string - Identity provider URL.
- 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.
- Identity
Url string - Identity provider URL.
- 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.
- identity
Url String - Identity provider URL.
- 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.
- identity
Url string - Identity provider URL.
- 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.
- identity_
url str - Identity provider URL.
- 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.
- identity
Url String - Identity provider URL.
- 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 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,
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) -> CamRoleSso
func 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}
- 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
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.
- Identity
Url string - Identity provider URL.
- Name string
- The name of resource.
- 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.
- Identity
Url string - Identity provider URL.
- Name string
- The name of resource.
- 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.
- identity
Url String - Identity provider URL.
- name String
- The name of resource.
- 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.
- identity
Url string - Identity provider URL.
- name string
- The name of resource.
- 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.
- identity_
url str - Identity provider URL.
- name str
- The name of resource.
- 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.
- identity
Url String - Identity provider URL.
- name String
- The name of resource.
Import
CAM-ROLE-SSO can be imported using the name
, e.g.
$ pulumi import tencentcloud:index/camRoleSso:CamRoleSso foo "test"
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.