azure-native.servicefabricmesh.SecretValue
Explore with Pulumi AI
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",
});
});
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
})
}
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: "string",
SecretResourceName: "string",
Location: "string",
SecretValueResourceName: "string",
Tags: map[string]interface{}{
"string": "string",
},
Value: "string",
})
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());
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:
- Resource
Group stringName - Azure resource group name
- Secret
Resource stringName - The name of the secret resource.
- Location string
- The geo-location where the resource lives
- Secret
Value stringResource Name - The name of the secret resource value which is typically the version identifier for the value.
- Dictionary<string, string>
- Resource tags.
- Value string
- The actual value of the secret.
- Resource
Group stringName - Azure resource group name
- Secret
Resource stringName - The name of the secret resource.
- Location string
- The geo-location where the resource lives
- Secret
Value stringResource Name - The name of the secret resource value which is typically the version identifier for the value.
- map[string]string
- Resource tags.
- Value string
- The actual value of the secret.
- resource
Group StringName - Azure resource group name
- secret
Resource StringName - The name of the secret resource.
- location String
- The geo-location where the resource lives
- secret
Value StringResource Name - The name of the secret resource value which is typically the version identifier for the value.
- Map<String,String>
- Resource tags.
- value String
- The actual value of the secret.
- resource
Group stringName - Azure resource group name
- secret
Resource stringName - The name of the secret resource.
- location string
- The geo-location where the resource lives
- secret
Value stringResource Name - The name of the secret resource value which is typically the version identifier for the value.
- {[key: string]: string}
- Resource tags.
- value string
- The actual value of the secret.
- resource_
group_ strname - Azure resource group name
- secret_
resource_ strname - The name of the secret resource.
- location str
- The geo-location where the resource lives
- secret_
value_ strresource_ name - The name of the secret resource value which is typically the version identifier for the value.
- Mapping[str, str]
- Resource tags.
- value str
- The actual value of the secret.
- resource
Group StringName - Azure resource group name
- secret
Resource StringName - The name of the secret resource.
- location String
- The geo-location where the resource lives
- secret
Value StringResource Name - The name of the secret resource value which is typically the version identifier for the value.
- 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
- Provisioning
State 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
- Provisioning
State 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
- provisioning
State 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
- provisioning
State 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
- provisioning
State 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
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