azure-native.datafactory.CredentialOperation
Explore with Pulumi AI
Credential resource type. API Version: 2018-06-01.
Example Usage
Credentials_Create
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var credentialOperation = new AzureNative.DataFactory.CredentialOperation("credentialOperation", new()
{
CredentialName = "exampleCredential",
FactoryName = "exampleFactoryName",
Properties = new AzureNative.DataFactory.Inputs.ManagedIdentityCredentialArgs
{
ResourceId = "/subscriptions/12345678-1234-1234-1234-12345678abc/resourcegroups/exampleResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleUami",
Type = "ManagedIdentity",
},
ResourceGroupName = "exampleResourceGroup",
});
});
Coming soon!
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.datafactory.CredentialOperation;
import com.pulumi.azurenative.datafactory.CredentialOperationArgs;
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 credentialOperation = new CredentialOperation("credentialOperation", CredentialOperationArgs.builder()
.credentialName("exampleCredential")
.factoryName("exampleFactoryName")
.properties(Map.ofEntries(
Map.entry("resourceId", "/subscriptions/12345678-1234-1234-1234-12345678abc/resourcegroups/exampleResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleUami"),
Map.entry("type", "ManagedIdentity")
))
.resourceGroupName("exampleResourceGroup")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
credential_operation = azure_native.datafactory.CredentialOperation("credentialOperation",
credential_name="exampleCredential",
factory_name="exampleFactoryName",
properties=azure_native.datafactory.ManagedIdentityCredentialResponseArgs(
resource_id="/subscriptions/12345678-1234-1234-1234-12345678abc/resourcegroups/exampleResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleUami",
type="ManagedIdentity",
),
resource_group_name="exampleResourceGroup")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const credentialOperation = new azure_native.datafactory.CredentialOperation("credentialOperation", {
credentialName: "exampleCredential",
factoryName: "exampleFactoryName",
properties: {
resourceId: "/subscriptions/12345678-1234-1234-1234-12345678abc/resourcegroups/exampleResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleUami",
type: "ManagedIdentity",
},
resourceGroupName: "exampleResourceGroup",
});
resources:
credentialOperation:
type: azure-native:datafactory:CredentialOperation
properties:
credentialName: exampleCredential
factoryName: exampleFactoryName
properties:
resourceId: /subscriptions/12345678-1234-1234-1234-12345678abc/resourcegroups/exampleResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleUami
type: ManagedIdentity
resourceGroupName: exampleResourceGroup
Create CredentialOperation Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CredentialOperation(name: string, args: CredentialOperationArgs, opts?: CustomResourceOptions);
@overload
def CredentialOperation(resource_name: str,
args: CredentialOperationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CredentialOperation(resource_name: str,
opts: Optional[ResourceOptions] = None,
factory_name: Optional[str] = None,
properties: Optional[ManagedIdentityCredentialArgs] = None,
resource_group_name: Optional[str] = None,
credential_name: Optional[str] = None)
func NewCredentialOperation(ctx *Context, name string, args CredentialOperationArgs, opts ...ResourceOption) (*CredentialOperation, error)
public CredentialOperation(string name, CredentialOperationArgs args, CustomResourceOptions? opts = null)
public CredentialOperation(String name, CredentialOperationArgs args)
public CredentialOperation(String name, CredentialOperationArgs args, CustomResourceOptions options)
type: azure-native:datafactory:CredentialOperation
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 CredentialOperationArgs
- 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 CredentialOperationArgs
- 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 CredentialOperationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CredentialOperationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CredentialOperationArgs
- 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 credentialOperationResource = new AzureNative.Datafactory.CredentialOperation("credentialOperationResource", new()
{
FactoryName = "string",
Properties =
{
{ "type", "ManagedIdentity" },
{ "annotations", new[]
{
"any",
} },
{ "description", "string" },
{ "resourceId", "string" },
},
ResourceGroupName = "string",
CredentialName = "string",
});
example, err := datafactory.NewCredentialOperation(ctx, "credentialOperationResource", &datafactory.CredentialOperationArgs{
FactoryName: "string",
Properties: map[string]interface{}{
"type": "ManagedIdentity",
"annotations": []string{
"any",
},
"description": "string",
"resourceId": "string",
},
ResourceGroupName: "string",
CredentialName: "string",
})
var credentialOperationResource = new CredentialOperation("credentialOperationResource", CredentialOperationArgs.builder()
.factoryName("string")
.properties(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.resourceGroupName("string")
.credentialName("string")
.build());
credential_operation_resource = azure_native.datafactory.CredentialOperation("credentialOperationResource",
factory_name=string,
properties={
type: ManagedIdentity,
annotations: [any],
description: string,
resourceId: string,
},
resource_group_name=string,
credential_name=string)
const credentialOperationResource = new azure_native.datafactory.CredentialOperation("credentialOperationResource", {
factoryName: "string",
properties: {
type: "ManagedIdentity",
annotations: ["any"],
description: "string",
resourceId: "string",
},
resourceGroupName: "string",
credentialName: "string",
});
type: azure-native:datafactory:CredentialOperation
properties:
credentialName: string
factoryName: string
properties:
annotations:
- any
description: string
resourceId: string
type: ManagedIdentity
resourceGroupName: string
CredentialOperation 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 CredentialOperation resource accepts the following input properties:
- Factory
Name string - The factory name.
- Properties
Pulumi.
Azure Native. Data Factory. Inputs. Managed Identity Credential - Managed Identity Credential properties.
- Resource
Group stringName - The resource group name.
- Credential
Name string - Credential name
- Factory
Name string - The factory name.
- Properties
Managed
Identity Credential Args - Managed Identity Credential properties.
- Resource
Group stringName - The resource group name.
- Credential
Name string - Credential name
- factory
Name String - The factory name.
- properties
Managed
Identity Credential - Managed Identity Credential properties.
- resource
Group StringName - The resource group name.
- credential
Name String - Credential name
- factory
Name string - The factory name.
- properties
Managed
Identity Credential - Managed Identity Credential properties.
- resource
Group stringName - The resource group name.
- credential
Name string - Credential name
- factory_
name str - The factory name.
- properties
Managed
Identity Credential Args - Managed Identity Credential properties.
- resource_
group_ strname - The resource group name.
- credential_
name str - Credential name
- factory
Name String - The factory name.
- properties Property Map
- Managed Identity Credential properties.
- resource
Group StringName - The resource group name.
- credential
Name String - Credential name
Outputs
All input properties are implicitly available as output properties. Additionally, the CredentialOperation resource produces the following output properties:
Supporting Types
ManagedIdentityCredential, ManagedIdentityCredentialArgs
- Annotations List<object>
- List of tags that can be used for describing the Credential.
- Description string
- Credential description.
- Resource
Id string - The resource id of user assigned managed identity
- Annotations []interface{}
- List of tags that can be used for describing the Credential.
- Description string
- Credential description.
- Resource
Id string - The resource id of user assigned managed identity
- annotations List<Object>
- List of tags that can be used for describing the Credential.
- description String
- Credential description.
- resource
Id String - The resource id of user assigned managed identity
- annotations any[]
- List of tags that can be used for describing the Credential.
- description string
- Credential description.
- resource
Id string - The resource id of user assigned managed identity
- annotations Sequence[Any]
- List of tags that can be used for describing the Credential.
- description str
- Credential description.
- resource_
id str - The resource id of user assigned managed identity
- annotations List<Any>
- List of tags that can be used for describing the Credential.
- description String
- Credential description.
- resource
Id String - The resource id of user assigned managed identity
ManagedIdentityCredentialResponse, ManagedIdentityCredentialResponseArgs
- Annotations List<object>
- List of tags that can be used for describing the Credential.
- Description string
- Credential description.
- Resource
Id string - The resource id of user assigned managed identity
- Annotations []interface{}
- List of tags that can be used for describing the Credential.
- Description string
- Credential description.
- Resource
Id string - The resource id of user assigned managed identity
- annotations List<Object>
- List of tags that can be used for describing the Credential.
- description String
- Credential description.
- resource
Id String - The resource id of user assigned managed identity
- annotations any[]
- List of tags that can be used for describing the Credential.
- description string
- Credential description.
- resource
Id string - The resource id of user assigned managed identity
- annotations Sequence[Any]
- List of tags that can be used for describing the Credential.
- description str
- Credential description.
- resource_
id str - The resource id of user assigned managed identity
- annotations List<Any>
- List of tags that can be used for describing the Credential.
- description String
- Credential description.
- resource
Id String - The resource id of user assigned managed identity
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:datafactory:CredentialOperation exampleCredential /subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/credentials/exampleCredential
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