1. Packages
  2. AWS
  3. API Docs
  4. datazone
  5. AssetType
AWS v6.54.0 published on Friday, Sep 27, 2024 by Pulumi

aws.datazone.AssetType

Explore with Pulumi AI

aws logo
AWS v6.54.0 published on Friday, Sep 27, 2024 by Pulumi

    Resource for managing an AWS DataZone Asset Type.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const test = new aws.datazone.AssetType("test", {
        description: "example",
        domainIdentifier: testAwsDatazoneDomain.id,
        name: "example",
        owningProjectIdentifier: testAwsDatazoneProject.id,
    });
    
    import pulumi
    import pulumi_aws as aws
    
    test = aws.datazone.AssetType("test",
        description="example",
        domain_identifier=test_aws_datazone_domain["id"],
        name="example",
        owning_project_identifier=test_aws_datazone_project["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/datazone"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := datazone.NewAssetType(ctx, "test", &datazone.AssetTypeArgs{
    			Description:             pulumi.String("example"),
    			DomainIdentifier:        pulumi.Any(testAwsDatazoneDomain.Id),
    			Name:                    pulumi.String("example"),
    			OwningProjectIdentifier: pulumi.Any(testAwsDatazoneProject.Id),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var test = new Aws.DataZone.AssetType("test", new()
        {
            Description = "example",
            DomainIdentifier = testAwsDatazoneDomain.Id,
            Name = "example",
            OwningProjectIdentifier = testAwsDatazoneProject.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.datazone.AssetType;
    import com.pulumi.aws.datazone.AssetTypeArgs;
    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 test = new AssetType("test", AssetTypeArgs.builder()
                .description("example")
                .domainIdentifier(testAwsDatazoneDomain.id())
                .name("example")
                .owningProjectIdentifier(testAwsDatazoneProject.id())
                .build());
    
        }
    }
    
    resources:
      test:
        type: aws:datazone:AssetType
        properties:
          description: example
          domainIdentifier: ${testAwsDatazoneDomain.id}
          name: example
          owningProjectIdentifier: ${testAwsDatazoneProject.id}
    

    Create AssetType Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new AssetType(name: string, args: AssetTypeArgs, opts?: CustomResourceOptions);
    @overload
    def AssetType(resource_name: str,
                  args: AssetTypeArgs,
                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def AssetType(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  domain_identifier: Optional[str] = None,
                  owning_project_identifier: Optional[str] = None,
                  description: Optional[str] = None,
                  forms_inputs: Optional[Sequence[AssetTypeFormsInputArgs]] = None,
                  name: Optional[str] = None,
                  timeouts: Optional[AssetTypeTimeoutsArgs] = None)
    func NewAssetType(ctx *Context, name string, args AssetTypeArgs, opts ...ResourceOption) (*AssetType, error)
    public AssetType(string name, AssetTypeArgs args, CustomResourceOptions? opts = null)
    public AssetType(String name, AssetTypeArgs args)
    public AssetType(String name, AssetTypeArgs args, CustomResourceOptions options)
    
    type: aws:datazone:AssetType
    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 AssetTypeArgs
    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 AssetTypeArgs
    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 AssetTypeArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AssetTypeArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AssetTypeArgs
    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 assetTypeResource = new Aws.DataZone.AssetType("assetTypeResource", new()
    {
        DomainIdentifier = "string",
        OwningProjectIdentifier = "string",
        Description = "string",
        FormsInputs = new[]
        {
            new Aws.DataZone.Inputs.AssetTypeFormsInputArgs
            {
                MapBlockKey = "string",
                TypeIdentifier = "string",
                TypeRevision = "string",
                Required = false,
            },
        },
        Name = "string",
        Timeouts = new Aws.DataZone.Inputs.AssetTypeTimeoutsArgs
        {
            Create = "string",
        },
    });
    
    example, err := datazone.NewAssetType(ctx, "assetTypeResource", &datazone.AssetTypeArgs{
    	DomainIdentifier:        pulumi.String("string"),
    	OwningProjectIdentifier: pulumi.String("string"),
    	Description:             pulumi.String("string"),
    	FormsInputs: datazone.AssetTypeFormsInputArray{
    		&datazone.AssetTypeFormsInputArgs{
    			MapBlockKey:    pulumi.String("string"),
    			TypeIdentifier: pulumi.String("string"),
    			TypeRevision:   pulumi.String("string"),
    			Required:       pulumi.Bool(false),
    		},
    	},
    	Name: pulumi.String("string"),
    	Timeouts: &datazone.AssetTypeTimeoutsArgs{
    		Create: pulumi.String("string"),
    	},
    })
    
    var assetTypeResource = new AssetType("assetTypeResource", AssetTypeArgs.builder()
        .domainIdentifier("string")
        .owningProjectIdentifier("string")
        .description("string")
        .formsInputs(AssetTypeFormsInputArgs.builder()
            .mapBlockKey("string")
            .typeIdentifier("string")
            .typeRevision("string")
            .required(false)
            .build())
        .name("string")
        .timeouts(AssetTypeTimeoutsArgs.builder()
            .create("string")
            .build())
        .build());
    
    asset_type_resource = aws.datazone.AssetType("assetTypeResource",
        domain_identifier="string",
        owning_project_identifier="string",
        description="string",
        forms_inputs=[{
            "mapBlockKey": "string",
            "typeIdentifier": "string",
            "typeRevision": "string",
            "required": False,
        }],
        name="string",
        timeouts={
            "create": "string",
        })
    
    const assetTypeResource = new aws.datazone.AssetType("assetTypeResource", {
        domainIdentifier: "string",
        owningProjectIdentifier: "string",
        description: "string",
        formsInputs: [{
            mapBlockKey: "string",
            typeIdentifier: "string",
            typeRevision: "string",
            required: false,
        }],
        name: "string",
        timeouts: {
            create: "string",
        },
    });
    
    type: aws:datazone:AssetType
    properties:
        description: string
        domainIdentifier: string
        formsInputs:
            - mapBlockKey: string
              required: false
              typeIdentifier: string
              typeRevision: string
        name: string
        owningProjectIdentifier: string
        timeouts:
            create: string
    

    AssetType 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 AssetType resource accepts the following input properties:

    DomainIdentifier string
    The unique identifier of the Amazon DataZone domain where the custom asset type is being created.
    OwningProjectIdentifier string

    The unique identifier of the Amazon DataZone project that owns the custom asset type.

    The following arguments are optional:

    Description string
    The description of the custom asset type.
    FormsInputs List<AssetTypeFormsInput>
    The metadata forms that are to be attached to the custom asset type.
    Name string
    The name of the custom asset type.
    Timeouts AssetTypeTimeouts
    DomainIdentifier string
    The unique identifier of the Amazon DataZone domain where the custom asset type is being created.
    OwningProjectIdentifier string

    The unique identifier of the Amazon DataZone project that owns the custom asset type.

    The following arguments are optional:

    Description string
    The description of the custom asset type.
    FormsInputs []AssetTypeFormsInputArgs
    The metadata forms that are to be attached to the custom asset type.
    Name string
    The name of the custom asset type.
    Timeouts AssetTypeTimeoutsArgs
    domainIdentifier String
    The unique identifier of the Amazon DataZone domain where the custom asset type is being created.
    owningProjectIdentifier String

    The unique identifier of the Amazon DataZone project that owns the custom asset type.

    The following arguments are optional:

    description String
    The description of the custom asset type.
    formsInputs List<AssetTypeFormsInput>
    The metadata forms that are to be attached to the custom asset type.
    name String
    The name of the custom asset type.
    timeouts AssetTypeTimeouts
    domainIdentifier string
    The unique identifier of the Amazon DataZone domain where the custom asset type is being created.
    owningProjectIdentifier string

    The unique identifier of the Amazon DataZone project that owns the custom asset type.

    The following arguments are optional:

    description string
    The description of the custom asset type.
    formsInputs AssetTypeFormsInput[]
    The metadata forms that are to be attached to the custom asset type.
    name string
    The name of the custom asset type.
    timeouts AssetTypeTimeouts
    domain_identifier str
    The unique identifier of the Amazon DataZone domain where the custom asset type is being created.
    owning_project_identifier str

    The unique identifier of the Amazon DataZone project that owns the custom asset type.

    The following arguments are optional:

    description str
    The description of the custom asset type.
    forms_inputs Sequence[AssetTypeFormsInputArgs]
    The metadata forms that are to be attached to the custom asset type.
    name str
    The name of the custom asset type.
    timeouts AssetTypeTimeoutsArgs
    domainIdentifier String
    The unique identifier of the Amazon DataZone domain where the custom asset type is being created.
    owningProjectIdentifier String

    The unique identifier of the Amazon DataZone project that owns the custom asset type.

    The following arguments are optional:

    description String
    The description of the custom asset type.
    formsInputs List<Property Map>
    The metadata forms that are to be attached to the custom asset type.
    name String
    The name of the custom asset type.
    timeouts Property Map

    Outputs

    All input properties are implicitly available as output properties. Additionally, the AssetType resource produces the following output properties:

    CreatedAt string
    The timestamp when the custom asset type was created.
    CreatedBy string
    The user who created the custom asset type.
    Id string
    The provider-assigned unique ID for this managed resource.
    Revision string
    The revision of the asset type.
    CreatedAt string
    The timestamp when the custom asset type was created.
    CreatedBy string
    The user who created the custom asset type.
    Id string
    The provider-assigned unique ID for this managed resource.
    Revision string
    The revision of the asset type.
    createdAt String
    The timestamp when the custom asset type was created.
    createdBy String
    The user who created the custom asset type.
    id String
    The provider-assigned unique ID for this managed resource.
    revision String
    The revision of the asset type.
    createdAt string
    The timestamp when the custom asset type was created.
    createdBy string
    The user who created the custom asset type.
    id string
    The provider-assigned unique ID for this managed resource.
    revision string
    The revision of the asset type.
    created_at str
    The timestamp when the custom asset type was created.
    created_by str
    The user who created the custom asset type.
    id str
    The provider-assigned unique ID for this managed resource.
    revision str
    The revision of the asset type.
    createdAt String
    The timestamp when the custom asset type was created.
    createdBy String
    The user who created the custom asset type.
    id String
    The provider-assigned unique ID for this managed resource.
    revision String
    The revision of the asset type.

    Look up Existing AssetType Resource

    Get an existing AssetType resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: AssetTypeState, opts?: CustomResourceOptions): AssetType
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            created_at: Optional[str] = None,
            created_by: Optional[str] = None,
            description: Optional[str] = None,
            domain_identifier: Optional[str] = None,
            forms_inputs: Optional[Sequence[AssetTypeFormsInputArgs]] = None,
            name: Optional[str] = None,
            owning_project_identifier: Optional[str] = None,
            revision: Optional[str] = None,
            timeouts: Optional[AssetTypeTimeoutsArgs] = None) -> AssetType
    func GetAssetType(ctx *Context, name string, id IDInput, state *AssetTypeState, opts ...ResourceOption) (*AssetType, error)
    public static AssetType Get(string name, Input<string> id, AssetTypeState? state, CustomResourceOptions? opts = null)
    public static AssetType get(String name, Output<String> id, AssetTypeState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    CreatedAt string
    The timestamp when the custom asset type was created.
    CreatedBy string
    The user who created the custom asset type.
    Description string
    The description of the custom asset type.
    DomainIdentifier string
    The unique identifier of the Amazon DataZone domain where the custom asset type is being created.
    FormsInputs List<AssetTypeFormsInput>
    The metadata forms that are to be attached to the custom asset type.
    Name string
    The name of the custom asset type.
    OwningProjectIdentifier string

    The unique identifier of the Amazon DataZone project that owns the custom asset type.

    The following arguments are optional:

    Revision string
    The revision of the asset type.
    Timeouts AssetTypeTimeouts
    CreatedAt string
    The timestamp when the custom asset type was created.
    CreatedBy string
    The user who created the custom asset type.
    Description string
    The description of the custom asset type.
    DomainIdentifier string
    The unique identifier of the Amazon DataZone domain where the custom asset type is being created.
    FormsInputs []AssetTypeFormsInputArgs
    The metadata forms that are to be attached to the custom asset type.
    Name string
    The name of the custom asset type.
    OwningProjectIdentifier string

    The unique identifier of the Amazon DataZone project that owns the custom asset type.

    The following arguments are optional:

    Revision string
    The revision of the asset type.
    Timeouts AssetTypeTimeoutsArgs
    createdAt String
    The timestamp when the custom asset type was created.
    createdBy String
    The user who created the custom asset type.
    description String
    The description of the custom asset type.
    domainIdentifier String
    The unique identifier of the Amazon DataZone domain where the custom asset type is being created.
    formsInputs List<AssetTypeFormsInput>
    The metadata forms that are to be attached to the custom asset type.
    name String
    The name of the custom asset type.
    owningProjectIdentifier String

    The unique identifier of the Amazon DataZone project that owns the custom asset type.

    The following arguments are optional:

    revision String
    The revision of the asset type.
    timeouts AssetTypeTimeouts
    createdAt string
    The timestamp when the custom asset type was created.
    createdBy string
    The user who created the custom asset type.
    description string
    The description of the custom asset type.
    domainIdentifier string
    The unique identifier of the Amazon DataZone domain where the custom asset type is being created.
    formsInputs AssetTypeFormsInput[]
    The metadata forms that are to be attached to the custom asset type.
    name string
    The name of the custom asset type.
    owningProjectIdentifier string

    The unique identifier of the Amazon DataZone project that owns the custom asset type.

    The following arguments are optional:

    revision string
    The revision of the asset type.
    timeouts AssetTypeTimeouts
    created_at str
    The timestamp when the custom asset type was created.
    created_by str
    The user who created the custom asset type.
    description str
    The description of the custom asset type.
    domain_identifier str
    The unique identifier of the Amazon DataZone domain where the custom asset type is being created.
    forms_inputs Sequence[AssetTypeFormsInputArgs]
    The metadata forms that are to be attached to the custom asset type.
    name str
    The name of the custom asset type.
    owning_project_identifier str

    The unique identifier of the Amazon DataZone project that owns the custom asset type.

    The following arguments are optional:

    revision str
    The revision of the asset type.
    timeouts AssetTypeTimeoutsArgs
    createdAt String
    The timestamp when the custom asset type was created.
    createdBy String
    The user who created the custom asset type.
    description String
    The description of the custom asset type.
    domainIdentifier String
    The unique identifier of the Amazon DataZone domain where the custom asset type is being created.
    formsInputs List<Property Map>
    The metadata forms that are to be attached to the custom asset type.
    name String
    The name of the custom asset type.
    owningProjectIdentifier String

    The unique identifier of the Amazon DataZone project that owns the custom asset type.

    The following arguments are optional:

    revision String
    The revision of the asset type.
    timeouts Property Map

    Supporting Types

    AssetTypeFormsInput, AssetTypeFormsInputArgs

    AssetTypeTimeouts, AssetTypeTimeoutsArgs

    Create string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    Create string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    create String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    create string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    create str
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    create String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).

    Import

    Using pulumi import, import DataZone Asset Type using the domain_identifier,name. For example:

    $ pulumi import aws:datazone/assetType:AssetType example domain-id-12345678,example
    

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

    Package Details

    Repository
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aws Terraform Provider.
    aws logo
    AWS v6.54.0 published on Friday, Sep 27, 2024 by Pulumi