aws.datazone.AssetType
Explore with Pulumi AI
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=[{
"map_block_key": "string",
"type_identifier": "string",
"type_revision": "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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The AssetType resource accepts the following input properties:
- Domain
Identifier string - The unique identifier of the Amazon DataZone domain where the custom asset type is being created.
- Owning
Project stringIdentifier 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.
- Forms
Inputs List<AssetType Forms Input> - The metadata forms that are to be attached to the custom asset type.
- Name string
- The name of the custom asset type.
- Timeouts
Asset
Type Timeouts
- Domain
Identifier string - The unique identifier of the Amazon DataZone domain where the custom asset type is being created.
- Owning
Project stringIdentifier 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.
- Forms
Inputs []AssetType Forms Input Args - The metadata forms that are to be attached to the custom asset type.
- Name string
- The name of the custom asset type.
- Timeouts
Asset
Type Timeouts Args
- domain
Identifier String - The unique identifier of the Amazon DataZone domain where the custom asset type is being created.
- owning
Project StringIdentifier 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.
- forms
Inputs List<AssetType Forms Input> - The metadata forms that are to be attached to the custom asset type.
- name String
- The name of the custom asset type.
- timeouts
Asset
Type Timeouts
- domain
Identifier string - The unique identifier of the Amazon DataZone domain where the custom asset type is being created.
- owning
Project stringIdentifier 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.
- forms
Inputs AssetType Forms Input[] - The metadata forms that are to be attached to the custom asset type.
- name string
- The name of the custom asset type.
- timeouts
Asset
Type Timeouts
- domain_
identifier str - The unique identifier of the Amazon DataZone domain where the custom asset type is being created.
- owning_
project_ stridentifier 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[AssetType Forms Input Args] - The metadata forms that are to be attached to the custom asset type.
- name str
- The name of the custom asset type.
- timeouts
Asset
Type Timeouts Args
- domain
Identifier String - The unique identifier of the Amazon DataZone domain where the custom asset type is being created.
- owning
Project StringIdentifier 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.
- forms
Inputs 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:
- 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.
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.
- Created
At string - The timestamp when the custom asset type was created.
- Created
By string - The user who created the custom asset type.
- Description string
- The description of the custom asset type.
- Domain
Identifier string - The unique identifier of the Amazon DataZone domain where the custom asset type is being created.
- Forms
Inputs List<AssetType Forms Input> - The metadata forms that are to be attached to the custom asset type.
- Name string
- The name of the custom asset type.
- Owning
Project stringIdentifier 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
Asset
Type Timeouts
- Created
At string - The timestamp when the custom asset type was created.
- Created
By string - The user who created the custom asset type.
- Description string
- The description of the custom asset type.
- Domain
Identifier string - The unique identifier of the Amazon DataZone domain where the custom asset type is being created.
- Forms
Inputs []AssetType Forms Input Args - The metadata forms that are to be attached to the custom asset type.
- Name string
- The name of the custom asset type.
- Owning
Project stringIdentifier 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
Asset
Type Timeouts Args
- created
At String - The timestamp when the custom asset type was created.
- created
By String - The user who created the custom asset type.
- description String
- The description of the custom asset type.
- domain
Identifier String - The unique identifier of the Amazon DataZone domain where the custom asset type is being created.
- forms
Inputs List<AssetType Forms Input> - The metadata forms that are to be attached to the custom asset type.
- name String
- The name of the custom asset type.
- owning
Project StringIdentifier 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
Asset
Type Timeouts
- created
At string - The timestamp when the custom asset type was created.
- created
By string - The user who created the custom asset type.
- description string
- The description of the custom asset type.
- domain
Identifier string - The unique identifier of the Amazon DataZone domain where the custom asset type is being created.
- forms
Inputs AssetType Forms Input[] - The metadata forms that are to be attached to the custom asset type.
- name string
- The name of the custom asset type.
- owning
Project stringIdentifier 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
Asset
Type Timeouts
- 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[AssetType Forms Input Args] - The metadata forms that are to be attached to the custom asset type.
- name str
- The name of the custom asset type.
- owning_
project_ stridentifier 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
Asset
Type Timeouts Args
- created
At String - The timestamp when the custom asset type was created.
- created
By String - The user who created the custom asset type.
- description String
- The description of the custom asset type.
- domain
Identifier String - The unique identifier of the Amazon DataZone domain where the custom asset type is being created.
- forms
Inputs 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.
- owning
Project StringIdentifier 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
- Map
Block stringKey - Type
Identifier string - Type
Revision string - Required bool
- Map
Block stringKey - Type
Identifier string - Type
Revision string - Required bool
- map
Block StringKey - type
Identifier String - type
Revision String - required Boolean
- map
Block stringKey - type
Identifier string - type
Revision string - required boolean
- map_
block_ strkey - type_
identifier str - type_
revision str - required bool
- map
Block StringKey - type
Identifier String - type
Revision String - required Boolean
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.