azure-native.datafactory.CredentialOperation
Explore with Pulumi AI
Credential resource type. Azure REST API version: 2018-06-01. Prior API version in Azure Native 1.x: 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",
});
});
package main
import (
"github.com/pulumi/pulumi-azure-native-sdk/datafactory/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := datafactory.NewCredentialOperation(ctx, "credentialOperation", &datafactory.CredentialOperationArgs{
CredentialName: pulumi.String("exampleCredential"),
FactoryName: pulumi.String("exampleFactoryName"),
Properties: interface{}{
ResourceId: pulumi.String("/subscriptions/12345678-1234-1234-1234-12345678abc/resourcegroups/exampleResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleUami"),
Type: pulumi.String("ManagedIdentity"),
},
ResourceGroupName: pulumi.String("exampleResourceGroup"),
})
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.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
new CredentialOperation(name: string, args: CredentialOperationArgs, opts?: CustomResourceOptions);
@overload
def CredentialOperation(resource_name: str,
opts: Optional[ResourceOptions] = None,
credential_name: Optional[str] = None,
factory_name: Optional[str] = None,
properties: Optional[ManagedIdentityCredentialArgs] = None,
resource_group_name: Optional[str] = None)
@overload
def CredentialOperation(resource_name: str,
args: CredentialOperationArgs,
opts: Optional[ResourceOptions] = 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.
- 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.
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/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/credentials/{credentialName}
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0