aws.fms.ResourceSet
Explore with Pulumi AI
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",
"resource_type_lists": ["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:
- Resource
Sets List<ResourceSet Resource Set> - Details about the resource set to be created or updated. See
resource_set
Attribute Reference below. - Dictionary<string, string>
- Timeouts
Resource
Set Timeouts
- Resource
Sets []ResourceSet Resource Set Args - Details about the resource set to be created or updated. See
resource_set
Attribute Reference below. - map[string]string
- Timeouts
Resource
Set Timeouts Args
- resource
Sets List<ResourceSet Resource Set> - Details about the resource set to be created or updated. See
resource_set
Attribute Reference below. - Map<String,String>
- timeouts
Resource
Set Timeouts
- resource
Sets ResourceSet Resource Set[] - Details about the resource set to be created or updated. See
resource_set
Attribute Reference below. - {[key: string]: string}
- timeouts
Resource
Set Timeouts
- resource_
sets Sequence[ResourceSet Resource Set Args] - Details about the resource set to be created or updated. See
resource_set
Attribute Reference below. - Mapping[str, str]
- timeouts
Resource
Set Timeouts Args
- resource
Sets List<Property Map> - Details about the resource set to be created or updated. See
resource_set
Attribute Reference below. - Map<String>
- timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the ResourceSet resource produces the following output properties:
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.
- Arn string
- ARN of the Resource Set.
- Resource
Sets List<ResourceSet Resource Set> - Details about the resource set to be created or updated. See
resource_set
Attribute Reference below. - Dictionary<string, string>
- Dictionary<string, string>
- Timeouts
Resource
Set Timeouts
- Arn string
- ARN of the Resource Set.
- Resource
Sets []ResourceSet Resource Set Args - Details about the resource set to be created or updated. See
resource_set
Attribute Reference below. - map[string]string
- map[string]string
- Timeouts
Resource
Set Timeouts Args
- arn String
- ARN of the Resource Set.
- resource
Sets List<ResourceSet Resource Set> - Details about the resource set to be created or updated. See
resource_set
Attribute Reference below. - Map<String,String>
- Map<String,String>
- timeouts
Resource
Set Timeouts
- arn string
- ARN of the Resource Set.
- resource
Sets ResourceSet Resource Set[] - Details about the resource set to be created or updated. See
resource_set
Attribute Reference below. - {[key: string]: string}
- {[key: string]: string}
- timeouts
Resource
Set Timeouts
- arn str
- ARN of the Resource Set.
- resource_
sets Sequence[ResourceSet Resource Set Args] - Details about the resource set to be created or updated. See
resource_set
Attribute Reference below. - Mapping[str, str]
- Mapping[str, str]
- timeouts
Resource
Set Timeouts Args
- arn String
- ARN of the Resource Set.
- resource
Sets List<Property Map> - Details about the resource set to be created or updated. See
resource_set
Attribute Reference below. - Map<String>
- Map<String>
- 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.
- Last
Update stringTime - Last time that the reosurce set was changed.
- Resource
Set stringStatus - 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) orOUT_OF_ADMIN_SCOPE
(Admin can view the resource set, but theyy can't edit or delete the resource set.) - Resource
Type List<string>Lists - 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 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.
- Last
Update stringTime - Last time that the reosurce set was changed.
- Resource
Set stringStatus - 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) orOUT_OF_ADMIN_SCOPE
(Admin can view the resource set, but theyy can't edit or delete the resource set.) - Resource
Type []stringLists - 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 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.
- last
Update StringTime - Last time that the reosurce set was changed.
- resource
Set StringStatus - 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) orOUT_OF_ADMIN_SCOPE
(Admin can view the resource set, but theyy can't edit or delete the resource set.) - resource
Type List<String>Lists - 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 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.
- last
Update stringTime - Last time that the reosurce set was changed.
- resource
Set stringStatus - 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) orOUT_OF_ADMIN_SCOPE
(Admin can view the resource set, but theyy can't edit or delete the resource set.) - resource
Type string[]Lists - 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 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_ strtime - Last time that the reosurce set was changed.
- resource_
set_ strstatus - 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) orOUT_OF_ADMIN_SCOPE
(Admin can view the resource set, but theyy can't edit or delete the resource set.) - resource_
type_ Sequence[str]lists - 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.
- last
Update StringTime - Last time that the reosurce set was changed.
- resource
Set StringStatus - 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) orOUT_OF_ADMIN_SCOPE
(Admin can view the resource set, but theyy can't edit or delete the resource set.) - resource
Type List<String>Lists - 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 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.