Package com.pulumi.aws.ssm
Class PatchGroup
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.aws.ssm.PatchGroup
-
public class PatchGroup extends com.pulumi.resources.CustomResourceProvides an SSM Patch Group resource ## Example Usage
## Import ### Identity Schema #### Required * `baselineId` (String) The ID of the patch baseline. * `patchGroup` (String) The name of the patch group. #### Optional * `accountId` (String) AWS Account where this resource is managed. * `region` (String) Region where this resource is managed. Using `pulumi import`, import an SSM Patch Group using the `patchGroup` and `baselineId` separated by a comma (`,`). For example: ```sh $ pulumi import aws:ssm/patchGroup:PatchGroup example patch-group-name,pb-1234567890abcdef0 ```package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.aws.ssm.PatchBaseline; import com.pulumi.aws.ssm.PatchBaselineArgs; import com.pulumi.aws.ssm.PatchGroup; import com.pulumi.aws.ssm.PatchGroupArgs; 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 PatchBaseline("example", PatchBaselineArgs.builder() .name("patch-baseline") .approvedPatches("KB123456") .build()); var examplePatchGroup = new PatchGroup("examplePatchGroup", PatchGroupArgs.builder() .baselineId(example.id()) .patchGroup("patch-group-name") .build()); } }
-
-
Constructor Summary
Constructors Constructor Description PatchGroup(java.lang.String name)PatchGroup(java.lang.String name, PatchGroupArgs args)PatchGroup(java.lang.String name, PatchGroupArgs 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>baselineId()static PatchGroupget(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, PatchGroupState 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>patchGroup()com.pulumi.core.Output<java.lang.String>region()
-
-
-
Constructor Detail
-
PatchGroup
public PatchGroup(java.lang.String name)
- Parameters:
name- The _unique_ name of the resulting resource.
-
PatchGroup
public PatchGroup(java.lang.String name, PatchGroupArgs args)- Parameters:
name- The _unique_ name of the resulting resource.args- The arguments to use to populate this resource's properties.
-
PatchGroup
public PatchGroup(java.lang.String name, PatchGroupArgs 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
-
baselineId
public com.pulumi.core.Output<java.lang.String> baselineId()
- Returns:
- The ID of the patch baseline to register the patch group with.
-
patchGroup
public com.pulumi.core.Output<java.lang.String> patchGroup()
- Returns:
- The name of the patch group that should be registered with the patch baseline.
-
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.
-
get
public static PatchGroup get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable PatchGroupState 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.
-
-