1. Packages
  2. Snowflake Provider
  3. API Docs
  4. UserAuthenticationPolicyAttachment
Snowflake v0.61.1 published on Thursday, Nov 14, 2024 by Pulumi

snowflake.UserAuthenticationPolicyAttachment

Explore with Pulumi AI

snowflake logo
Snowflake v0.61.1 published on Thursday, Nov 14, 2024 by Pulumi

    Create UserAuthenticationPolicyAttachment Resource

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

    Constructor syntax

    new UserAuthenticationPolicyAttachment(name: string, args: UserAuthenticationPolicyAttachmentArgs, opts?: CustomResourceOptions);
    @overload
    def UserAuthenticationPolicyAttachment(resource_name: str,
                                           args: UserAuthenticationPolicyAttachmentArgs,
                                           opts: Optional[ResourceOptions] = None)
    
    @overload
    def UserAuthenticationPolicyAttachment(resource_name: str,
                                           opts: Optional[ResourceOptions] = None,
                                           authentication_policy_name: Optional[str] = None,
                                           user_name: Optional[str] = None)
    func NewUserAuthenticationPolicyAttachment(ctx *Context, name string, args UserAuthenticationPolicyAttachmentArgs, opts ...ResourceOption) (*UserAuthenticationPolicyAttachment, error)
    public UserAuthenticationPolicyAttachment(string name, UserAuthenticationPolicyAttachmentArgs args, CustomResourceOptions? opts = null)
    public UserAuthenticationPolicyAttachment(String name, UserAuthenticationPolicyAttachmentArgs args)
    public UserAuthenticationPolicyAttachment(String name, UserAuthenticationPolicyAttachmentArgs args, CustomResourceOptions options)
    
    type: snowflake:UserAuthenticationPolicyAttachment
    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 UserAuthenticationPolicyAttachmentArgs
    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 UserAuthenticationPolicyAttachmentArgs
    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 UserAuthenticationPolicyAttachmentArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args UserAuthenticationPolicyAttachmentArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args UserAuthenticationPolicyAttachmentArgs
    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 userAuthenticationPolicyAttachmentResource = new Snowflake.UserAuthenticationPolicyAttachment("userAuthenticationPolicyAttachmentResource", new()
    {
        AuthenticationPolicyName = "string",
        UserName = "string",
    });
    
    example, err := snowflake.NewUserAuthenticationPolicyAttachment(ctx, "userAuthenticationPolicyAttachmentResource", &snowflake.UserAuthenticationPolicyAttachmentArgs{
    	AuthenticationPolicyName: pulumi.String("string"),
    	UserName:                 pulumi.String("string"),
    })
    
    var userAuthenticationPolicyAttachmentResource = new UserAuthenticationPolicyAttachment("userAuthenticationPolicyAttachmentResource", UserAuthenticationPolicyAttachmentArgs.builder()
        .authenticationPolicyName("string")
        .userName("string")
        .build());
    
    user_authentication_policy_attachment_resource = snowflake.UserAuthenticationPolicyAttachment("userAuthenticationPolicyAttachmentResource",
        authentication_policy_name="string",
        user_name="string")
    
    const userAuthenticationPolicyAttachmentResource = new snowflake.UserAuthenticationPolicyAttachment("userAuthenticationPolicyAttachmentResource", {
        authenticationPolicyName: "string",
        userName: "string",
    });
    
    type: snowflake:UserAuthenticationPolicyAttachment
    properties:
        authenticationPolicyName: string
        userName: string
    

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

    AuthenticationPolicyName string
    Fully qualified name of the authentication policy
    UserName string
    User name of the user you want to attach the authentication policy to
    AuthenticationPolicyName string
    Fully qualified name of the authentication policy
    UserName string
    User name of the user you want to attach the authentication policy to
    authenticationPolicyName String
    Fully qualified name of the authentication policy
    userName String
    User name of the user you want to attach the authentication policy to
    authenticationPolicyName string
    Fully qualified name of the authentication policy
    userName string
    User name of the user you want to attach the authentication policy to
    authentication_policy_name str
    Fully qualified name of the authentication policy
    user_name str
    User name of the user you want to attach the authentication policy to
    authenticationPolicyName String
    Fully qualified name of the authentication policy
    userName String
    User name of the user you want to attach the authentication policy to

    Outputs

    All input properties are implicitly available as output properties. Additionally, the UserAuthenticationPolicyAttachment 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 UserAuthenticationPolicyAttachment Resource

    Get an existing UserAuthenticationPolicyAttachment 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?: UserAuthenticationPolicyAttachmentState, opts?: CustomResourceOptions): UserAuthenticationPolicyAttachment
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            authentication_policy_name: Optional[str] = None,
            user_name: Optional[str] = None) -> UserAuthenticationPolicyAttachment
    func GetUserAuthenticationPolicyAttachment(ctx *Context, name string, id IDInput, state *UserAuthenticationPolicyAttachmentState, opts ...ResourceOption) (*UserAuthenticationPolicyAttachment, error)
    public static UserAuthenticationPolicyAttachment Get(string name, Input<string> id, UserAuthenticationPolicyAttachmentState? state, CustomResourceOptions? opts = null)
    public static UserAuthenticationPolicyAttachment get(String name, Output<String> id, UserAuthenticationPolicyAttachmentState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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:
    AuthenticationPolicyName string
    Fully qualified name of the authentication policy
    UserName string
    User name of the user you want to attach the authentication policy to
    AuthenticationPolicyName string
    Fully qualified name of the authentication policy
    UserName string
    User name of the user you want to attach the authentication policy to
    authenticationPolicyName String
    Fully qualified name of the authentication policy
    userName String
    User name of the user you want to attach the authentication policy to
    authenticationPolicyName string
    Fully qualified name of the authentication policy
    userName string
    User name of the user you want to attach the authentication policy to
    authentication_policy_name str
    Fully qualified name of the authentication policy
    user_name str
    User name of the user you want to attach the authentication policy to
    authenticationPolicyName String
    Fully qualified name of the authentication policy
    userName String
    User name of the user you want to attach the authentication policy to

    Package Details

    Repository
    Snowflake pulumi/pulumi-snowflake
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the snowflake Terraform Provider.
    snowflake logo
    Snowflake v0.61.1 published on Thursday, Nov 14, 2024 by Pulumi