snowflake.SecretWithGenericString
Explore with Pulumi AI
Import
$ pulumi import snowflake:index/secretWithGenericString:SecretWithGenericString example '"<database_name>"."<schema_name>"."<secret_name>"'
Create SecretWithGenericString Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SecretWithGenericString(name: string, args: SecretWithGenericStringArgs, opts?: CustomResourceOptions);@overload
def SecretWithGenericString(resource_name: str,
                            args: SecretWithGenericStringArgs,
                            opts: Optional[ResourceOptions] = None)
@overload
def SecretWithGenericString(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            database: Optional[str] = None,
                            schema: Optional[str] = None,
                            secret_string: Optional[str] = None,
                            comment: Optional[str] = None,
                            name: Optional[str] = None)func NewSecretWithGenericString(ctx *Context, name string, args SecretWithGenericStringArgs, opts ...ResourceOption) (*SecretWithGenericString, error)public SecretWithGenericString(string name, SecretWithGenericStringArgs args, CustomResourceOptions? opts = null)
public SecretWithGenericString(String name, SecretWithGenericStringArgs args)
public SecretWithGenericString(String name, SecretWithGenericStringArgs args, CustomResourceOptions options)
type: snowflake:SecretWithGenericString
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 SecretWithGenericStringArgs
- 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 SecretWithGenericStringArgs
- 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 SecretWithGenericStringArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SecretWithGenericStringArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SecretWithGenericStringArgs
- 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 secretWithGenericStringResource = new Snowflake.SecretWithGenericString("secretWithGenericStringResource", new()
{
    Database = "string",
    Schema = "string",
    SecretString = "string",
    Comment = "string",
    Name = "string",
});
example, err := snowflake.NewSecretWithGenericString(ctx, "secretWithGenericStringResource", &snowflake.SecretWithGenericStringArgs{
	Database:     pulumi.String("string"),
	Schema:       pulumi.String("string"),
	SecretString: pulumi.String("string"),
	Comment:      pulumi.String("string"),
	Name:         pulumi.String("string"),
})
var secretWithGenericStringResource = new SecretWithGenericString("secretWithGenericStringResource", SecretWithGenericStringArgs.builder()
    .database("string")
    .schema("string")
    .secretString("string")
    .comment("string")
    .name("string")
    .build());
secret_with_generic_string_resource = snowflake.SecretWithGenericString("secretWithGenericStringResource",
    database="string",
    schema="string",
    secret_string="string",
    comment="string",
    name="string")
const secretWithGenericStringResource = new snowflake.SecretWithGenericString("secretWithGenericStringResource", {
    database: "string",
    schema: "string",
    secretString: "string",
    comment: "string",
    name: "string",
});
type: snowflake:SecretWithGenericString
properties:
    comment: string
    database: string
    name: string
    schema: string
    secretString: string
SecretWithGenericString 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 SecretWithGenericString resource accepts the following input properties:
- Database string
- The database in which to create the secret Due to technical limitations (read more here), avoid using the following characters: |,.,".
- Schema string
- The schema in which to create the secret. Due to technical limitations (read more here), avoid using the following characters: |,.,".
- SecretString string
- Comment string
- Specifies a comment for the secret.
- Name string
- String that specifies the identifier (i.e. name) for the secret, must be unique in your schema. Due to technical limitations (read more here), avoid using the following characters: |,.,".
- Database string
- The database in which to create the secret Due to technical limitations (read more here), avoid using the following characters: |,.,".
- Schema string
- The schema in which to create the secret. Due to technical limitations (read more here), avoid using the following characters: |,.,".
- SecretString string
- Comment string
- Specifies a comment for the secret.
- Name string
- String that specifies the identifier (i.e. name) for the secret, must be unique in your schema. Due to technical limitations (read more here), avoid using the following characters: |,.,".
- database String
- The database in which to create the secret Due to technical limitations (read more here), avoid using the following characters: |,.,".
- schema String
- The schema in which to create the secret. Due to technical limitations (read more here), avoid using the following characters: |,.,".
- secretString String
- comment String
- Specifies a comment for the secret.
- name String
- String that specifies the identifier (i.e. name) for the secret, must be unique in your schema. Due to technical limitations (read more here), avoid using the following characters: |,.,".
- database string
- The database in which to create the secret Due to technical limitations (read more here), avoid using the following characters: |,.,".
- schema string
- The schema in which to create the secret. Due to technical limitations (read more here), avoid using the following characters: |,.,".
- secretString string
- comment string
- Specifies a comment for the secret.
- name string
- String that specifies the identifier (i.e. name) for the secret, must be unique in your schema. Due to technical limitations (read more here), avoid using the following characters: |,.,".
- database str
- The database in which to create the secret Due to technical limitations (read more here), avoid using the following characters: |,.,".
- schema str
- The schema in which to create the secret. Due to technical limitations (read more here), avoid using the following characters: |,.,".
- secret_string str
- comment str
- Specifies a comment for the secret.
- name str
- String that specifies the identifier (i.e. name) for the secret, must be unique in your schema. Due to technical limitations (read more here), avoid using the following characters: |,.,".
- database String
- The database in which to create the secret Due to technical limitations (read more here), avoid using the following characters: |,.,".
- schema String
- The schema in which to create the secret. Due to technical limitations (read more here), avoid using the following characters: |,.,".
- secretString String
- comment String
- Specifies a comment for the secret.
- name String
- String that specifies the identifier (i.e. name) for the secret, must be unique in your schema. Due to technical limitations (read more here), avoid using the following characters: |,.,".
Outputs
All input properties are implicitly available as output properties. Additionally, the SecretWithGenericString resource produces the following output properties:
- DescribeOutputs List<SecretWith Generic String Describe Output> 
- Outputs the result of DESCRIBE SECRETfor the given secret.
- FullyQualified stringName 
- Fully qualified name of the resource. For more information, see object name resolution.
- Id string
- The provider-assigned unique ID for this managed resource.
- SecretType string
- Specifies a type for the secret. This field is used for checking external changes and recreating the resources if needed.
- ShowOutputs List<SecretWith Generic String Show Output> 
- Outputs the result of SHOW SECRETSfor the given secret.
- DescribeOutputs []SecretWith Generic String Describe Output 
- Outputs the result of DESCRIBE SECRETfor the given secret.
- FullyQualified stringName 
- Fully qualified name of the resource. For more information, see object name resolution.
- Id string
- The provider-assigned unique ID for this managed resource.
- SecretType string
- Specifies a type for the secret. This field is used for checking external changes and recreating the resources if needed.
- ShowOutputs []SecretWith Generic String Show Output 
- Outputs the result of SHOW SECRETSfor the given secret.
- describeOutputs List<SecretWith Generic String Describe Output> 
- Outputs the result of DESCRIBE SECRETfor the given secret.
- fullyQualified StringName 
- Fully qualified name of the resource. For more information, see object name resolution.
- id String
- The provider-assigned unique ID for this managed resource.
- secretType String
- Specifies a type for the secret. This field is used for checking external changes and recreating the resources if needed.
- showOutputs List<SecretWith Generic String Show Output> 
- Outputs the result of SHOW SECRETSfor the given secret.
- describeOutputs SecretWith Generic String Describe Output[] 
- Outputs the result of DESCRIBE SECRETfor the given secret.
- fullyQualified stringName 
- Fully qualified name of the resource. For more information, see object name resolution.
- id string
- The provider-assigned unique ID for this managed resource.
- secretType string
- Specifies a type for the secret. This field is used for checking external changes and recreating the resources if needed.
- showOutputs SecretWith Generic String Show Output[] 
- Outputs the result of SHOW SECRETSfor the given secret.
- describe_outputs Sequence[SecretWith Generic String Describe Output] 
- Outputs the result of DESCRIBE SECRETfor the given secret.
- fully_qualified_ strname 
- Fully qualified name of the resource. For more information, see object name resolution.
- id str
- The provider-assigned unique ID for this managed resource.
- secret_type str
- Specifies a type for the secret. This field is used for checking external changes and recreating the resources if needed.
- show_outputs Sequence[SecretWith Generic String Show Output] 
- Outputs the result of SHOW SECRETSfor the given secret.
- describeOutputs List<Property Map>
- Outputs the result of DESCRIBE SECRETfor the given secret.
- fullyQualified StringName 
- Fully qualified name of the resource. For more information, see object name resolution.
- id String
- The provider-assigned unique ID for this managed resource.
- secretType String
- Specifies a type for the secret. This field is used for checking external changes and recreating the resources if needed.
- showOutputs List<Property Map>
- Outputs the result of SHOW SECRETSfor the given secret.
Look up Existing SecretWithGenericString Resource
Get an existing SecretWithGenericString 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?: SecretWithGenericStringState, opts?: CustomResourceOptions): SecretWithGenericString@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        comment: Optional[str] = None,
        database: Optional[str] = None,
        describe_outputs: Optional[Sequence[SecretWithGenericStringDescribeOutputArgs]] = None,
        fully_qualified_name: Optional[str] = None,
        name: Optional[str] = None,
        schema: Optional[str] = None,
        secret_string: Optional[str] = None,
        secret_type: Optional[str] = None,
        show_outputs: Optional[Sequence[SecretWithGenericStringShowOutputArgs]] = None) -> SecretWithGenericStringfunc GetSecretWithGenericString(ctx *Context, name string, id IDInput, state *SecretWithGenericStringState, opts ...ResourceOption) (*SecretWithGenericString, error)public static SecretWithGenericString Get(string name, Input<string> id, SecretWithGenericStringState? state, CustomResourceOptions? opts = null)public static SecretWithGenericString get(String name, Output<String> id, SecretWithGenericStringState state, CustomResourceOptions options)resources:  _:    type: snowflake:SecretWithGenericString    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.
- Comment string
- Specifies a comment for the secret.
- Database string
- The database in which to create the secret Due to technical limitations (read more here), avoid using the following characters: |,.,".
- DescribeOutputs List<SecretWith Generic String Describe Output> 
- Outputs the result of DESCRIBE SECRETfor the given secret.
- FullyQualified stringName 
- Fully qualified name of the resource. For more information, see object name resolution.
- Name string
- String that specifies the identifier (i.e. name) for the secret, must be unique in your schema. Due to technical limitations (read more here), avoid using the following characters: |,.,".
- Schema string
- The schema in which to create the secret. Due to technical limitations (read more here), avoid using the following characters: |,.,".
- SecretString string
- SecretType string
- Specifies a type for the secret. This field is used for checking external changes and recreating the resources if needed.
- ShowOutputs List<SecretWith Generic String Show Output> 
- Outputs the result of SHOW SECRETSfor the given secret.
- Comment string
- Specifies a comment for the secret.
- Database string
- The database in which to create the secret Due to technical limitations (read more here), avoid using the following characters: |,.,".
- DescribeOutputs []SecretWith Generic String Describe Output Args 
- Outputs the result of DESCRIBE SECRETfor the given secret.
- FullyQualified stringName 
- Fully qualified name of the resource. For more information, see object name resolution.
- Name string
- String that specifies the identifier (i.e. name) for the secret, must be unique in your schema. Due to technical limitations (read more here), avoid using the following characters: |,.,".
- Schema string
- The schema in which to create the secret. Due to technical limitations (read more here), avoid using the following characters: |,.,".
- SecretString string
- SecretType string
- Specifies a type for the secret. This field is used for checking external changes and recreating the resources if needed.
- ShowOutputs []SecretWith Generic String Show Output Args 
- Outputs the result of SHOW SECRETSfor the given secret.
- comment String
- Specifies a comment for the secret.
- database String
- The database in which to create the secret Due to technical limitations (read more here), avoid using the following characters: |,.,".
- describeOutputs List<SecretWith Generic String Describe Output> 
- Outputs the result of DESCRIBE SECRETfor the given secret.
- fullyQualified StringName 
- Fully qualified name of the resource. For more information, see object name resolution.
- name String
- String that specifies the identifier (i.e. name) for the secret, must be unique in your schema. Due to technical limitations (read more here), avoid using the following characters: |,.,".
- schema String
- The schema in which to create the secret. Due to technical limitations (read more here), avoid using the following characters: |,.,".
- secretString String
- secretType String
- Specifies a type for the secret. This field is used for checking external changes and recreating the resources if needed.
- showOutputs List<SecretWith Generic String Show Output> 
- Outputs the result of SHOW SECRETSfor the given secret.
- comment string
- Specifies a comment for the secret.
- database string
- The database in which to create the secret Due to technical limitations (read more here), avoid using the following characters: |,.,".
- describeOutputs SecretWith Generic String Describe Output[] 
- Outputs the result of DESCRIBE SECRETfor the given secret.
- fullyQualified stringName 
- Fully qualified name of the resource. For more information, see object name resolution.
- name string
- String that specifies the identifier (i.e. name) for the secret, must be unique in your schema. Due to technical limitations (read more here), avoid using the following characters: |,.,".
- schema string
- The schema in which to create the secret. Due to technical limitations (read more here), avoid using the following characters: |,.,".
- secretString string
- secretType string
- Specifies a type for the secret. This field is used for checking external changes and recreating the resources if needed.
- showOutputs SecretWith Generic String Show Output[] 
- Outputs the result of SHOW SECRETSfor the given secret.
- comment str
- Specifies a comment for the secret.
- database str
- The database in which to create the secret Due to technical limitations (read more here), avoid using the following characters: |,.,".
- describe_outputs Sequence[SecretWith Generic String Describe Output Args] 
- Outputs the result of DESCRIBE SECRETfor the given secret.
- fully_qualified_ strname 
- Fully qualified name of the resource. For more information, see object name resolution.
- name str
- String that specifies the identifier (i.e. name) for the secret, must be unique in your schema. Due to technical limitations (read more here), avoid using the following characters: |,.,".
- schema str
- The schema in which to create the secret. Due to technical limitations (read more here), avoid using the following characters: |,.,".
- secret_string str
- secret_type str
- Specifies a type for the secret. This field is used for checking external changes and recreating the resources if needed.
- show_outputs Sequence[SecretWith Generic String Show Output Args] 
- Outputs the result of SHOW SECRETSfor the given secret.
- comment String
- Specifies a comment for the secret.
- database String
- The database in which to create the secret Due to technical limitations (read more here), avoid using the following characters: |,.,".
- describeOutputs List<Property Map>
- Outputs the result of DESCRIBE SECRETfor the given secret.
- fullyQualified StringName 
- Fully qualified name of the resource. For more information, see object name resolution.
- name String
- String that specifies the identifier (i.e. name) for the secret, must be unique in your schema. Due to technical limitations (read more here), avoid using the following characters: |,.,".
- schema String
- The schema in which to create the secret. Due to technical limitations (read more here), avoid using the following characters: |,.,".
- secretString String
- secretType String
- Specifies a type for the secret. This field is used for checking external changes and recreating the resources if needed.
- showOutputs List<Property Map>
- Outputs the result of SHOW SECRETSfor the given secret.
Supporting Types
SecretWithGenericStringDescribeOutput, SecretWithGenericStringDescribeOutputArgs            
- Comment string
- CreatedOn string
- DatabaseName string
- IntegrationName string
- Name string
- OauthAccess stringToken Expiry Time 
- OauthRefresh stringToken Expiry Time 
- OauthScopes List<string>
- Owner string
- SchemaName string
- SecretType string
- Username string
- Comment string
- CreatedOn string
- DatabaseName string
- IntegrationName string
- Name string
- OauthAccess stringToken Expiry Time 
- OauthRefresh stringToken Expiry Time 
- OauthScopes []string
- Owner string
- SchemaName string
- SecretType string
- Username string
- comment String
- createdOn String
- databaseName String
- integrationName String
- name String
- oauthAccess StringToken Expiry Time 
- oauthRefresh StringToken Expiry Time 
- oauthScopes List<String>
- owner String
- schemaName String
- secretType String
- username String
- comment string
- createdOn string
- databaseName string
- integrationName string
- name string
- oauthAccess stringToken Expiry Time 
- oauthRefresh stringToken Expiry Time 
- oauthScopes string[]
- owner string
- schemaName string
- secretType string
- username string
- comment str
- created_on str
- database_name str
- integration_name str
- name str
- oauth_access_ strtoken_ expiry_ time 
- oauth_refresh_ strtoken_ expiry_ time 
- oauth_scopes Sequence[str]
- owner str
- schema_name str
- secret_type str
- username str
- comment String
- createdOn String
- databaseName String
- integrationName String
- name String
- oauthAccess StringToken Expiry Time 
- oauthRefresh StringToken Expiry Time 
- oauthScopes List<String>
- owner String
- schemaName String
- secretType String
- username String
SecretWithGenericStringShowOutput, SecretWithGenericStringShowOutputArgs            
- Comment string
- CreatedOn string
- DatabaseName string
- Name string
- OauthScopes List<string>
- Owner string
- OwnerRole stringType 
- SchemaName string
- SecretType string
- Comment string
- CreatedOn string
- DatabaseName string
- Name string
- OauthScopes []string
- Owner string
- OwnerRole stringType 
- SchemaName string
- SecretType string
- comment String
- createdOn String
- databaseName String
- name String
- oauthScopes List<String>
- owner String
- ownerRole StringType 
- schemaName String
- secretType String
- comment string
- createdOn string
- databaseName string
- name string
- oauthScopes string[]
- owner string
- ownerRole stringType 
- schemaName string
- secretType string
- comment str
- created_on str
- database_name str
- name str
- oauth_scopes Sequence[str]
- owner str
- owner_role_ strtype 
- schema_name str
- secret_type str
- comment String
- createdOn String
- databaseName String
- name String
- oauthScopes List<String>
- owner String
- ownerRole StringType 
- schemaName String
- secretType String
Package Details
- Repository
- Snowflake pulumi/pulumi-snowflake
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the snowflakeTerraform Provider.