Azure Native

v1.87.0 published on Tuesday, Nov 22, 2022 by Pulumi

SecretValue

This type describes a value of a secret resource. The name of this resource is the version identifier corresponding to this secret value. API Version: 2018-09-01-preview.

Example Usage

CreateSecretValue

using System.Collections.Generic;
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/go/azure/servicefabricmesh"
	"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

new SecretValue(name: string, args: SecretValueArgs, opts?: CustomResourceOptions);
@overload
def SecretValue(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                location: Optional[str] = None,
                resource_group_name: Optional[str] = None,
                secret_resource_name: Optional[str] = None,
                secret_value_resource_name: Optional[str] = None,
                tags: Optional[Mapping[str, str]] = None,
                value: Optional[str] = None)
@overload
def SecretValue(resource_name: str,
                args: SecretValueArgs,
                opts: Optional[ResourceOptions] = 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.

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.

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

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/00000000-0000-0000-0000-000000000000/resourcegroups/sbz_demo/providers/Microsoft.ServiceFabricMesh/secrets/dbConnectionString/values/v1 

Package Details

Repository
https://github.com/pulumi/pulumi-azure-native
License
Apache-2.0