com.pulumi.aws.fms.kotlin.ResourceSetArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-kotlin Show documentation
Show all versions of pulumi-aws-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.aws.fms.kotlin
import com.pulumi.aws.fms.ResourceSetArgs.builder
import com.pulumi.aws.fms.kotlin.inputs.ResourceSetResourceSetArgs
import com.pulumi.aws.fms.kotlin.inputs.ResourceSetResourceSetArgsBuilder
import com.pulumi.aws.fms.kotlin.inputs.ResourceSetTimeoutsArgs
import com.pulumi.aws.fms.kotlin.inputs.ResourceSetTimeoutsArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName
/**
* Resource for managing an AWS FMS (Firewall Manager) Resource Set.
* ## Example Usage
* ### Basic Usage
*
* ```typescript
* 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"],
* }]});
* ```
* ```python
* import pulumi
* import pulumi_aws as aws
* example = aws.fms.ResourceSet("example", resource_sets=[{
* "name": "testing",
* "resource_type_lists": ["AWS::NetworkFirewall::Firewall"],
* }])
* ```
* ```csharp
* 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",
* },
* },
* },
* });
* });
* ```
* ```go
* 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
* })
* }
* ```
* ```java
* 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());
* }
* }
* ```
* ```yaml
* resources:
* example:
* type: aws:fms:ResourceSet
* properties:
* resourceSets:
* - name: testing
* resourceTypeLists:
* - AWS::NetworkFirewall::Firewall
* ```
*
* ## Import
* Using `pulumi import`, import FMS (Firewall Manager) Resource Set using the `id`. For example:
* ```sh
* $ pulumi import aws:fms/resourceSet:ResourceSet example resource_set-id-12345678
* ```
* @property resourceSets Details about the resource set to be created or updated. See `resource_set` Attribute Reference below.
* @property tags
* @property timeouts
*/
public data class ResourceSetArgs(
public val resourceSets: Output>? = null,
public val tags: Output
© 2015 - 2024 Weber Informatics LLC | Privacy Policy