1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. CamUserSamlConfig
tencentcloud 1.81.182 published on Monday, Apr 14, 2025 by tencentcloudstack

tencentcloud.CamUserSamlConfig

Explore with Pulumi AI

Provides a resource to create a CAM user saml config

Example Usage

Create saml config by metadata string

import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";

const example = new tencentcloud.CamUserSamlConfig("example", {samlMetadataDocument: "<?xml version=\"1.0\" encoding=\"utf-8\"?></EntityDescriptor>\n"});
Copy
import pulumi
import pulumi_tencentcloud as tencentcloud

example = tencentcloud.CamUserSamlConfig("example", saml_metadata_document="<?xml version=\"1.0\" encoding=\"utf-8\"?></EntityDescriptor>\n")
Copy
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.NewCamUserSamlConfig(ctx, "example", &tencentcloud.CamUserSamlConfigArgs{
			SamlMetadataDocument: pulumi.String("<?xml version=\"1.0\" encoding=\"utf-8\"?></EntityDescriptor>\n"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;

return await Deployment.RunAsync(() => 
{
    var example = new Tencentcloud.CamUserSamlConfig("example", new()
    {
        SamlMetadataDocument = @"<?xml version=""1.0"" encoding=""utf-8""?></EntityDescriptor>
",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.CamUserSamlConfig;
import com.pulumi.tencentcloud.CamUserSamlConfigArgs;
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 CamUserSamlConfig("example", CamUserSamlConfigArgs.builder()
            .samlMetadataDocument("""
<?xml version="1.0" encoding="utf-8"?></EntityDescriptor>
            """)
            .build());

    }
}
Copy
resources:
  example:
    type: tencentcloud:CamUserSamlConfig
    properties:
      samlMetadataDocument: |
        <?xml version="1.0" encoding="utf-8"?></EntityDescriptor>        
Copy

Create saml config by metadata file path

import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";

const example = new tencentcloud.CamUserSamlConfig("example", {samlMetadataDocument: "./metadataDocument.xml"});
Copy
import pulumi
import pulumi_tencentcloud as tencentcloud

example = tencentcloud.CamUserSamlConfig("example", saml_metadata_document="./metadataDocument.xml")
Copy
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.NewCamUserSamlConfig(ctx, "example", &tencentcloud.CamUserSamlConfigArgs{
			SamlMetadataDocument: pulumi.String("./metadataDocument.xml"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;

return await Deployment.RunAsync(() => 
{
    var example = new Tencentcloud.CamUserSamlConfig("example", new()
    {
        SamlMetadataDocument = "./metadataDocument.xml",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.CamUserSamlConfig;
import com.pulumi.tencentcloud.CamUserSamlConfigArgs;
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 CamUserSamlConfig("example", CamUserSamlConfigArgs.builder()
            .samlMetadataDocument("./metadataDocument.xml")
            .build());

    }
}
Copy
resources:
  example:
    type: tencentcloud:CamUserSamlConfig
    properties:
      samlMetadataDocument: ./metadataDocument.xml
Copy

Create CamUserSamlConfig Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new CamUserSamlConfig(name: string, args: CamUserSamlConfigArgs, opts?: CustomResourceOptions);
@overload
def CamUserSamlConfig(resource_name: str,
                      args: CamUserSamlConfigArgs,
                      opts: Optional[ResourceOptions] = None)

@overload
def CamUserSamlConfig(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      saml_metadata_document: Optional[str] = None,
                      cam_user_saml_config_id: Optional[str] = None,
                      metadata_document_file: Optional[str] = None)
func NewCamUserSamlConfig(ctx *Context, name string, args CamUserSamlConfigArgs, opts ...ResourceOption) (*CamUserSamlConfig, error)
public CamUserSamlConfig(string name, CamUserSamlConfigArgs args, CustomResourceOptions? opts = null)
public CamUserSamlConfig(String name, CamUserSamlConfigArgs args)
public CamUserSamlConfig(String name, CamUserSamlConfigArgs args, CustomResourceOptions options)
type: tencentcloud:CamUserSamlConfig
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. CamUserSamlConfigArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. CamUserSamlConfigArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. CamUserSamlConfigArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. CamUserSamlConfigArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. CamUserSamlConfigArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

CamUserSamlConfig 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 CamUserSamlConfig resource accepts the following input properties:

SamlMetadataDocument This property is required. string
SAML metadata document, xml format, support string content or file path.
CamUserSamlConfigId string
ID of the resource.
MetadataDocumentFile string
The path used to save the samlMetadat file.
SamlMetadataDocument This property is required. string
SAML metadata document, xml format, support string content or file path.
CamUserSamlConfigId string
ID of the resource.
MetadataDocumentFile string
The path used to save the samlMetadat file.
samlMetadataDocument This property is required. String
SAML metadata document, xml format, support string content or file path.
camUserSamlConfigId String
ID of the resource.
metadataDocumentFile String
The path used to save the samlMetadat file.
samlMetadataDocument This property is required. string
SAML metadata document, xml format, support string content or file path.
camUserSamlConfigId string
ID of the resource.
metadataDocumentFile string
The path used to save the samlMetadat file.
saml_metadata_document This property is required. str
SAML metadata document, xml format, support string content or file path.
cam_user_saml_config_id str
ID of the resource.
metadata_document_file str
The path used to save the samlMetadat file.
samlMetadataDocument This property is required. String
SAML metadata document, xml format, support string content or file path.
camUserSamlConfigId String
ID of the resource.
metadataDocumentFile String
The path used to save the samlMetadat file.

Outputs

All input properties are implicitly available as output properties. Additionally, the CamUserSamlConfig resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Status double
Status: 0: not set, 11: enabled, 2: disabled.
Id string
The provider-assigned unique ID for this managed resource.
Status float64
Status: 0: not set, 11: enabled, 2: disabled.
id String
The provider-assigned unique ID for this managed resource.
status Double
Status: 0: not set, 11: enabled, 2: disabled.
id string
The provider-assigned unique ID for this managed resource.
status number
Status: 0: not set, 11: enabled, 2: disabled.
id str
The provider-assigned unique ID for this managed resource.
status float
Status: 0: not set, 11: enabled, 2: disabled.
id String
The provider-assigned unique ID for this managed resource.
status Number
Status: 0: not set, 11: enabled, 2: disabled.

Look up Existing CamUserSamlConfig Resource

Get an existing CamUserSamlConfig 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?: CamUserSamlConfigState, opts?: CustomResourceOptions): CamUserSamlConfig
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        cam_user_saml_config_id: Optional[str] = None,
        metadata_document_file: Optional[str] = None,
        saml_metadata_document: Optional[str] = None,
        status: Optional[float] = None) -> CamUserSamlConfig
func GetCamUserSamlConfig(ctx *Context, name string, id IDInput, state *CamUserSamlConfigState, opts ...ResourceOption) (*CamUserSamlConfig, error)
public static CamUserSamlConfig Get(string name, Input<string> id, CamUserSamlConfigState? state, CustomResourceOptions? opts = null)
public static CamUserSamlConfig get(String name, Output<String> id, CamUserSamlConfigState state, CustomResourceOptions options)
resources:  _:    type: tencentcloud:CamUserSamlConfig    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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.
The following state arguments are supported:
CamUserSamlConfigId string
ID of the resource.
MetadataDocumentFile string
The path used to save the samlMetadat file.
SamlMetadataDocument string
SAML metadata document, xml format, support string content or file path.
Status double
Status: 0: not set, 11: enabled, 2: disabled.
CamUserSamlConfigId string
ID of the resource.
MetadataDocumentFile string
The path used to save the samlMetadat file.
SamlMetadataDocument string
SAML metadata document, xml format, support string content or file path.
Status float64
Status: 0: not set, 11: enabled, 2: disabled.
camUserSamlConfigId String
ID of the resource.
metadataDocumentFile String
The path used to save the samlMetadat file.
samlMetadataDocument String
SAML metadata document, xml format, support string content or file path.
status Double
Status: 0: not set, 11: enabled, 2: disabled.
camUserSamlConfigId string
ID of the resource.
metadataDocumentFile string
The path used to save the samlMetadat file.
samlMetadataDocument string
SAML metadata document, xml format, support string content or file path.
status number
Status: 0: not set, 11: enabled, 2: disabled.
cam_user_saml_config_id str
ID of the resource.
metadata_document_file str
The path used to save the samlMetadat file.
saml_metadata_document str
SAML metadata document, xml format, support string content or file path.
status float
Status: 0: not set, 11: enabled, 2: disabled.
camUserSamlConfigId String
ID of the resource.
metadataDocumentFile String
The path used to save the samlMetadat file.
samlMetadataDocument String
SAML metadata document, xml format, support string content or file path.
status Number
Status: 0: not set, 11: enabled, 2: disabled.

Import

CAM user saml config can be imported using the id, e.g.

$ pulumi import tencentcloud:index/camUserSamlConfig:CamUserSamlConfig example 79f23f0f-ad00-414f-bc5e-94859ffdfb9e
Copy

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.