Class AutoManagement


  • public class AutoManagement
    extends com.pulumi.resources.CustomResource
    Manages AWS Service Quotas Automatic Management. > **Note:** Due to AWS API limitations, the `notificationArn` attribute cannot be removed once set without recreating the resource. Removing this value from your configuration will trigger resource replacement. ## Example Usage
     
     package generated_program;
     
     import com.pulumi.Context;
     import com.pulumi.Pulumi;
     import com.pulumi.core.Output;
     import com.pulumi.aws.notifications.NotificationConfiguration;
     import com.pulumi.aws.notifications.NotificationConfigurationArgs;
     import com.pulumi.aws.servicequotas.AutoManagement;
     import com.pulumi.aws.servicequotas.AutoManagementArgs;
     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 exampleNotificationConfiguration = new NotificationConfiguration("exampleNotificationConfiguration", NotificationConfigurationArgs.builder()
                 .name("example")
                 .description("example configuration")
                 .build());
     
             var example = new AutoManagement("example", AutoManagementArgs.builder()
                 .optInLevel("ACCOUNT")
                 .optInType("NotifyOnly")
                 .exclusionList(Map.of("dynamodb", Arrays.asList("L-F98FE922")))
                 .notificationArn(exampleNotificationConfiguration.arn())
                 .build());
     
         }
     }
     
     
    ## Import ### Identity Schema #### Optional * `accountId` (String) AWS Account where this resource is managed. * `region` (String) Region where this resource is managed. Using `pulumi import`, import Service Quotas Auto Management using the region name. For example: ```sh $ pulumi import aws:servicequotas/autoManagement:AutoManagement example us-west-2 ```
    • 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.util.Map<java.lang.String,​java.util.List<java.lang.String>>>> exclusionList()  
      static AutoManagement get​(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, AutoManagementState 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.util.Optional<java.lang.String>> notificationArn()  
      com.pulumi.core.Output<java.lang.String> optInLevel()  
      com.pulumi.core.Output<java.lang.String> optInType()  
      com.pulumi.core.Output<java.lang.String> region()  
      • 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

      • AutoManagement

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

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

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

      • exclusionList

        public com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,​java.util.List<java.lang.String>>>> exclusionList()
        Returns:
        Map of AWS services excluded from Automatic Management. You will need to include the AWS service code and one or more Service Quotas codes.
      • notificationArn

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> notificationArn()
        Returns:
        The AWS User Notifications ARN for Automatic Management notifications.
      • optInLevel

        public com.pulumi.core.Output<java.lang.String> optInLevel()
        Returns:
        The opt-in level for Automatic Management. Valid values: `ACCOUNT`.
      • optInType

        public com.pulumi.core.Output<java.lang.String> optInType()
        Returns:
        The opt-in type for Automatic Management. Valid values: `NotifyOnly`, `NotifyAndAdjust`. The following arguments are optional:
      • 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 AutoManagement get​(java.lang.String name,
                                         com.pulumi.core.Output<java.lang.String> id,
                                         @Nullable
                                         AutoManagementState 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.