Class V2UserJourney


  • public class V2UserJourney
    extends com.pulumi.resources.CustomResource
    Resource for managing an AWS Resilience Hub V2 User Journey. A user journey describes a critical end-user path or business capability within a system (e.g., "Path to purchase", "Order fulfillment"). User journeys reference services and can have resilience policies applied at the journey level. ## Example Usage ### Basic Usage
     
     package generated_program;
     
     import com.pulumi.Context;
     import com.pulumi.Pulumi;
     import com.pulumi.core.Output;
     import com.pulumi.aws.resiliencehub.V2System;
     import com.pulumi.aws.resiliencehub.V2SystemArgs;
     import com.pulumi.aws.resiliencehub.V2UserJourney;
     import com.pulumi.aws.resiliencehub.V2UserJourneyArgs;
     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 V2System("example", V2SystemArgs.builder()
                 .name("example-system")
                 .build());
     
             var exampleV2UserJourney = new V2UserJourney("exampleV2UserJourney", V2UserJourneyArgs.builder()
                 .systemArn(example.arn())
                 .name("example-user-journey")
                 .build());
     
         }
     }
     
     
    ### With Policy
     
     package generated_program;
     
     import com.pulumi.Context;
     import com.pulumi.Pulumi;
     import com.pulumi.core.Output;
     import com.pulumi.aws.resiliencehub.V2System;
     import com.pulumi.aws.resiliencehub.V2SystemArgs;
     import com.pulumi.aws.resiliencehub.V2Policy;
     import com.pulumi.aws.resiliencehub.V2PolicyArgs;
     import com.pulumi.aws.resiliencehub.inputs.V2PolicyAvailabilitySloArgs;
     import com.pulumi.aws.resiliencehub.V2UserJourney;
     import com.pulumi.aws.resiliencehub.V2UserJourneyArgs;
     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 V2System("example", V2SystemArgs.builder()
                 .name("example-system")
                 .build());
     
             var exampleV2Policy = new V2Policy("exampleV2Policy", V2PolicyArgs.builder()
                 .availabilitySlo(V2PolicyAvailabilitySloArgs.builder()
                     .target(99.9)
                     .build())
                 .name("example-policy")
                 .build());
     
             var exampleV2UserJourney = new V2UserJourney("exampleV2UserJourney", V2UserJourneyArgs.builder()
                 .systemArn(example.arn())
                 .name("checkout-flow")
                 .description("End-to-end checkout user journey")
                 .policyArn(exampleV2Policy.arn())
                 .build());
     
         }
     }
     
     
    ## Import ### Identity Schema #### Required * `systemArn` (String) ARN of the system this user journey belongs to. * `userJourneyId` (String) Unique identifier of the user journey. #### 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 User Journey using the `systemArn` and `userJourneyId` separated by a comma (`,`). For example: ```sh $ pulumi import aws:resiliencehub/v2UserJourney:V2UserJourney example arn:aws:resiliencehub:us-west-2:123456789012:system/example-system:abc123,12345678-1234-1234-1234-123456789012 ```
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.pulumi.resources.CustomResource

        com.pulumi.resources.CustomResource.CustomResourceInternal
      • Nested classes/interfaces inherited from class com.pulumi.resources.Resource

        com.pulumi.resources.Resource.LazyField<T extends java.lang.Object>, com.pulumi.resources.Resource.LazyFields, com.pulumi.resources.Resource.ResourceInternal
    • Field Summary

      • Fields inherited from class com.pulumi.resources.Resource

        childResources, remote
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.pulumi.core.Output<java.util.Optional<java.lang.String>> description()  
      static V2UserJourney get​(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, V2UserJourneyState 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> name()  
      com.pulumi.core.Output<java.util.Optional<java.lang.String>> policyArn()  
      com.pulumi.core.Output<java.lang.String> region()  
      com.pulumi.core.Output<java.lang.String> systemArn()  
      com.pulumi.core.Output<java.lang.String> userJourneyId()  
      • Methods inherited from class com.pulumi.resources.CustomResource

        getId, id, idFuture
      • Methods inherited from class com.pulumi.resources.Resource

        getChildResources, getResourceName, getResourceType, getUrn, pulumiChildResources, pulumiResourceName, pulumiResourceType, urn
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • V2UserJourney

        public V2UserJourney​(java.lang.String name)
        Parameters:
        name - The _unique_ name of the resulting resource.
      • V2UserJourney

        public V2UserJourney​(java.lang.String name,
                             V2UserJourneyArgs args)
        Parameters:
        name - The _unique_ name of the resulting resource.
        args - The arguments to use to populate this resource's properties.
      • V2UserJourney

        public V2UserJourney​(java.lang.String name,
                             V2UserJourneyArgs 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

      • description

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> description()
        Returns:
        Description of the user journey.
      • name

        public com.pulumi.core.Output<java.lang.String> name()
        Returns:
        Name of the user journey.
      • policyArn

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> policyArn()
        Returns:
        ARN of the resilience policy to associate with this user journey.
      • 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.
      • systemArn

        public com.pulumi.core.Output<java.lang.String> systemArn()
        Returns:
        ARN of the system this user journey belongs to. Changing this value requires creating a new resource. The following arguments are optional:
      • userJourneyId

        public com.pulumi.core.Output<java.lang.String> userJourneyId()
        Returns:
        Unique identifier of the user journey.
      • get

        public static V2UserJourney get​(java.lang.String name,
                                        com.pulumi.core.Output<java.lang.String> id,
                                        @Nullable
                                        V2UserJourneyState 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.