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.
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",
});
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 Name This property is required. Changes to this property will trigger replacement.
- Azure resource group name
- Secret
Resource Name This property is required. Changes to this property will trigger replacement.
- The name of the secret resource.
- Location
Changes to this property will trigger replacement.
- The geo-location where the resource lives
- Secret
Value Resource Name Changes to this property will trigger replacement.
- 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 Name This property is required. Changes to this property will trigger replacement.
- Azure resource group name
- Secret
Resource Name This property is required. Changes to this property will trigger replacement.
- The name of the secret resource.
- Location
Changes to this property will trigger replacement.
- The geo-location where the resource lives
- Secret
Value Resource Name Changes to this property will trigger replacement.
- 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 Name This property is required. Changes to this property will trigger replacement.
- Azure resource group name
- secret
Resource Name This property is required. Changes to this property will trigger replacement.
- The name of the secret resource.
- location
Changes to this property will trigger replacement.
- The geo-location where the resource lives
- secret
Value Resource Name Changes to this property will trigger replacement.
- 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 Name This property is required. Changes to this property will trigger replacement.
- Azure resource group name
- secret
Resource Name This property is required. Changes to this property will trigger replacement.
- The name of the secret resource.
- location
Changes to this property will trigger replacement.
- The geo-location where the resource lives
- secret
Value Resource Name Changes to this property will trigger replacement.
- 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_ name This property is required. Changes to this property will trigger replacement.
- Azure resource group name
- secret_
resource_ name This property is required. Changes to this property will trigger replacement.
- The name of the secret resource.
- location
Changes to this property will trigger replacement.
- The geo-location where the resource lives
- secret_
value_ resource_ name Changes to this property will trigger replacement.
- 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 Name This property is required. Changes to this property will trigger replacement.
- Azure resource group name
- secret
Resource Name This property is required. Changes to this property will trigger replacement.
- The name of the secret resource.
- location
Changes to this property will trigger replacement.
- The geo-location where the resource lives
- secret
Value Resource Name Changes to this property will trigger replacement.
- 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