Package com.pulumi.aws.resiliencehub
Class V2Assertion
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.aws.resiliencehub.V2Assertion
-
public class V2Assertion extends com.pulumi.resources.CustomResourceResource for managing an AWS Resilience Hub V2 Assertion. An assertion is a statement about your application that provides context for failure mode assessments. Assertions help the GenAI assessment engine understand aspects of your architecture that aren't visible from resource configuration alone (e.g., "Data loss is unacceptable", "Typical traffic is 1000 TPS spiking to 10000 TPS"). ## Example Usage ### Basic Usage
## Import ### Identity Schema #### Required * `serviceArn` (String) ARN of the service this assertion belongs to. * `assertionId` (String) Unique identifier of the assertion. #### Optional * `accountId` (String) AWS Account where this resource is managed. * `region` (String) Region where this resource is managed. Using `pulumi import`, import Resilience Hub V2 Assertion using the `serviceArn` and `assertionId` separated by a comma (`,`). For example: ```sh $ pulumi import aws:resiliencehub/v2Assertion:V2Assertion example arn:aws:resiliencehub:us-west-2:123456789012:service/example-service:abc123,12345678-1234-1234-1234-123456789012 ```package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.aws.resiliencehub.V2Assertion; import com.pulumi.aws.resiliencehub.V2AssertionArgs; 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 V2Assertion("example", V2AssertionArgs.builder() .serviceArn(exampleAwsResiliencehubv2Service.arn()) .text("The service must recover within 5 minutes of an AZ failure") .build()); } }
-
-
Constructor Summary
Constructors Constructor Description V2Assertion(java.lang.String name)V2Assertion(java.lang.String name, V2AssertionArgs args)V2Assertion(java.lang.String name, V2AssertionArgs 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>assertionId()static V2Assertionget(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, V2AssertionState 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.lang.String>serviceArn()com.pulumi.core.Output<java.lang.String>text()
-
-
-
Constructor Detail
-
V2Assertion
public V2Assertion(java.lang.String name)
- Parameters:
name- The _unique_ name of the resulting resource.
-
V2Assertion
public V2Assertion(java.lang.String name, V2AssertionArgs args)- Parameters:
name- The _unique_ name of the resulting resource.args- The arguments to use to populate this resource's properties.
-
V2Assertion
public V2Assertion(java.lang.String name, V2AssertionArgs 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
-
assertionId
public com.pulumi.core.Output<java.lang.String> assertionId()
- Returns:
- Unique identifier of the assertion.
-
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.
-
serviceArn
public com.pulumi.core.Output<java.lang.String> serviceArn()
- Returns:
- ARN of the service this assertion belongs to. Changing this value requires creating a new resource.
-
text
public com.pulumi.core.Output<java.lang.String> text()
- Returns:
- Text of the resilience assertion. The following arguments are optional:
-
get
public static V2Assertion get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable V2AssertionState 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.
-
-