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

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

AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi

aws.fms.ResourceSet

Explore with Pulumi AI

aws logo

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

AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi

    Resource for managing an AWS FMS (Firewall Manager) Resource Set.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = new aws.fms.ResourceSet("example", {resourceSets: [{
        name: "testing",
        resourceTypeLists: ["AWS::NetworkFirewall::Firewall"],
    }]});
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.fms.ResourceSet("example", resource_sets=[{
        "name": "testing",
        "resourceTypeLists": ["AWS::NetworkFirewall::Firewall"],
    }])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/fms"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := fms.NewResourceSet(ctx, "example", &fms.ResourceSetArgs{
    			ResourceSets: fms.ResourceSetResourceSetArray{
    				&fms.ResourceSetResourceSetArgs{
    					Name: pulumi.String("testing"),
    					ResourceTypeLists: pulumi.StringArray{
    						pulumi.String("AWS::NetworkFirewall::Firewall"),
    					},
    				},
    			},
    		})
    		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.Fms.ResourceSet("example", new()
        {
            ResourceSets = new[]
            {
                new Aws.Fms.Inputs.ResourceSetResourceSetArgs
                {
                    Name = "testing",
                    ResourceTypeLists = new[]
                    {
                        "AWS::NetworkFirewall::Firewall",
                    },
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.fms.ResourceSet;
    import com.pulumi.aws.fms.ResourceSetArgs;
    import com.pulumi.aws.fms.inputs.ResourceSetResourceSetArgs;
    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()
                .resourceSets(ResourceSetResourceSetArgs.builder()
                    .name("testing")
                    .resourceTypeLists("AWS::NetworkFirewall::Firewall")
                    .build())
                .build());
    
        }
    }
    
    resources:
      example:
        type: aws:fms:ResourceSet
        properties:
          resourceSets:
            - name: testing
              resourceTypeLists:
                - AWS::NetworkFirewall::Firewall
    

    Create ResourceSet Resource

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

    Constructor syntax

    new ResourceSet(name: string, args?: ResourceSetArgs, opts?: CustomResourceOptions);
    @overload
    def ResourceSet(resource_name: str,
                    args: Optional[ResourceSetArgs] = None,
                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def ResourceSet(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    resource_sets: Optional[Sequence[ResourceSetResourceSetArgs]] = None,
                    tags: Optional[Mapping[str, str]] = None,
                    timeouts: Optional[ResourceSetTimeoutsArgs] = None)
    func NewResourceSet(ctx *Context, name string, args *ResourceSetArgs, opts ...ResourceOption) (*ResourceSet, error)
    public ResourceSet(string name, ResourceSetArgs? args = null, CustomResourceOptions? opts = null)
    public ResourceSet(String name, ResourceSetArgs args)
    public ResourceSet(String name, ResourceSetArgs args, CustomResourceOptions options)
    
    type: aws:fms:ResourceSet
    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 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.

    Constructor example

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

    var resourceSetResource = new Aws.Fms.ResourceSet("resourceSetResource", new()
    {
        ResourceSets = new[]
        {
            new Aws.Fms.Inputs.ResourceSetResourceSetArgs
            {
                Name = "string",
                Description = "string",
                Id = "string",
                LastUpdateTime = "string",
                ResourceSetStatus = "string",
                ResourceTypeLists = new[]
                {
                    "string",
                },
                UpdateToken = "string",
            },
        },
        Tags = 
        {
            { "string", "string" },
        },
        Timeouts = new Aws.Fms.Inputs.ResourceSetTimeoutsArgs
        {
            Create = "string",
            Delete = "string",
            Update = "string",
        },
    });
    
    example, err := fms.NewResourceSet(ctx, "resourceSetResource", &fms.ResourceSetArgs{
    	ResourceSets: fms.ResourceSetResourceSetArray{
    		&fms.ResourceSetResourceSetArgs{
    			Name:              pulumi.String("string"),
    			Description:       pulumi.String("string"),
    			Id:                pulumi.String("string"),
    			LastUpdateTime:    pulumi.String("string"),
    			ResourceSetStatus: pulumi.String("string"),
    			ResourceTypeLists: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    			UpdateToken: pulumi.String("string"),
    		},
    	},
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Timeouts: &fms.ResourceSetTimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    		Update: pulumi.String("string"),
    	},
    })
    
    var resourceSetResource = new ResourceSet("resourceSetResource", ResourceSetArgs.builder()
        .resourceSets(ResourceSetResourceSetArgs.builder()
            .name("string")
            .description("string")
            .id("string")
            .lastUpdateTime("string")
            .resourceSetStatus("string")
            .resourceTypeLists("string")
            .updateToken("string")
            .build())
        .tags(Map.of("string", "string"))
        .timeouts(ResourceSetTimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .update("string")
            .build())
        .build());
    
    resource_set_resource = aws.fms.ResourceSet("resourceSetResource",
        resource_sets=[{
            "name": "string",
            "description": "string",
            "id": "string",
            "lastUpdateTime": "string",
            "resourceSetStatus": "string",
            "resourceTypeLists": ["string"],
            "updateToken": "string",
        }],
        tags={
            "string": "string",
        },
        timeouts={
            "create": "string",
            "delete": "string",
            "update": "string",
        })
    
    const resourceSetResource = new aws.fms.ResourceSet("resourceSetResource", {
        resourceSets: [{
            name: "string",
            description: "string",
            id: "string",
            lastUpdateTime: "string",
            resourceSetStatus: "string",
            resourceTypeLists: ["string"],
            updateToken: "string",
        }],
        tags: {
            string: "string",
        },
        timeouts: {
            create: "string",
            "delete": "string",
            update: "string",
        },
    });
    
    type: aws:fms:ResourceSet
    properties:
        resourceSets:
            - description: string
              id: string
              lastUpdateTime: string
              name: string
              resourceSetStatus: string
              resourceTypeLists:
                - string
              updateToken: string
        tags:
            string: string
        timeouts:
            create: string
            delete: string
            update: string
    

    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:

    ResourceSets List<ResourceSetResourceSet>
    Details about the resource set to be created or updated. See resource_set Attribute Reference below.
    Tags Dictionary<string, string>
    Timeouts ResourceSetTimeouts
    ResourceSets []ResourceSetResourceSetArgs
    Details about the resource set to be created or updated. See resource_set Attribute Reference below.
    Tags map[string]string
    Timeouts ResourceSetTimeoutsArgs
    resourceSets List<ResourceSetResourceSet>
    Details about the resource set to be created or updated. See resource_set Attribute Reference below.
    tags Map<String,String>
    timeouts ResourceSetTimeouts
    resourceSets ResourceSetResourceSet[]
    Details about the resource set to be created or updated. See resource_set Attribute Reference below.
    tags {[key: string]: string}
    timeouts ResourceSetTimeouts
    resource_sets Sequence[ResourceSetResourceSetArgs]
    Details about the resource set to be created or updated. See resource_set Attribute Reference below.
    tags Mapping[str, str]
    timeouts ResourceSetTimeoutsArgs
    resourceSets List<Property Map>
    Details about the resource set to be created or updated. See resource_set Attribute Reference below.
    tags Map<String>
    timeouts Property Map

    Outputs

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

    Arn string
    ARN of the Resource Set.
    Id string
    The provider-assigned unique ID for this managed resource.
    TagsAll Dictionary<string, string>

    Deprecated: Please use tags instead.

    Arn string
    ARN of the Resource Set.
    Id string
    The provider-assigned unique ID for this managed resource.
    TagsAll map[string]string

    Deprecated: Please use tags instead.

    arn String
    ARN of the Resource Set.
    id String
    The provider-assigned unique ID for this managed resource.
    tagsAll Map<String,String>

    Deprecated: Please use tags instead.

    arn string
    ARN of the Resource Set.
    id string
    The provider-assigned unique ID for this managed resource.
    tagsAll {[key: string]: string}

    Deprecated: Please use tags instead.

    arn str
    ARN of the Resource Set.
    id str
    The provider-assigned unique ID for this managed resource.
    tags_all Mapping[str, str]

    Deprecated: Please use tags instead.

    arn String
    ARN of the Resource Set.
    id String
    The provider-assigned unique ID for this managed resource.
    tagsAll Map<String>

    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_sets: Optional[Sequence[ResourceSetResourceSetArgs]] = None,
            tags: Optional[Mapping[str, str]] = None,
            tags_all: Optional[Mapping[str, str]] = None,
            timeouts: Optional[ResourceSetTimeoutsArgs] = 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
    ARN of the Resource Set.
    ResourceSets List<ResourceSetResourceSet>
    Details about the resource set to be created or updated. See resource_set Attribute Reference below.
    Tags Dictionary<string, string>
    TagsAll Dictionary<string, string>

    Deprecated: Please use tags instead.

    Timeouts ResourceSetTimeouts
    Arn string
    ARN of the Resource Set.
    ResourceSets []ResourceSetResourceSetArgs
    Details about the resource set to be created or updated. See resource_set Attribute Reference below.
    Tags map[string]string
    TagsAll map[string]string

    Deprecated: Please use tags instead.

    Timeouts ResourceSetTimeoutsArgs
    arn String
    ARN of the Resource Set.
    resourceSets List<ResourceSetResourceSet>
    Details about the resource set to be created or updated. See resource_set Attribute Reference below.
    tags Map<String,String>
    tagsAll Map<String,String>

    Deprecated: Please use tags instead.

    timeouts ResourceSetTimeouts
    arn string
    ARN of the Resource Set.
    resourceSets ResourceSetResourceSet[]
    Details about the resource set to be created or updated. See resource_set Attribute Reference below.
    tags {[key: string]: string}
    tagsAll {[key: string]: string}

    Deprecated: Please use tags instead.

    timeouts ResourceSetTimeouts
    arn str
    ARN of the Resource Set.
    resource_sets Sequence[ResourceSetResourceSetArgs]
    Details about the resource set to be created or updated. See resource_set Attribute Reference below.
    tags Mapping[str, str]
    tags_all Mapping[str, str]

    Deprecated: Please use tags instead.

    timeouts ResourceSetTimeoutsArgs
    arn String
    ARN of the Resource Set.
    resourceSets List<Property Map>
    Details about the resource set to be created or updated. See resource_set Attribute Reference below.
    tags Map<String>
    tagsAll Map<String>

    Deprecated: Please use tags instead.

    timeouts Property Map

    Supporting Types

    ResourceSetResourceSet, ResourceSetResourceSetArgs

    Name string
    Descriptive name of the resource set. You can't change the name of a resource set after you create it.
    Description string
    Description of the resource set.
    Id string
    Unique identifier for the resource set. It's returned in the responses to create and list commands. You provide it to operations like update and delete.
    LastUpdateTime string
    Last time that the reosurce set was changed.
    ResourceSetStatus string
    Indicates whether the resource set is in or out of the admin's Region scope. Valid values are ACTIVE (Admin can manage and delete the resource set) or OUT_OF_ADMIN_SCOPE (Admin can view the resource set, but theyy can't edit or delete the resource set.)
    ResourceTypeLists List<string>
    Determines the resources that can be associated to the resource set. Depending on your setting for max results and the number of resource sets, a single call might not return the full list.
    UpdateToken string
    Name string
    Descriptive name of the resource set. You can't change the name of a resource set after you create it.
    Description string
    Description of the resource set.
    Id string
    Unique identifier for the resource set. It's returned in the responses to create and list commands. You provide it to operations like update and delete.
    LastUpdateTime string
    Last time that the reosurce set was changed.
    ResourceSetStatus string
    Indicates whether the resource set is in or out of the admin's Region scope. Valid values are ACTIVE (Admin can manage and delete the resource set) or OUT_OF_ADMIN_SCOPE (Admin can view the resource set, but theyy can't edit or delete the resource set.)
    ResourceTypeLists []string
    Determines the resources that can be associated to the resource set. Depending on your setting for max results and the number of resource sets, a single call might not return the full list.
    UpdateToken string
    name String
    Descriptive name of the resource set. You can't change the name of a resource set after you create it.
    description String
    Description of the resource set.
    id String
    Unique identifier for the resource set. It's returned in the responses to create and list commands. You provide it to operations like update and delete.
    lastUpdateTime String
    Last time that the reosurce set was changed.
    resourceSetStatus String
    Indicates whether the resource set is in or out of the admin's Region scope. Valid values are ACTIVE (Admin can manage and delete the resource set) or OUT_OF_ADMIN_SCOPE (Admin can view the resource set, but theyy can't edit or delete the resource set.)
    resourceTypeLists List<String>
    Determines the resources that can be associated to the resource set. Depending on your setting for max results and the number of resource sets, a single call might not return the full list.
    updateToken String
    name string
    Descriptive name of the resource set. You can't change the name of a resource set after you create it.
    description string
    Description of the resource set.
    id string
    Unique identifier for the resource set. It's returned in the responses to create and list commands. You provide it to operations like update and delete.
    lastUpdateTime string
    Last time that the reosurce set was changed.
    resourceSetStatus string
    Indicates whether the resource set is in or out of the admin's Region scope. Valid values are ACTIVE (Admin can manage and delete the resource set) or OUT_OF_ADMIN_SCOPE (Admin can view the resource set, but theyy can't edit or delete the resource set.)
    resourceTypeLists string[]
    Determines the resources that can be associated to the resource set. Depending on your setting for max results and the number of resource sets, a single call might not return the full list.
    updateToken string
    name str
    Descriptive name of the resource set. You can't change the name of a resource set after you create it.
    description str
    Description of the resource set.
    id str
    Unique identifier for the resource set. It's returned in the responses to create and list commands. You provide it to operations like update and delete.
    last_update_time str
    Last time that the reosurce set was changed.
    resource_set_status str
    Indicates whether the resource set is in or out of the admin's Region scope. Valid values are ACTIVE (Admin can manage and delete the resource set) or OUT_OF_ADMIN_SCOPE (Admin can view the resource set, but theyy can't edit or delete the resource set.)
    resource_type_lists Sequence[str]
    Determines the resources that can be associated to the resource set. Depending on your setting for max results and the number of resource sets, a single call might not return the full list.
    update_token str
    name String
    Descriptive name of the resource set. You can't change the name of a resource set after you create it.
    description String
    Description of the resource set.
    id String
    Unique identifier for the resource set. It's returned in the responses to create and list commands. You provide it to operations like update and delete.
    lastUpdateTime String
    Last time that the reosurce set was changed.
    resourceSetStatus String
    Indicates whether the resource set is in or out of the admin's Region scope. Valid values are ACTIVE (Admin can manage and delete the resource set) or OUT_OF_ADMIN_SCOPE (Admin can view the resource set, but theyy can't edit or delete the resource set.)
    resourceTypeLists List<String>
    Determines the resources that can be associated to the resource set. Depending on your setting for max results and the number of resource sets, a single call might not return the full list.
    updateToken String

    ResourceSetTimeouts, ResourceSetTimeoutsArgs

    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).
    Delete 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). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    Update 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).
    Delete 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). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    Update 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).
    delete 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). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    update 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).
    delete 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). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    update 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).
    delete 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). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    update 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).
    delete 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). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    update 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 FMS (Firewall Manager) Resource Set using the id. For example:

    $ pulumi import aws:fms/resourceSet:ResourceSet example resource_set-id-12345678
    

    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.42.0 published on Wednesday, Jun 26, 2024 by Pulumi