1. Packages
  2. Volcengine
  3. API Docs
  4. iam
  5. SecurityConfig
Volcengine v0.0.45 published on Tuesday, Feb 10, 2026 by Volcengine
volcengine logo
Volcengine v0.0.45 published on Tuesday, Feb 10, 2026 by Volcengine

    Provides a resource to manage iam security config

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as volcengine from "@volcengine/pulumi";
    
    const foo = new volcengine.iam.SecurityConfig("foo", {
        safeAuthExemptDuration: 11,
        safeAuthType: "email",
        userName: "jonny",
    });
    
    import pulumi
    import pulumi_volcengine as volcengine
    
    foo = volcengine.iam.SecurityConfig("foo",
        safe_auth_exempt_duration=11,
        safe_auth_type="email",
        user_name="jonny")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/iam"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := iam.NewSecurityConfig(ctx, "foo", &iam.SecurityConfigArgs{
    			SafeAuthExemptDuration: pulumi.Int(11),
    			SafeAuthType:           pulumi.String("email"),
    			UserName:               pulumi.String("jonny"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Volcengine = Pulumi.Volcengine;
    
    return await Deployment.RunAsync(() => 
    {
        var foo = new Volcengine.Iam.SecurityConfig("foo", new()
        {
            SafeAuthExemptDuration = 11,
            SafeAuthType = "email",
            UserName = "jonny",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.volcengine.iam.SecurityConfig;
    import com.pulumi.volcengine.iam.SecurityConfigArgs;
    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 SecurityConfig("foo", SecurityConfigArgs.builder()        
                .safeAuthExemptDuration(11)
                .safeAuthType("email")
                .userName("jonny")
                .build());
    
        }
    }
    
    resources:
      foo:
        type: volcengine:iam:SecurityConfig
        properties:
          safeAuthExemptDuration: 11
          safeAuthType: email
          userName: jonny
    

    Create SecurityConfig Resource

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

    Constructor syntax

    new SecurityConfig(name: string, args: SecurityConfigArgs, opts?: CustomResourceOptions);
    @overload
    def SecurityConfig(resource_name: str,
                       args: SecurityConfigArgs,
                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def SecurityConfig(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       safe_auth_type: Optional[str] = None,
                       user_name: Optional[str] = None,
                       safe_auth_exempt_duration: Optional[int] = None)
    func NewSecurityConfig(ctx *Context, name string, args SecurityConfigArgs, opts ...ResourceOption) (*SecurityConfig, error)
    public SecurityConfig(string name, SecurityConfigArgs args, CustomResourceOptions? opts = null)
    public SecurityConfig(String name, SecurityConfigArgs args)
    public SecurityConfig(String name, SecurityConfigArgs args, CustomResourceOptions options)
    
    type: volcengine:iam:SecurityConfig
    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 SecurityConfigArgs
    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 SecurityConfigArgs
    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 SecurityConfigArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SecurityConfigArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SecurityConfigArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var securityConfigResource = new Volcengine.Iam.SecurityConfig("securityConfigResource", new()
    {
        SafeAuthType = "string",
        UserName = "string",
        SafeAuthExemptDuration = 0,
    });
    
    example, err := iam.NewSecurityConfig(ctx, "securityConfigResource", &iam.SecurityConfigArgs{
    	SafeAuthType:           pulumi.String("string"),
    	UserName:               pulumi.String("string"),
    	SafeAuthExemptDuration: pulumi.Int(0),
    })
    
    var securityConfigResource = new SecurityConfig("securityConfigResource", SecurityConfigArgs.builder()
        .safeAuthType("string")
        .userName("string")
        .safeAuthExemptDuration(0)
        .build());
    
    security_config_resource = volcengine.iam.SecurityConfig("securityConfigResource",
        safe_auth_type="string",
        user_name="string",
        safe_auth_exempt_duration=0)
    
    const securityConfigResource = new volcengine.iam.SecurityConfig("securityConfigResource", {
        safeAuthType: "string",
        userName: "string",
        safeAuthExemptDuration: 0,
    });
    
    type: volcengine:iam:SecurityConfig
    properties:
        safeAuthExemptDuration: 0
        safeAuthType: string
        userName: string
    

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

    SafeAuthType string
    The type of safe auth, Ensure the setting scope is for a single sub-account only.
    UserName string
    The user name.
    SafeAuthExemptDuration int
    The exempt duration of safe auth, Ensure the setting scope is for a single sub-account only.
    SafeAuthType string
    The type of safe auth, Ensure the setting scope is for a single sub-account only.
    UserName string
    The user name.
    SafeAuthExemptDuration int
    The exempt duration of safe auth, Ensure the setting scope is for a single sub-account only.
    safeAuthType String
    The type of safe auth, Ensure the setting scope is for a single sub-account only.
    userName String
    The user name.
    safeAuthExemptDuration Integer
    The exempt duration of safe auth, Ensure the setting scope is for a single sub-account only.
    safeAuthType string
    The type of safe auth, Ensure the setting scope is for a single sub-account only.
    userName string
    The user name.
    safeAuthExemptDuration number
    The exempt duration of safe auth, Ensure the setting scope is for a single sub-account only.
    safe_auth_type str
    The type of safe auth, Ensure the setting scope is for a single sub-account only.
    user_name str
    The user name.
    safe_auth_exempt_duration int
    The exempt duration of safe auth, Ensure the setting scope is for a single sub-account only.
    safeAuthType String
    The type of safe auth, Ensure the setting scope is for a single sub-account only.
    userName String
    The user name.
    safeAuthExemptDuration Number
    The exempt duration of safe auth, Ensure the setting scope is for a single sub-account only.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    SafeAuthClose int
    The status of safe auth, Ensure the setting scope is for a single sub-account only.
    UserId int
    The user id.
    Id string
    The provider-assigned unique ID for this managed resource.
    SafeAuthClose int
    The status of safe auth, Ensure the setting scope is for a single sub-account only.
    UserId int
    The user id.
    id String
    The provider-assigned unique ID for this managed resource.
    safeAuthClose Integer
    The status of safe auth, Ensure the setting scope is for a single sub-account only.
    userId Integer
    The user id.
    id string
    The provider-assigned unique ID for this managed resource.
    safeAuthClose number
    The status of safe auth, Ensure the setting scope is for a single sub-account only.
    userId number
    The user id.
    id str
    The provider-assigned unique ID for this managed resource.
    safe_auth_close int
    The status of safe auth, Ensure the setting scope is for a single sub-account only.
    user_id int
    The user id.
    id String
    The provider-assigned unique ID for this managed resource.
    safeAuthClose Number
    The status of safe auth, Ensure the setting scope is for a single sub-account only.
    userId Number
    The user id.

    Look up Existing SecurityConfig Resource

    Get an existing SecurityConfig 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?: SecurityConfigState, opts?: CustomResourceOptions): SecurityConfig
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            safe_auth_close: Optional[int] = None,
            safe_auth_exempt_duration: Optional[int] = None,
            safe_auth_type: Optional[str] = None,
            user_id: Optional[int] = None,
            user_name: Optional[str] = None) -> SecurityConfig
    func GetSecurityConfig(ctx *Context, name string, id IDInput, state *SecurityConfigState, opts ...ResourceOption) (*SecurityConfig, error)
    public static SecurityConfig Get(string name, Input<string> id, SecurityConfigState? state, CustomResourceOptions? opts = null)
    public static SecurityConfig get(String name, Output<String> id, SecurityConfigState state, CustomResourceOptions options)
    resources:  _:    type: volcengine:iam:SecurityConfig    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.
    The following state arguments are supported:
    SafeAuthClose int
    The status of safe auth, Ensure the setting scope is for a single sub-account only.
    SafeAuthExemptDuration int
    The exempt duration of safe auth, Ensure the setting scope is for a single sub-account only.
    SafeAuthType string
    The type of safe auth, Ensure the setting scope is for a single sub-account only.
    UserId int
    The user id.
    UserName string
    The user name.
    SafeAuthClose int
    The status of safe auth, Ensure the setting scope is for a single sub-account only.
    SafeAuthExemptDuration int
    The exempt duration of safe auth, Ensure the setting scope is for a single sub-account only.
    SafeAuthType string
    The type of safe auth, Ensure the setting scope is for a single sub-account only.
    UserId int
    The user id.
    UserName string
    The user name.
    safeAuthClose Integer
    The status of safe auth, Ensure the setting scope is for a single sub-account only.
    safeAuthExemptDuration Integer
    The exempt duration of safe auth, Ensure the setting scope is for a single sub-account only.
    safeAuthType String
    The type of safe auth, Ensure the setting scope is for a single sub-account only.
    userId Integer
    The user id.
    userName String
    The user name.
    safeAuthClose number
    The status of safe auth, Ensure the setting scope is for a single sub-account only.
    safeAuthExemptDuration number
    The exempt duration of safe auth, Ensure the setting scope is for a single sub-account only.
    safeAuthType string
    The type of safe auth, Ensure the setting scope is for a single sub-account only.
    userId number
    The user id.
    userName string
    The user name.
    safe_auth_close int
    The status of safe auth, Ensure the setting scope is for a single sub-account only.
    safe_auth_exempt_duration int
    The exempt duration of safe auth, Ensure the setting scope is for a single sub-account only.
    safe_auth_type str
    The type of safe auth, Ensure the setting scope is for a single sub-account only.
    user_id int
    The user id.
    user_name str
    The user name.
    safeAuthClose Number
    The status of safe auth, Ensure the setting scope is for a single sub-account only.
    safeAuthExemptDuration Number
    The exempt duration of safe auth, Ensure the setting scope is for a single sub-account only.
    safeAuthType String
    The type of safe auth, Ensure the setting scope is for a single sub-account only.
    userId Number
    The user id.
    userName String
    The user name.

    Import

    Iam SecurityConfig key don’t support import

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    volcengine volcengine/pulumi-volcengine
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the volcengine Terraform Provider.
    volcengine logo
    Volcengine v0.0.45 published on Tuesday, Feb 10, 2026 by Volcengine
      Meet Neo: Your AI Platform Teammate