1. Packages
  2. Azure Native
  3. API Docs
  4. servicefabricmesh
  5. SecretValue
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.73.0 published on Wednesday, Nov 20, 2024 by Pulumi

azure-native.servicefabricmesh.SecretValue

Explore with Pulumi AI

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.73.0 published on Wednesday, Nov 20, 2024 by Pulumi

    This type describes a value of a secret resource. The name of this resource is the version identifier corresponding to this secret value. Azure REST API version: 2018-09-01-preview. Prior API version in Azure Native 1.x: 2018-09-01-preview.

    Example Usage

    CreateSecretValue

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var secretValue = new AzureNative.ServiceFabricMesh.SecretValue("secretValue", new()
        {
            Location = "West US",
            ResourceGroupName = "sbz_demo",
            SecretResourceName = "dbConnectionString",
            SecretValueResourceName = "v1",
            Value = "mongodb://contoso123:0Fc3IolnL12312asdfawejunASDF@asdfYXX2t8a97kghVcUzcDv98hawelufhawefafnoQRGwNj2nMPL1Y9qsIr9Srdw==@contoso123.documents.azure.com:10255/mydatabase?ssl=true",
        });
    
    });
    
    package main
    
    import (
    	servicefabricmesh "github.com/pulumi/pulumi-azure-native-sdk/servicefabricmesh/v2"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := servicefabricmesh.NewSecretValue(ctx, "secretValue", &servicefabricmesh.SecretValueArgs{
    			Location:                pulumi.String("West US"),
    			ResourceGroupName:       pulumi.String("sbz_demo"),
    			SecretResourceName:      pulumi.String("dbConnectionString"),
    			SecretValueResourceName: pulumi.String("v1"),
    			Value:                   pulumi.String("mongodb://contoso123:0Fc3IolnL12312asdfawejunASDF@asdfYXX2t8a97kghVcUzcDv98hawelufhawefafnoQRGwNj2nMPL1Y9qsIr9Srdw==@contoso123.documents.azure.com:10255/mydatabase?ssl=true"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azurenative.servicefabricmesh.SecretValue;
    import com.pulumi.azurenative.servicefabricmesh.SecretValueArgs;
    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 secretValue = new SecretValue("secretValue", SecretValueArgs.builder()
                .location("West US")
                .resourceGroupName("sbz_demo")
                .secretResourceName("dbConnectionString")
                .secretValueResourceName("v1")
                .value("mongodb://contoso123:0Fc3IolnL12312asdfawejunASDF@asdfYXX2t8a97kghVcUzcDv98hawelufhawefafnoQRGwNj2nMPL1Y9qsIr9Srdw==@contoso123.documents.azure.com:10255/mydatabase?ssl=true")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    secret_value = azure_native.servicefabricmesh.SecretValue("secretValue",
        location="West US",
        resource_group_name="sbz_demo",
        secret_resource_name="dbConnectionString",
        secret_value_resource_name="v1",
        value="mongodb://contoso123:0Fc3IolnL12312asdfawejunASDF@asdfYXX2t8a97kghVcUzcDv98hawelufhawefafnoQRGwNj2nMPL1Y9qsIr9Srdw==@contoso123.documents.azure.com:10255/mydatabase?ssl=true")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const secretValue = new azure_native.servicefabricmesh.SecretValue("secretValue", {
        location: "West US",
        resourceGroupName: "sbz_demo",
        secretResourceName: "dbConnectionString",
        secretValueResourceName: "v1",
        value: "mongodb://contoso123:0Fc3IolnL12312asdfawejunASDF@asdfYXX2t8a97kghVcUzcDv98hawelufhawefafnoQRGwNj2nMPL1Y9qsIr9Srdw==@contoso123.documents.azure.com:10255/mydatabase?ssl=true",
    });
    
    resources:
      secretValue:
        type: azure-native:servicefabricmesh:SecretValue
        properties:
          location: West US
          resourceGroupName: sbz_demo
          secretResourceName: dbConnectionString
          secretValueResourceName: v1
          value: mongodb://contoso123:0Fc3IolnL12312asdfawejunASDF@asdfYXX2t8a97kghVcUzcDv98hawelufhawefafnoQRGwNj2nMPL1Y9qsIr9Srdw==@contoso123.documents.azure.com:10255/mydatabase?ssl=true
    

    Create SecretValue Resource

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

    Constructor syntax

    new SecretValue(name: string, args: SecretValueArgs, opts?: CustomResourceOptions);
    @overload
    def SecretValue(resource_name: str,
                    args: SecretValueArgs,
                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def SecretValue(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    resource_group_name: Optional[str] = None,
                    secret_resource_name: Optional[str] = None,
                    location: Optional[str] = None,
                    secret_value_resource_name: Optional[str] = None,
                    tags: Optional[Mapping[str, str]] = None,
                    value: Optional[str] = None)
    func NewSecretValue(ctx *Context, name string, args SecretValueArgs, opts ...ResourceOption) (*SecretValue, error)
    public SecretValue(string name, SecretValueArgs args, CustomResourceOptions? opts = null)
    public SecretValue(String name, SecretValueArgs args)
    public SecretValue(String name, SecretValueArgs args, CustomResourceOptions options)
    
    type: azure-native:servicefabricmesh:SecretValue
    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 SecretValueArgs
    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 SecretValueArgs
    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 SecretValueArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SecretValueArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SecretValueArgs
    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 secretValueResource = new AzureNative.ServiceFabricMesh.SecretValue("secretValueResource", new()
    {
        ResourceGroupName = "string",
        SecretResourceName = "string",
        Location = "string",
        SecretValueResourceName = "string",
        Tags = 
        {
            { "string", "string" },
        },
        Value = "string",
    });
    
    example, err := servicefabricmesh.NewSecretValue(ctx, "secretValueResource", &servicefabricmesh.SecretValueArgs{
    	ResourceGroupName:       pulumi.String("string"),
    	SecretResourceName:      pulumi.String("string"),
    	Location:                pulumi.String("string"),
    	SecretValueResourceName: pulumi.String("string"),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Value: pulumi.String("string"),
    })
    
    var secretValueResource = new SecretValue("secretValueResource", SecretValueArgs.builder()
        .resourceGroupName("string")
        .secretResourceName("string")
        .location("string")
        .secretValueResourceName("string")
        .tags(Map.of("string", "string"))
        .value("string")
        .build());
    
    secret_value_resource = azure_native.servicefabricmesh.SecretValue("secretValueResource",
        resource_group_name="string",
        secret_resource_name="string",
        location="string",
        secret_value_resource_name="string",
        tags={
            "string": "string",
        },
        value="string")
    
    const secretValueResource = new azure_native.servicefabricmesh.SecretValue("secretValueResource", {
        resourceGroupName: "string",
        secretResourceName: "string",
        location: "string",
        secretValueResourceName: "string",
        tags: {
            string: "string",
        },
        value: "string",
    });
    
    type: azure-native:servicefabricmesh:SecretValue
    properties:
        location: string
        resourceGroupName: string
        secretResourceName: string
        secretValueResourceName: string
        tags:
            string: string
        value: string
    

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

    ResourceGroupName string
    Azure resource group name
    SecretResourceName string
    The name of the secret resource.
    Location string
    The geo-location where the resource lives
    SecretValueResourceName string
    The name of the secret resource value which is typically the version identifier for the value.
    Tags Dictionary<string, string>
    Resource tags.
    Value string
    The actual value of the secret.
    ResourceGroupName string
    Azure resource group name
    SecretResourceName string
    The name of the secret resource.
    Location string
    The geo-location where the resource lives
    SecretValueResourceName string
    The name of the secret resource value which is typically the version identifier for the value.
    Tags map[string]string
    Resource tags.
    Value string
    The actual value of the secret.
    resourceGroupName String
    Azure resource group name
    secretResourceName String
    The name of the secret resource.
    location String
    The geo-location where the resource lives
    secretValueResourceName String
    The name of the secret resource value which is typically the version identifier for the value.
    tags Map<String,String>
    Resource tags.
    value String
    The actual value of the secret.
    resourceGroupName string
    Azure resource group name
    secretResourceName string
    The name of the secret resource.
    location string
    The geo-location where the resource lives
    secretValueResourceName string
    The name of the secret resource value which is typically the version identifier for the value.
    tags {[key: string]: string}
    Resource tags.
    value string
    The actual value of the secret.
    resource_group_name str
    Azure resource group name
    secret_resource_name str
    The name of the secret resource.
    location str
    The geo-location where the resource lives
    secret_value_resource_name str
    The name of the secret resource value which is typically the version identifier for the value.
    tags Mapping[str, str]
    Resource tags.
    value str
    The actual value of the secret.
    resourceGroupName String
    Azure resource group name
    secretResourceName String
    The name of the secret resource.
    location String
    The geo-location where the resource lives
    secretValueResourceName String
    The name of the secret resource value which is typically the version identifier for the value.
    tags Map<String>
    Resource tags.
    value String
    The actual value of the secret.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the resource
    ProvisioningState string
    State of the resource.
    Type string
    The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the resource
    ProvisioningState string
    State of the resource.
    Type string
    The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the resource
    provisioningState String
    State of the resource.
    type String
    The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    The name of the resource
    provisioningState string
    State of the resource.
    type string
    The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    The name of the resource
    provisioning_state str
    State of the resource.
    type str
    The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the resource
    provisioningState String
    State of the resource.
    type String
    The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.

    Import

    An existing resource can be imported using its type token, name, and identifier, e.g.

    $ pulumi import azure-native:servicefabricmesh:SecretValue v1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabricMesh/secrets/{secretResourceName}/values/{secretValueResourceName} 
    

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

    Package Details

    Repository
    Azure Native pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
    Azure Native v2.73.0 published on Wednesday, Nov 20, 2024 by Pulumi