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:
- Safe
Auth stringType - The type of safe auth, Ensure the setting scope is for a single sub-account only.
- User
Name string - The user name.
- Safe
Auth intExempt Duration - The exempt duration of safe auth, Ensure the setting scope is for a single sub-account only.
- Safe
Auth stringType - The type of safe auth, Ensure the setting scope is for a single sub-account only.
- User
Name string - The user name.
- Safe
Auth intExempt Duration - The exempt duration of safe auth, Ensure the setting scope is for a single sub-account only.
- safe
Auth StringType - The type of safe auth, Ensure the setting scope is for a single sub-account only.
- user
Name String - The user name.
- safe
Auth IntegerExempt Duration - The exempt duration of safe auth, Ensure the setting scope is for a single sub-account only.
- safe
Auth stringType - The type of safe auth, Ensure the setting scope is for a single sub-account only.
- user
Name string - The user name.
- safe
Auth numberExempt Duration - The exempt duration of safe auth, Ensure the setting scope is for a single sub-account only.
- safe_
auth_ strtype - The type of safe auth, Ensure the setting scope is for a single sub-account only.
- user_
name str - The user name.
- safe_
auth_ intexempt_ duration - The exempt duration of safe auth, Ensure the setting scope is for a single sub-account only.
- safe
Auth StringType - The type of safe auth, Ensure the setting scope is for a single sub-account only.
- user
Name String - The user name.
- safe
Auth NumberExempt Duration - 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.
- Safe
Auth intClose - 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.
- Safe
Auth intClose - 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.
- safe
Auth IntegerClose - The status of safe auth, Ensure the setting scope is for a single sub-account only.
- user
Id Integer - The user id.
- id string
- The provider-assigned unique ID for this managed resource.
- safe
Auth numberClose - The status of safe auth, Ensure the setting scope is for a single sub-account only.
- user
Id number - The user id.
- id str
- The provider-assigned unique ID for this managed resource.
- safe_
auth_ intclose - 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.
- safe
Auth NumberClose - The status of safe auth, Ensure the setting scope is for a single sub-account only.
- user
Id 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) -> SecurityConfigfunc 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.
- Safe
Auth intClose - The status of safe auth, Ensure the setting scope is for a single sub-account only.
- Safe
Auth intExempt Duration - The exempt duration of safe auth, Ensure the setting scope is for a single sub-account only.
- Safe
Auth stringType - The type of safe auth, Ensure the setting scope is for a single sub-account only.
- User
Id int - The user id.
- User
Name string - The user name.
- Safe
Auth intClose - The status of safe auth, Ensure the setting scope is for a single sub-account only.
- Safe
Auth intExempt Duration - The exempt duration of safe auth, Ensure the setting scope is for a single sub-account only.
- Safe
Auth stringType - The type of safe auth, Ensure the setting scope is for a single sub-account only.
- User
Id int - The user id.
- User
Name string - The user name.
- safe
Auth IntegerClose - The status of safe auth, Ensure the setting scope is for a single sub-account only.
- safe
Auth IntegerExempt Duration - The exempt duration of safe auth, Ensure the setting scope is for a single sub-account only.
- safe
Auth StringType - The type of safe auth, Ensure the setting scope is for a single sub-account only.
- user
Id Integer - The user id.
- user
Name String - The user name.
- safe
Auth numberClose - The status of safe auth, Ensure the setting scope is for a single sub-account only.
- safe
Auth numberExempt Duration - The exempt duration of safe auth, Ensure the setting scope is for a single sub-account only.
- safe
Auth stringType - The type of safe auth, Ensure the setting scope is for a single sub-account only.
- user
Id number - The user id.
- user
Name string - The user name.
- safe_
auth_ intclose - The status of safe auth, Ensure the setting scope is for a single sub-account only.
- safe_
auth_ intexempt_ duration - The exempt duration of safe auth, Ensure the setting scope is for a single sub-account only.
- safe_
auth_ strtype - 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.
- safe
Auth NumberClose - The status of safe auth, Ensure the setting scope is for a single sub-account only.
- safe
Auth NumberExempt Duration - The exempt duration of safe auth, Ensure the setting scope is for a single sub-account only.
- safe
Auth StringType - The type of safe auth, Ensure the setting scope is for a single sub-account only.
- user
Id Number - The user id.
- user
Name 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
volcengineTerraform Provider.
