1. Packages
  2. AWS Classic
  3. API Docs
  4. route53recoveryreadiness
  5. ResourceSet

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

AWS Classic v6.28.1 published on Thursday, Mar 28, 2024 by Pulumi

aws.route53recoveryreadiness.ResourceSet

Explore with Pulumi AI

aws logo

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

AWS Classic v6.28.1 published on Thursday, Mar 28, 2024 by Pulumi

    Provides an AWS Route 53 Recovery Readiness Resource Set.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = new aws.route53recoveryreadiness.ResourceSet("example", {
        resourceSetName: my_cw_alarm_set,
        resourceSetType: "AWS::CloudWatch::Alarm",
        resources: [{
            resourceArn: exampleAwsCloudwatchMetricAlarm.arn,
        }],
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.route53recoveryreadiness.ResourceSet("example",
        resource_set_name=my_cw_alarm_set,
        resource_set_type="AWS::CloudWatch::Alarm",
        resources=[aws.route53recoveryreadiness.ResourceSetResourceArgs(
            resource_arn=example_aws_cloudwatch_metric_alarm["arn"],
        )])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/route53recoveryreadiness"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := route53recoveryreadiness.NewResourceSet(ctx, "example", &route53recoveryreadiness.ResourceSetArgs{
    			ResourceSetName: pulumi.Any(my_cw_alarm_set),
    			ResourceSetType: pulumi.String("AWS::CloudWatch::Alarm"),
    			Resources: route53recoveryreadiness.ResourceSetResourceArray{
    				&route53recoveryreadiness.ResourceSetResourceArgs{
    					ResourceArn: pulumi.Any(exampleAwsCloudwatchMetricAlarm.Arn),
    				},
    			},
    		})
    		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.Route53RecoveryReadiness.ResourceSet("example", new()
        {
            ResourceSetName = my_cw_alarm_set,
            ResourceSetType = "AWS::CloudWatch::Alarm",
            Resources = new[]
            {
                new Aws.Route53RecoveryReadiness.Inputs.ResourceSetResourceArgs
                {
                    ResourceArn = exampleAwsCloudwatchMetricAlarm.Arn,
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.route53recoveryreadiness.ResourceSet;
    import com.pulumi.aws.route53recoveryreadiness.ResourceSetArgs;
    import com.pulumi.aws.route53recoveryreadiness.inputs.ResourceSetResourceArgs;
    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 ResourceSet("example", ResourceSetArgs.builder()        
                .resourceSetName(my_cw_alarm_set)
                .resourceSetType("AWS::CloudWatch::Alarm")
                .resources(ResourceSetResourceArgs.builder()
                    .resourceArn(exampleAwsCloudwatchMetricAlarm.arn())
                    .build())
                .build());
    
        }
    }
    
    resources:
      example:
        type: aws:route53recoveryreadiness:ResourceSet
        properties:
          resourceSetName: ${["my-cw-alarm-set"]}
          resourceSetType: AWS::CloudWatch::Alarm
          resources:
            - resourceArn: ${exampleAwsCloudwatchMetricAlarm.arn}
    

    Create ResourceSet Resource

    new ResourceSet(name: string, args: ResourceSetArgs, opts?: CustomResourceOptions);
    @overload
    def ResourceSet(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    resource_set_name: Optional[str] = None,
                    resource_set_type: Optional[str] = None,
                    resources: Optional[Sequence[ResourceSetResourceArgs]] = None,
                    tags: Optional[Mapping[str, str]] = None)
    @overload
    def ResourceSet(resource_name: str,
                    args: ResourceSetArgs,
                    opts: Optional[ResourceOptions] = None)
    func NewResourceSet(ctx *Context, name string, args ResourceSetArgs, opts ...ResourceOption) (*ResourceSet, error)
    public ResourceSet(string name, ResourceSetArgs args, CustomResourceOptions? opts = null)
    public ResourceSet(String name, ResourceSetArgs args)
    public ResourceSet(String name, ResourceSetArgs args, CustomResourceOptions options)
    
    type: aws:route53recoveryreadiness:ResourceSet
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args ResourceSetArgs
    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 ResourceSetArgs
    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 ResourceSetArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ResourceSetArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ResourceSetArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    ResourceSetName string
    Unique name describing the resource set.
    ResourceSetType string
    Type of the resources in the resource set.
    Resources List<ResourceSetResource>

    List of resources to add to this resource set. See below.

    The following arguments are optional:

    Tags Dictionary<string, string>
    Key-value mapping of resource tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level
    ResourceSetName string
    Unique name describing the resource set.
    ResourceSetType string
    Type of the resources in the resource set.
    Resources []ResourceSetResourceArgs

    List of resources to add to this resource set. See below.

    The following arguments are optional:

    Tags map[string]string
    Key-value mapping of resource tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level
    resourceSetName String
    Unique name describing the resource set.
    resourceSetType String
    Type of the resources in the resource set.
    resources List<ResourceSetResource>

    List of resources to add to this resource set. See below.

    The following arguments are optional:

    tags Map<String,String>
    Key-value mapping of resource tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level
    resourceSetName string
    Unique name describing the resource set.
    resourceSetType string
    Type of the resources in the resource set.
    resources ResourceSetResource[]

    List of resources to add to this resource set. See below.

    The following arguments are optional:

    tags {[key: string]: string}
    Key-value mapping of resource tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level
    resource_set_name str
    Unique name describing the resource set.
    resource_set_type str
    Type of the resources in the resource set.
    resources Sequence[ResourceSetResourceArgs]

    List of resources to add to this resource set. See below.

    The following arguments are optional:

    tags Mapping[str, str]
    Key-value mapping of resource tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level
    resourceSetName String
    Unique name describing the resource set.
    resourceSetType String
    Type of the resources in the resource set.
    resources List<Property Map>

    List of resources to add to this resource set. See below.

    The following arguments are optional:

    tags Map<String>
    Key-value mapping of resource tags. 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 ResourceSet resource produces the following output properties:

    Arn string
    NLB resource ARN.
    Id string
    The provider-assigned unique ID for this managed resource.
    TagsAll Dictionary<string, string>
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated:Please use tags instead.

    Arn string
    NLB resource ARN.
    Id string
    The provider-assigned unique ID for this managed resource.
    TagsAll map[string]string
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated:Please use tags instead.

    arn String
    NLB resource ARN.
    id String
    The provider-assigned unique ID for this managed resource.
    tagsAll Map<String,String>
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated:Please use tags instead.

    arn string
    NLB resource ARN.
    id string
    The provider-assigned unique ID for this managed resource.
    tagsAll {[key: string]: string}
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated:Please use tags instead.

    arn str
    NLB resource ARN.
    id str
    The provider-assigned unique ID for this managed resource.
    tags_all Mapping[str, str]
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated:Please use tags instead.

    arn String
    NLB resource ARN.
    id String
    The provider-assigned unique ID for this managed resource.
    tagsAll Map<String>
    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 ResourceSet Resource

    Get an existing ResourceSet 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?: ResourceSetState, opts?: CustomResourceOptions): ResourceSet
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            arn: Optional[str] = None,
            resource_set_name: Optional[str] = None,
            resource_set_type: Optional[str] = None,
            resources: Optional[Sequence[ResourceSetResourceArgs]] = None,
            tags: Optional[Mapping[str, str]] = None,
            tags_all: Optional[Mapping[str, str]] = None) -> ResourceSet
    func GetResourceSet(ctx *Context, name string, id IDInput, state *ResourceSetState, opts ...ResourceOption) (*ResourceSet, error)
    public static ResourceSet Get(string name, Input<string> id, ResourceSetState? state, CustomResourceOptions? opts = null)
    public static ResourceSet get(String name, Output<String> id, ResourceSetState 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
    NLB resource ARN.
    ResourceSetName string
    Unique name describing the resource set.
    ResourceSetType string
    Type of the resources in the resource set.
    Resources List<ResourceSetResource>

    List of resources to add to this resource set. See below.

    The following arguments are optional:

    Tags Dictionary<string, string>
    Key-value mapping of resource tags. 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>
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated:Please use tags instead.

    Arn string
    NLB resource ARN.
    ResourceSetName string
    Unique name describing the resource set.
    ResourceSetType string
    Type of the resources in the resource set.
    Resources []ResourceSetResourceArgs

    List of resources to add to this resource set. See below.

    The following arguments are optional:

    Tags map[string]string
    Key-value mapping of resource tags. 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
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated:Please use tags instead.

    arn String
    NLB resource ARN.
    resourceSetName String
    Unique name describing the resource set.
    resourceSetType String
    Type of the resources in the resource set.
    resources List<ResourceSetResource>

    List of resources to add to this resource set. See below.

    The following arguments are optional:

    tags Map<String,String>
    Key-value mapping of resource tags. 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>
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated:Please use tags instead.

    arn string
    NLB resource ARN.
    resourceSetName string
    Unique name describing the resource set.
    resourceSetType string
    Type of the resources in the resource set.
    resources ResourceSetResource[]

    List of resources to add to this resource set. See below.

    The following arguments are optional:

    tags {[key: string]: string}
    Key-value mapping of resource tags. 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}
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated:Please use tags instead.

    arn str
    NLB resource ARN.
    resource_set_name str
    Unique name describing the resource set.
    resource_set_type str
    Type of the resources in the resource set.
    resources Sequence[ResourceSetResourceArgs]

    List of resources to add to this resource set. See below.

    The following arguments are optional:

    tags Mapping[str, str]
    Key-value mapping of resource tags. 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]
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated:Please use tags instead.

    arn String
    NLB resource ARN.
    resourceSetName String
    Unique name describing the resource set.
    resourceSetType String
    Type of the resources in the resource set.
    resources List<Property Map>

    List of resources to add to this resource set. See below.

    The following arguments are optional:

    tags Map<String>
    Key-value mapping of resource tags. 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>
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated:Please use tags instead.

    Supporting Types

    ResourceSetResource, ResourceSetResourceArgs

    ComponentId string
    DnsTargetResource ResourceSetResourceDnsTargetResource
    Component for DNS/Routing Control Readiness Checks.
    ReadinessScopes List<string>
    Recovery group ARN or cell ARN that contains this resource set.
    ResourceArn string
    ARN of the resource.
    ComponentId string
    DnsTargetResource ResourceSetResourceDnsTargetResource
    Component for DNS/Routing Control Readiness Checks.
    ReadinessScopes []string
    Recovery group ARN or cell ARN that contains this resource set.
    ResourceArn string
    ARN of the resource.
    componentId String
    dnsTargetResource ResourceSetResourceDnsTargetResource
    Component for DNS/Routing Control Readiness Checks.
    readinessScopes List<String>
    Recovery group ARN or cell ARN that contains this resource set.
    resourceArn String
    ARN of the resource.
    componentId string
    dnsTargetResource ResourceSetResourceDnsTargetResource
    Component for DNS/Routing Control Readiness Checks.
    readinessScopes string[]
    Recovery group ARN or cell ARN that contains this resource set.
    resourceArn string
    ARN of the resource.
    component_id str
    dns_target_resource ResourceSetResourceDnsTargetResource
    Component for DNS/Routing Control Readiness Checks.
    readiness_scopes Sequence[str]
    Recovery group ARN or cell ARN that contains this resource set.
    resource_arn str
    ARN of the resource.
    componentId String
    dnsTargetResource Property Map
    Component for DNS/Routing Control Readiness Checks.
    readinessScopes List<String>
    Recovery group ARN or cell ARN that contains this resource set.
    resourceArn String
    ARN of the resource.

    ResourceSetResourceDnsTargetResource, ResourceSetResourceDnsTargetResourceArgs

    DomainName string
    DNS Name that acts as the ingress point to a portion of application.
    HostedZoneArn string
    Hosted Zone ARN that contains the DNS record with the provided name of target resource.
    RecordSetId string
    Route53 record set id to uniquely identify a record given a domain_name and a record_type.
    RecordType string
    Type of DNS Record of target resource.
    TargetResource ResourceSetResourceDnsTargetResourceTargetResource
    Target resource the R53 record specified with the above params points to.
    DomainName string
    DNS Name that acts as the ingress point to a portion of application.
    HostedZoneArn string
    Hosted Zone ARN that contains the DNS record with the provided name of target resource.
    RecordSetId string
    Route53 record set id to uniquely identify a record given a domain_name and a record_type.
    RecordType string
    Type of DNS Record of target resource.
    TargetResource ResourceSetResourceDnsTargetResourceTargetResource
    Target resource the R53 record specified with the above params points to.
    domainName String
    DNS Name that acts as the ingress point to a portion of application.
    hostedZoneArn String
    Hosted Zone ARN that contains the DNS record with the provided name of target resource.
    recordSetId String
    Route53 record set id to uniquely identify a record given a domain_name and a record_type.
    recordType String
    Type of DNS Record of target resource.
    targetResource ResourceSetResourceDnsTargetResourceTargetResource
    Target resource the R53 record specified with the above params points to.
    domainName string
    DNS Name that acts as the ingress point to a portion of application.
    hostedZoneArn string
    Hosted Zone ARN that contains the DNS record with the provided name of target resource.
    recordSetId string
    Route53 record set id to uniquely identify a record given a domain_name and a record_type.
    recordType string
    Type of DNS Record of target resource.
    targetResource ResourceSetResourceDnsTargetResourceTargetResource
    Target resource the R53 record specified with the above params points to.
    domain_name str
    DNS Name that acts as the ingress point to a portion of application.
    hosted_zone_arn str
    Hosted Zone ARN that contains the DNS record with the provided name of target resource.
    record_set_id str
    Route53 record set id to uniquely identify a record given a domain_name and a record_type.
    record_type str
    Type of DNS Record of target resource.
    target_resource ResourceSetResourceDnsTargetResourceTargetResource
    Target resource the R53 record specified with the above params points to.
    domainName String
    DNS Name that acts as the ingress point to a portion of application.
    hostedZoneArn String
    Hosted Zone ARN that contains the DNS record with the provided name of target resource.
    recordSetId String
    Route53 record set id to uniquely identify a record given a domain_name and a record_type.
    recordType String
    Type of DNS Record of target resource.
    targetResource Property Map
    Target resource the R53 record specified with the above params points to.

    ResourceSetResourceDnsTargetResourceTargetResource, ResourceSetResourceDnsTargetResourceTargetResourceArgs

    NlbResource ResourceSetResourceDnsTargetResourceTargetResourceNlbResource
    NLB resource a DNS Target Resource points to. Required if r53_resource is not set.
    R53Resource ResourceSetResourceDnsTargetResourceTargetResourceR53Resource
    Route53 resource a DNS Target Resource record points to.
    NlbResource ResourceSetResourceDnsTargetResourceTargetResourceNlbResource
    NLB resource a DNS Target Resource points to. Required if r53_resource is not set.
    R53Resource ResourceSetResourceDnsTargetResourceTargetResourceR53Resource
    Route53 resource a DNS Target Resource record points to.
    nlbResource ResourceSetResourceDnsTargetResourceTargetResourceNlbResource
    NLB resource a DNS Target Resource points to. Required if r53_resource is not set.
    r53Resource ResourceSetResourceDnsTargetResourceTargetResourceR53Resource
    Route53 resource a DNS Target Resource record points to.
    nlbResource ResourceSetResourceDnsTargetResourceTargetResourceNlbResource
    NLB resource a DNS Target Resource points to. Required if r53_resource is not set.
    r53Resource ResourceSetResourceDnsTargetResourceTargetResourceR53Resource
    Route53 resource a DNS Target Resource record points to.
    nlb_resource ResourceSetResourceDnsTargetResourceTargetResourceNlbResource
    NLB resource a DNS Target Resource points to. Required if r53_resource is not set.
    r53_resource ResourceSetResourceDnsTargetResourceTargetResourceR53Resource
    Route53 resource a DNS Target Resource record points to.
    nlbResource Property Map
    NLB resource a DNS Target Resource points to. Required if r53_resource is not set.
    r53Resource Property Map
    Route53 resource a DNS Target Resource record points to.

    ResourceSetResourceDnsTargetResourceTargetResourceNlbResource, ResourceSetResourceDnsTargetResourceTargetResourceNlbResourceArgs

    Arn string
    NLB resource ARN.
    Arn string
    NLB resource ARN.
    arn String
    NLB resource ARN.
    arn string
    NLB resource ARN.
    arn str
    NLB resource ARN.
    arn String
    NLB resource ARN.

    ResourceSetResourceDnsTargetResourceTargetResourceR53Resource, ResourceSetResourceDnsTargetResourceTargetResourceR53ResourceArgs

    DomainName string
    DNS Name that acts as the ingress point to a portion of application.
    RecordSetId string
    Route53 record set id to uniquely identify a record given a domain_name and a record_type.
    DomainName string
    DNS Name that acts as the ingress point to a portion of application.
    RecordSetId string
    Route53 record set id to uniquely identify a record given a domain_name and a record_type.
    domainName String
    DNS Name that acts as the ingress point to a portion of application.
    recordSetId String
    Route53 record set id to uniquely identify a record given a domain_name and a record_type.
    domainName string
    DNS Name that acts as the ingress point to a portion of application.
    recordSetId string
    Route53 record set id to uniquely identify a record given a domain_name and a record_type.
    domain_name str
    DNS Name that acts as the ingress point to a portion of application.
    record_set_id str
    Route53 record set id to uniquely identify a record given a domain_name and a record_type.
    domainName String
    DNS Name that acts as the ingress point to a portion of application.
    recordSetId String
    Route53 record set id to uniquely identify a record given a domain_name and a record_type.

    Import

    Using pulumi import, import Route53 Recovery Readiness resource set name using the resource set name. For example:

    $ pulumi import aws:route53recoveryreadiness/resourceSet:ResourceSet my-cw-alarm-set example
    

    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.28.1 published on Thursday, Mar 28, 2024 by Pulumi