1. Packages
  2. AWS Classic
  3. API Docs
  4. dataexchange
  5. Revision

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.31.1 published on Thursday, Apr 18, 2024 by Pulumi

aws.dataexchange.Revision

Explore with Pulumi AI

aws logo

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.31.1 published on Thursday, Apr 18, 2024 by Pulumi

    Provides a resource to manage AWS Data Exchange Revisions.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = new aws.dataexchange.Revision("example", {dataSetId: exampleAwsDataexchangeDataSet.id});
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.dataexchange.Revision("example", data_set_id=example_aws_dataexchange_data_set["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/dataexchange"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := dataexchange.NewRevision(ctx, "example", &dataexchange.RevisionArgs{
    			DataSetId: pulumi.Any(exampleAwsDataexchangeDataSet.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 example = new Aws.DataExchange.Revision("example", new()
        {
            DataSetId = exampleAwsDataexchangeDataSet.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.dataexchange.Revision;
    import com.pulumi.aws.dataexchange.RevisionArgs;
    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 example = new Revision("example", RevisionArgs.builder()        
                .dataSetId(exampleAwsDataexchangeDataSet.id())
                .build());
    
        }
    }
    
    resources:
      example:
        type: aws:dataexchange:Revision
        properties:
          dataSetId: ${exampleAwsDataexchangeDataSet.id}
    

    Create Revision Resource

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

    Constructor syntax

    new Revision(name: string, args: RevisionArgs, opts?: CustomResourceOptions);
    @overload
    def Revision(resource_name: str,
                 args: RevisionArgs,
                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def Revision(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 data_set_id: Optional[str] = None,
                 comment: Optional[str] = None,
                 tags: Optional[Mapping[str, str]] = None)
    func NewRevision(ctx *Context, name string, args RevisionArgs, opts ...ResourceOption) (*Revision, error)
    public Revision(string name, RevisionArgs args, CustomResourceOptions? opts = null)
    public Revision(String name, RevisionArgs args)
    public Revision(String name, RevisionArgs args, CustomResourceOptions options)
    
    type: aws:dataexchange:Revision
    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 RevisionArgs
    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 RevisionArgs
    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 RevisionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args RevisionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args RevisionArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var revisionResource = new Aws.DataExchange.Revision("revisionResource", new()
    {
        DataSetId = "string",
        Comment = "string",
        Tags = 
        {
            { "string", "string" },
        },
    });
    
    example, err := dataexchange.NewRevision(ctx, "revisionResource", &dataexchange.RevisionArgs{
    	DataSetId: pulumi.String("string"),
    	Comment:   pulumi.String("string"),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    })
    
    var revisionResource = new Revision("revisionResource", RevisionArgs.builder()        
        .dataSetId("string")
        .comment("string")
        .tags(Map.of("string", "string"))
        .build());
    
    revision_resource = aws.dataexchange.Revision("revisionResource",
        data_set_id="string",
        comment="string",
        tags={
            "string": "string",
        })
    
    const revisionResource = new aws.dataexchange.Revision("revisionResource", {
        dataSetId: "string",
        comment: "string",
        tags: {
            string: "string",
        },
    });
    
    type: aws:dataexchange:Revision
    properties:
        comment: string
        dataSetId: string
        tags:
            string: string
    

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

    DataSetId string
    The dataset id.
    Comment string
    An optional comment about the revision.
    Tags Dictionary<string, string>
    A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    DataSetId string
    The dataset id.
    Comment string
    An optional comment about the revision.
    Tags map[string]string
    A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    dataSetId String
    The dataset id.
    comment String
    An optional comment about the revision.
    tags Map<String,String>
    A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    dataSetId string
    The dataset id.
    comment string
    An optional comment about the revision.
    tags {[key: string]: string}
    A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    data_set_id str
    The dataset id.
    comment str
    An optional comment about the revision.
    tags Mapping[str, str]
    A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    dataSetId String
    The dataset id.
    comment String
    An optional comment about the revision.
    tags Map<String>
    A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    Outputs

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

    Arn string
    The Amazon Resource Name of this data set.
    Id string
    The provider-assigned unique ID for this managed resource.
    RevisionId string
    The Id of the revision.
    TagsAll Dictionary<string, string>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    Arn string
    The Amazon Resource Name of this data set.
    Id string
    The provider-assigned unique ID for this managed resource.
    RevisionId string
    The Id of the revision.
    TagsAll map[string]string
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    arn String
    The Amazon Resource Name of this data set.
    id String
    The provider-assigned unique ID for this managed resource.
    revisionId String
    The Id of the revision.
    tagsAll Map<String,String>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    arn string
    The Amazon Resource Name of this data set.
    id string
    The provider-assigned unique ID for this managed resource.
    revisionId string
    The Id of the revision.
    tagsAll {[key: string]: string}
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    arn str
    The Amazon Resource Name of this data set.
    id str
    The provider-assigned unique ID for this managed resource.
    revision_id str
    The Id of the revision.
    tags_all Mapping[str, str]
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    arn String
    The Amazon Resource Name of this data set.
    id String
    The provider-assigned unique ID for this managed resource.
    revisionId String
    The Id of the revision.
    tagsAll Map<String>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    Look up Existing Revision Resource

    Get an existing Revision 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?: RevisionState, opts?: CustomResourceOptions): Revision
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            arn: Optional[str] = None,
            comment: Optional[str] = None,
            data_set_id: Optional[str] = None,
            revision_id: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None,
            tags_all: Optional[Mapping[str, str]] = None) -> Revision
    func GetRevision(ctx *Context, name string, id IDInput, state *RevisionState, opts ...ResourceOption) (*Revision, error)
    public static Revision Get(string name, Input<string> id, RevisionState? state, CustomResourceOptions? opts = null)
    public static Revision get(String name, Output<String> id, RevisionState 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:
    Arn string
    The Amazon Resource Name of this data set.
    Comment string
    An optional comment about the revision.
    DataSetId string
    The dataset id.
    RevisionId string
    The Id of the revision.
    Tags Dictionary<string, string>
    A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    TagsAll Dictionary<string, string>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    Arn string
    The Amazon Resource Name of this data set.
    Comment string
    An optional comment about the revision.
    DataSetId string
    The dataset id.
    RevisionId string
    The Id of the revision.
    Tags map[string]string
    A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    TagsAll map[string]string
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    arn String
    The Amazon Resource Name of this data set.
    comment String
    An optional comment about the revision.
    dataSetId String
    The dataset id.
    revisionId String
    The Id of the revision.
    tags Map<String,String>
    A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tagsAll Map<String,String>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    arn string
    The Amazon Resource Name of this data set.
    comment string
    An optional comment about the revision.
    dataSetId string
    The dataset id.
    revisionId string
    The Id of the revision.
    tags {[key: string]: string}
    A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tagsAll {[key: string]: string}
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    arn str
    The Amazon Resource Name of this data set.
    comment str
    An optional comment about the revision.
    data_set_id str
    The dataset id.
    revision_id str
    The Id of the revision.
    tags Mapping[str, str]
    A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tags_all Mapping[str, str]
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    arn String
    The Amazon Resource Name of this data set.
    comment String
    An optional comment about the revision.
    dataSetId String
    The dataset id.
    revisionId String
    The Id of the revision.
    tags Map<String>
    A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tagsAll Map<String>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    Import

    Using pulumi import, import DataExchange Revisions using their data-set-id:revision-id. For example:

    $ pulumi import aws:dataexchange/revision:Revision example 4fa784c7-ccb4-4dbf-ba4f-02198320daa1:4fa784c7-ccb4-4dbf-ba4f-02198320daa1
    

    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

    Try AWS Native preview for resources not in the classic version.

    AWS Classic v6.31.1 published on Thursday, Apr 18, 2024 by Pulumi