Package com.pulumi.aws.inspector
Class ResourceGroup
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.aws.inspector.ResourceGroup
-
public class ResourceGroup extends com.pulumi.resources.CustomResourceProvides an Amazon Inspector Classic Resource Group. ## Example Usagepackage generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.aws.inspector.ResourceGroup; import com.pulumi.aws.inspector.ResourceGroupArgs; import java.util.ArrayList; import java.util.Arrays; 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 ResourceGroup("example", ResourceGroupArgs.builder() .tags(Map.ofEntries( Map.entry("Name", "foo"), Map.entry("Env", "bar") )) .build()); } }
-
-
Constructor Summary
Constructors Constructor Description ResourceGroup(java.lang.String name)ResourceGroup(java.lang.String name, ResourceGroupArgs args)ResourceGroup(java.lang.String name, ResourceGroupArgs args, com.pulumi.resources.CustomResourceOptions options)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.pulumi.core.Output<java.lang.String>arn()static ResourceGroupget(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, ResourceGroupState state, com.pulumi.resources.CustomResourceOptions options)Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.com.pulumi.core.Output<java.lang.String>region()com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>>tags()
-
-
-
Constructor Detail
-
ResourceGroup
public ResourceGroup(java.lang.String name)
- Parameters:
name- The _unique_ name of the resulting resource.
-
ResourceGroup
public ResourceGroup(java.lang.String name, ResourceGroupArgs args)- Parameters:
name- The _unique_ name of the resulting resource.args- The arguments to use to populate this resource's properties.
-
ResourceGroup
public ResourceGroup(java.lang.String name, ResourceGroupArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options)- Parameters:
name- The _unique_ name of the resulting resource.args- The arguments to use to populate this resource's properties.options- A bag of options that control this resource's behavior.
-
-
Method Detail
-
arn
public com.pulumi.core.Output<java.lang.String> arn()
- Returns:
- The resource group ARN.
-
region
public com.pulumi.core.Output<java.lang.String> region()
- Returns:
- Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
-
tags
public com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>> tags()
- Returns:
- Key-value map of tags that are used to select the EC2 instances to be included in an Amazon Inspector assessment target.
-
get
public static ResourceGroup get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable ResourceGroupState state, @Nullable com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.- Parameters:
name- The _unique_ name of the resulting resource.id- The _unique_ provider ID of the resource to lookup.state-options- Optional settings to control the behavior of the CustomResource.
-
-