1. Packages
  2. Azure Native v1
  3. API Docs
  4. servicefabricmesh
  5. SecretValue
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

azure-native.servicefabricmesh.SecretValue

Explore with Pulumi AI

These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 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. API Version: 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",
    });

});
Copy
package main

import (
	servicefabricmesh "github.com/pulumi/pulumi-azure-native-sdk/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
	})
}
Copy
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());

    }
}
Copy
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",
});
Copy
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")
Copy
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
Copy

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 This property is required. string
The unique name of the resource.
args This property is required. SecretValueArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. 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 This property is required. string
The unique name of the resource.
args This property is required. SecretValueArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. SecretValueArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. 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",
});
Copy
example, err := servicefabricmesh.NewSecretValue(ctx, "secretValueResource", &servicefabricmesh.SecretValueArgs{
	ResourceGroupName:       "string",
	SecretResourceName:      "string",
	Location:                "string",
	SecretValueResourceName: "string",
	Tags: map[string]interface{}{
		"string": "string",
	},
	Value: "string",
})
Copy
var secretValueResource = new SecretValue("secretValueResource", SecretValueArgs.builder()
    .resourceGroupName("string")
    .secretResourceName("string")
    .location("string")
    .secretValueResourceName("string")
    .tags(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
    .value("string")
    .build());
Copy
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)
Copy
const secretValueResource = new azure_native.servicefabricmesh.SecretValue("secretValueResource", {
    resourceGroupName: "string",
    secretResourceName: "string",
    location: "string",
    secretValueResourceName: "string",
    tags: {
        string: "string",
    },
    value: "string",
});
Copy
type: azure-native:servicefabricmesh:SecretValue
properties:
    location: string
    resourceGroupName: string
    secretResourceName: string
    secretValueResourceName: string
    tags:
        string: string
    value: string
Copy

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
This property is required.
Changes to this property will trigger replacement.
string
Azure resource group name
SecretResourceName
This property is required.
Changes to this property will trigger replacement.
string
The name of the secret resource.
Location Changes to this property will trigger replacement. string
The geo-location where the resource lives
SecretValueResourceName Changes to this property will trigger replacement. 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
This property is required.
Changes to this property will trigger replacement.
string
Azure resource group name
SecretResourceName
This property is required.
Changes to this property will trigger replacement.
string
The name of the secret resource.
Location Changes to this property will trigger replacement. string
The geo-location where the resource lives
SecretValueResourceName Changes to this property will trigger replacement. 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
This property is required.
Changes to this property will trigger replacement.
String
Azure resource group name
secretResourceName
This property is required.
Changes to this property will trigger replacement.
String
The name of the secret resource.
location Changes to this property will trigger replacement. String
The geo-location where the resource lives
secretValueResourceName Changes to this property will trigger replacement. 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
This property is required.
Changes to this property will trigger replacement.
string
Azure resource group name
secretResourceName
This property is required.
Changes to this property will trigger replacement.
string
The name of the secret resource.
location Changes to this property will trigger replacement. string
The geo-location where the resource lives
secretValueResourceName Changes to this property will trigger replacement. 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
This property is required.
Changes to this property will trigger replacement.
str
Azure resource group name
secret_resource_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the secret resource.
location Changes to this property will trigger replacement. str
The geo-location where the resource lives
secret_value_resource_name Changes to this property will trigger replacement. 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
This property is required.
Changes to this property will trigger replacement.
String
Azure resource group name
secretResourceName
This property is required.
Changes to this property will trigger replacement.
String
The name of the secret resource.
location Changes to this property will trigger replacement. String
The geo-location where the resource lives
secretValueResourceName Changes to this property will trigger replacement. 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 
Copy

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

Package Details

Repository
azure-native-v1 pulumi/pulumi-azure-native
License
Apache-2.0
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi