1. Registry
  2. Packages
  3. AWS
  4. API Docs
  5. resiliencehub
  6. V2Assertion
Viewing docs for AWS v7.46.0
published on Thursday, Sep 10, 2026 by Pulumi
aws logo aws logo
Viewing docs for AWS v7.46.0
published on Thursday, Sep 10, 2026 by Pulumi

    Resource 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 * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = new aws.resiliencehub.V2Assertion("example", {
        serviceArn: exampleAwsResiliencehubv2Service.arn,
        text: "The service must recover within 5 minutes of an AZ failure",
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.resiliencehub.V2Assertion("example",
        service_arn=example_aws_resiliencehubv2_service["arn"],
        text="The service must recover within 5 minutes of an AZ failure")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/resiliencehub"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := resiliencehub.NewV2Assertion(ctx, "example", &resiliencehub.V2AssertionArgs{
    			ServiceArn: pulumi.Any(exampleAwsResiliencehubv2Service.Arn),
    			Text:       pulumi.String("The service must recover within 5 minutes of an AZ failure"),
    		})
    		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.ResilienceHub.V2Assertion("example", new()
        {
            ServiceArn = exampleAwsResiliencehubv2Service.Arn,
            Text = "The service must recover within 5 minutes of an AZ failure",
        });
    
    });
    
    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());
    
        }
    }
    
    resources:
      example:
        type: aws:resiliencehub:V2Assertion
        properties:
          serviceArn: ${exampleAwsResiliencehubv2Service.arn}
          text: The service must recover within 5 minutes of an AZ failure
    
    pulumi {
      required_providers {
        aws = {
          source = "pulumi/aws"
        }
      }
    }
    
    resource "aws_resiliencehub_v2assertion" "example" {
      service_arn = exampleAwsResiliencehubv2Service.arn
      text        = "The service must recover within 5 minutes of an AZ failure"
    }
    

    Create V2Assertion Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new V2Assertion(name: string, args: V2AssertionArgs, opts?: CustomResourceOptions);
    @overload
    def V2Assertion(resource_name: str,
                    args: V2AssertionArgs,
                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def V2Assertion(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    service_arn: Optional[str] = None,
                    text: Optional[str] = None,
                    region: Optional[str] = None)
    func NewV2Assertion(ctx *Context, name string, args V2AssertionArgs, opts ...ResourceOption) (*V2Assertion, error)
    public V2Assertion(string name, V2AssertionArgs args, CustomResourceOptions? opts = null)
    public V2Assertion(String name, V2AssertionArgs args)
    public V2Assertion(String name, V2AssertionArgs args, CustomResourceOptions options)
    
    type: aws:resiliencehub:V2Assertion
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "aws_resiliencehub_v2_assertion" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args V2AssertionArgs
    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 V2AssertionArgs
    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 V2AssertionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args V2AssertionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args V2AssertionArgs
    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 v2assertionResource = new Aws.ResilienceHub.V2Assertion("v2assertionResource", new()
    {
        ServiceArn = "string",
        Text = "string",
        Region = "string",
    });
    
    example, err := resiliencehub.NewV2Assertion(ctx, "v2assertionResource", &resiliencehub.V2AssertionArgs{
    	ServiceArn: pulumi.String("string"),
    	Text:       pulumi.String("string"),
    	Region:     pulumi.String("string"),
    })
    
    resource "aws_resiliencehub_v2_assertion" "v2assertionResource" {
      lifecycle {
        create_before_destroy = true
      }
      service_arn = "string"
      text        = "string"
      region      = "string"
    }
    
    var v2assertionResource = new V2Assertion("v2assertionResource", V2AssertionArgs.builder()
        .serviceArn("string")
        .text("string")
        .region("string")
        .build());
    
    v2assertion_resource = aws.resiliencehub.V2Assertion("v2assertionResource",
        service_arn="string",
        text="string",
        region="string")
    
    const v2assertionResource = new aws.resiliencehub.V2Assertion("v2assertionResource", {
        serviceArn: "string",
        text: "string",
        region: "string",
    });
    
    type: aws:resiliencehub:V2Assertion
    properties:
        region: string
        serviceArn: string
        text: string
    

    V2Assertion Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The V2Assertion resource accepts the following input properties:

    ServiceArn string
    ARN of the service this assertion belongs to. Changing this value requires creating a new resource.
    Text string

    Text of the resilience assertion.

    The following arguments are optional:

    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    ServiceArn string
    ARN of the service this assertion belongs to. Changing this value requires creating a new resource.
    Text string

    Text of the resilience assertion.

    The following arguments are optional:

    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    service_arn string
    ARN of the service this assertion belongs to. Changing this value requires creating a new resource.
    text string

    Text of the resilience assertion.

    The following arguments are optional:

    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    serviceArn String
    ARN of the service this assertion belongs to. Changing this value requires creating a new resource.
    text String

    Text of the resilience assertion.

    The following arguments are optional:

    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    serviceArn string
    ARN of the service this assertion belongs to. Changing this value requires creating a new resource.
    text string

    Text of the resilience assertion.

    The following arguments are optional:

    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    service_arn str
    ARN of the service this assertion belongs to. Changing this value requires creating a new resource.
    text str

    Text of the resilience assertion.

    The following arguments are optional:

    region str
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    serviceArn String
    ARN of the service this assertion belongs to. Changing this value requires creating a new resource.
    text String

    Text of the resilience assertion.

    The following arguments are optional:

    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the V2Assertion resource produces the following output properties:

    AssertionId string
    Unique identifier of the assertion.
    Id string
    The provider-assigned unique ID for this managed resource.
    AssertionId string
    Unique identifier of the assertion.
    Id string
    The provider-assigned unique ID for this managed resource.
    assertion_id string
    Unique identifier of the assertion.
    id string
    The provider-assigned unique ID for this managed resource.
    assertionId String
    Unique identifier of the assertion.
    id String
    The provider-assigned unique ID for this managed resource.
    assertionId string
    Unique identifier of the assertion.
    id string
    The provider-assigned unique ID for this managed resource.
    assertion_id str
    Unique identifier of the assertion.
    id str
    The provider-assigned unique ID for this managed resource.
    assertionId String
    Unique identifier of the assertion.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing V2Assertion Resource

    Get an existing V2Assertion 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?: V2AssertionState, opts?: CustomResourceOptions): V2Assertion
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            assertion_id: Optional[str] = None,
            region: Optional[str] = None,
            service_arn: Optional[str] = None,
            text: Optional[str] = None) -> V2Assertion
    func GetV2Assertion(ctx *Context, name string, id IDInput, state *V2AssertionState, opts ...ResourceOption) (*V2Assertion, error)
    public static V2Assertion Get(string name, Input<string> id, V2AssertionState? state, CustomResourceOptions? opts = null)
    public static V2Assertion get(String name, Output<String> id, V2AssertionState state, CustomResourceOptions options)
    resources:  _:    type: aws:resiliencehub:V2Assertion    get:      id: ${id}
    import {
      to = aws_resiliencehub_v2_assertion.example
      id = "${id}"
    }
    
    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.
    The following state arguments are supported:
    AssertionId string
    Unique identifier of the assertion.
    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    ServiceArn string
    ARN of the service this assertion belongs to. Changing this value requires creating a new resource.
    Text string

    Text of the resilience assertion.

    The following arguments are optional:

    AssertionId string
    Unique identifier of the assertion.
    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    ServiceArn string
    ARN of the service this assertion belongs to. Changing this value requires creating a new resource.
    Text string

    Text of the resilience assertion.

    The following arguments are optional:

    assertion_id string
    Unique identifier of the assertion.
    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    service_arn string
    ARN of the service this assertion belongs to. Changing this value requires creating a new resource.
    text string

    Text of the resilience assertion.

    The following arguments are optional:

    assertionId String
    Unique identifier of the assertion.
    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    serviceArn String
    ARN of the service this assertion belongs to. Changing this value requires creating a new resource.
    text String

    Text of the resilience assertion.

    The following arguments are optional:

    assertionId string
    Unique identifier of the assertion.
    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    serviceArn string
    ARN of the service this assertion belongs to. Changing this value requires creating a new resource.
    text string

    Text of the resilience assertion.

    The following arguments are optional:

    assertion_id str
    Unique identifier of the assertion.
    region str
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    service_arn str
    ARN of the service this assertion belongs to. Changing this value requires creating a new resource.
    text str

    Text of the resilience assertion.

    The following arguments are optional:

    assertionId String
    Unique identifier of the assertion.
    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    serviceArn String
    ARN of the service this assertion belongs to. Changing this value requires creating a new resource.
    text String

    Text of the resilience assertion.

    The following arguments are optional:

    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:

    $ pulumi import aws:resiliencehub/v2Assertion:V2Assertion example arn:aws:resiliencehub:us-west-2:123456789012:service/example-service:abc123,12345678-1234-1234-1234-123456789012
    

    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.
    aws logo aws logo
    Viewing docs for AWS v7.46.0
    published on Thursday, Sep 10, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial