Snowflake v0.55.0 published on Friday, Jun 7, 2024 by Pulumi
snowflake.UserPublicKeys
Explore with Pulumi AI
Create UserPublicKeys Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new UserPublicKeys(name: string, args?: UserPublicKeysArgs, opts?: CustomResourceOptions);
@overload
def UserPublicKeys(resource_name: str,
args: Optional[UserPublicKeysArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def UserPublicKeys(resource_name: str,
opts: Optional[ResourceOptions] = None,
name: Optional[str] = None,
rsa_public_key: Optional[str] = None,
rsa_public_key2: Optional[str] = None)
func NewUserPublicKeys(ctx *Context, name string, args *UserPublicKeysArgs, opts ...ResourceOption) (*UserPublicKeys, error)
public UserPublicKeys(string name, UserPublicKeysArgs? args = null, CustomResourceOptions? opts = null)
public UserPublicKeys(String name, UserPublicKeysArgs args)
public UserPublicKeys(String name, UserPublicKeysArgs args, CustomResourceOptions options)
type: snowflake:UserPublicKeys
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 UserPublicKeysArgs
- 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 UserPublicKeysArgs
- 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 UserPublicKeysArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args UserPublicKeysArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args UserPublicKeysArgs
- 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 userPublicKeysResource = new Snowflake.UserPublicKeys("userPublicKeysResource", new()
{
Name = "string",
RsaPublicKey = "string",
RsaPublicKey2 = "string",
});
example, err := snowflake.NewUserPublicKeys(ctx, "userPublicKeysResource", &snowflake.UserPublicKeysArgs{
Name: pulumi.String("string"),
RsaPublicKey: pulumi.String("string"),
RsaPublicKey2: pulumi.String("string"),
})
var userPublicKeysResource = new UserPublicKeys("userPublicKeysResource", UserPublicKeysArgs.builder()
.name("string")
.rsaPublicKey("string")
.rsaPublicKey2("string")
.build());
user_public_keys_resource = snowflake.UserPublicKeys("userPublicKeysResource",
name="string",
rsa_public_key="string",
rsa_public_key2="string")
const userPublicKeysResource = new snowflake.UserPublicKeys("userPublicKeysResource", {
name: "string",
rsaPublicKey: "string",
rsaPublicKey2: "string",
});
type: snowflake:UserPublicKeys
properties:
name: string
rsaPublicKey: string
rsaPublicKey2: string
UserPublicKeys Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The UserPublicKeys resource accepts the following input properties:
- Name string
- Name of the user.
- Rsa
Public stringKey - Specifies the user’s RSA public key; used for key-pair authentication. Must be on 1 line without header and trailer.
- Rsa
Public stringKey2 - Specifies the user’s second RSA public key; used to rotate the public and Public keys for key-pair authentication based on an expiration schedule set by your organization. Must be on 1 line without header and trailer.
- Name string
- Name of the user.
- Rsa
Public stringKey - Specifies the user’s RSA public key; used for key-pair authentication. Must be on 1 line without header and trailer.
- Rsa
Public stringKey2 - Specifies the user’s second RSA public key; used to rotate the public and Public keys for key-pair authentication based on an expiration schedule set by your organization. Must be on 1 line without header and trailer.
- name String
- Name of the user.
- rsa
Public StringKey - Specifies the user’s RSA public key; used for key-pair authentication. Must be on 1 line without header and trailer.
- rsa
Public StringKey2 - Specifies the user’s second RSA public key; used to rotate the public and Public keys for key-pair authentication based on an expiration schedule set by your organization. Must be on 1 line without header and trailer.
- name string
- Name of the user.
- rsa
Public stringKey - Specifies the user’s RSA public key; used for key-pair authentication. Must be on 1 line without header and trailer.
- rsa
Public stringKey2 - Specifies the user’s second RSA public key; used to rotate the public and Public keys for key-pair authentication based on an expiration schedule set by your organization. Must be on 1 line without header and trailer.
- name str
- Name of the user.
- rsa_
public_ strkey - Specifies the user’s RSA public key; used for key-pair authentication. Must be on 1 line without header and trailer.
- rsa_
public_ strkey2 - Specifies the user’s second RSA public key; used to rotate the public and Public keys for key-pair authentication based on an expiration schedule set by your organization. Must be on 1 line without header and trailer.
- name String
- Name of the user.
- rsa
Public StringKey - Specifies the user’s RSA public key; used for key-pair authentication. Must be on 1 line without header and trailer.
- rsa
Public StringKey2 - Specifies the user’s second RSA public key; used to rotate the public and Public keys for key-pair authentication based on an expiration schedule set by your organization. Must be on 1 line without header and trailer.
Outputs
All input properties are implicitly available as output properties. Additionally, the UserPublicKeys 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 UserPublicKeys Resource
Get an existing UserPublicKeys 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?: UserPublicKeysState, opts?: CustomResourceOptions): UserPublicKeys
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
name: Optional[str] = None,
rsa_public_key: Optional[str] = None,
rsa_public_key2: Optional[str] = None) -> UserPublicKeys
func GetUserPublicKeys(ctx *Context, name string, id IDInput, state *UserPublicKeysState, opts ...ResourceOption) (*UserPublicKeys, error)
public static UserPublicKeys Get(string name, Input<string> id, UserPublicKeysState? state, CustomResourceOptions? opts = null)
public static UserPublicKeys get(String name, Output<String> id, UserPublicKeysState 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.
- Name string
- Name of the user.
- Rsa
Public stringKey - Specifies the user’s RSA public key; used for key-pair authentication. Must be on 1 line without header and trailer.
- Rsa
Public stringKey2 - Specifies the user’s second RSA public key; used to rotate the public and Public keys for key-pair authentication based on an expiration schedule set by your organization. Must be on 1 line without header and trailer.
- Name string
- Name of the user.
- Rsa
Public stringKey - Specifies the user’s RSA public key; used for key-pair authentication. Must be on 1 line without header and trailer.
- Rsa
Public stringKey2 - Specifies the user’s second RSA public key; used to rotate the public and Public keys for key-pair authentication based on an expiration schedule set by your organization. Must be on 1 line without header and trailer.
- name String
- Name of the user.
- rsa
Public StringKey - Specifies the user’s RSA public key; used for key-pair authentication. Must be on 1 line without header and trailer.
- rsa
Public StringKey2 - Specifies the user’s second RSA public key; used to rotate the public and Public keys for key-pair authentication based on an expiration schedule set by your organization. Must be on 1 line without header and trailer.
- name string
- Name of the user.
- rsa
Public stringKey - Specifies the user’s RSA public key; used for key-pair authentication. Must be on 1 line without header and trailer.
- rsa
Public stringKey2 - Specifies the user’s second RSA public key; used to rotate the public and Public keys for key-pair authentication based on an expiration schedule set by your organization. Must be on 1 line without header and trailer.
- name str
- Name of the user.
- rsa_
public_ strkey - Specifies the user’s RSA public key; used for key-pair authentication. Must be on 1 line without header and trailer.
- rsa_
public_ strkey2 - Specifies the user’s second RSA public key; used to rotate the public and Public keys for key-pair authentication based on an expiration schedule set by your organization. Must be on 1 line without header and trailer.
- name String
- Name of the user.
- rsa
Public StringKey - Specifies the user’s RSA public key; used for key-pair authentication. Must be on 1 line without header and trailer.
- rsa
Public StringKey2 - Specifies the user’s second RSA public key; used to rotate the public and Public keys for key-pair authentication based on an expiration schedule set by your organization. Must be on 1 line without header and trailer.
Package Details
- Repository
- Snowflake pulumi/pulumi-snowflake
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
snowflake
Terraform Provider.