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"});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.CamUserSamlConfig("example", saml_metadata_document="<?xml version=\"1.0\" encoding=\"utf-8\"?></EntityDescriptor>\n")
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
})
}
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>
",
});
});
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());
}
}
resources:
example:
type: tencentcloud:CamUserSamlConfig
properties:
samlMetadataDocument: |
<?xml version="1.0" encoding="utf-8"?></EntityDescriptor>
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"});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.CamUserSamlConfig("example", saml_metadata_document="./metadataDocument.xml")
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
})
}
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",
});
});
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());
}
}
resources:
example:
type: tencentcloud:CamUserSamlConfig
properties:
samlMetadataDocument: ./metadataDocument.xml
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 string
- The unique name of the resource.
- args CamUserSamlConfigArgs
- 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 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 string
- The unique name of the resource.
- args CamUserSamlConfigArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CamUserSamlConfigArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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:
- Saml
Metadata stringDocument - SAML metadata document, xml format, support string content or file path.
- Cam
User stringSaml Config Id - ID of the resource.
- Metadata
Document stringFile - The path used to save the samlMetadat file.
- Saml
Metadata stringDocument - SAML metadata document, xml format, support string content or file path.
- Cam
User stringSaml Config Id - ID of the resource.
- Metadata
Document stringFile - The path used to save the samlMetadat file.
- saml
Metadata StringDocument - SAML metadata document, xml format, support string content or file path.
- cam
User StringSaml Config Id - ID of the resource.
- metadata
Document StringFile - The path used to save the samlMetadat file.
- saml
Metadata stringDocument - SAML metadata document, xml format, support string content or file path.
- cam
User stringSaml Config Id - ID of the resource.
- metadata
Document stringFile - The path used to save the samlMetadat file.
- saml_
metadata_ strdocument - SAML metadata document, xml format, support string content or file path.
- cam_
user_ strsaml_ config_ id - ID of the resource.
- metadata_
document_ strfile - The path used to save the samlMetadat file.
- saml
Metadata StringDocument - SAML metadata document, xml format, support string content or file path.
- cam
User StringSaml Config Id - ID of the resource.
- metadata
Document StringFile - 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:
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
- 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
User stringSaml Config Id - ID of the resource.
- Metadata
Document stringFile - The path used to save the samlMetadat file.
- Saml
Metadata stringDocument - SAML metadata document, xml format, support string content or file path.
- Status double
- Status:
0
: not set,11
: enabled,2
: disabled.
- Cam
User stringSaml Config Id - ID of the resource.
- Metadata
Document stringFile - The path used to save the samlMetadat file.
- Saml
Metadata stringDocument - SAML metadata document, xml format, support string content or file path.
- Status float64
- Status:
0
: not set,11
: enabled,2
: disabled.
- cam
User StringSaml Config Id - ID of the resource.
- metadata
Document StringFile - The path used to save the samlMetadat file.
- saml
Metadata StringDocument - SAML metadata document, xml format, support string content or file path.
- status Double
- Status:
0
: not set,11
: enabled,2
: disabled.
- cam
User stringSaml Config Id - ID of the resource.
- metadata
Document stringFile - The path used to save the samlMetadat file.
- saml
Metadata stringDocument - SAML metadata document, xml format, support string content or file path.
- status number
- Status:
0
: not set,11
: enabled,2
: disabled.
- cam_
user_ strsaml_ config_ id - ID of the resource.
- metadata_
document_ strfile - The path used to save the samlMetadat file.
- saml_
metadata_ strdocument - SAML metadata document, xml format, support string content or file path.
- status float
- Status:
0
: not set,11
: enabled,2
: disabled.
- cam
User StringSaml Config Id - ID of the resource.
- metadata
Document StringFile - The path used to save the samlMetadat file.
- saml
Metadata StringDocument - 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
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.