Class EncryptionControl


  • @Deprecated
    public class EncryptionControl
    extends com.pulumi.resources.CustomResource
    Deprecated.
    aws.ec2/encryptioncontrol.EncryptionControl has been deprecated in favor of aws.ec2/vpcencryptioncontrol.VpcEncryptionControl
    Manages a VPC Encryption Control. ## Example Usage ### Basic Usage
     
     package generated_program;
     
     import com.pulumi.Context;
     import com.pulumi.Pulumi;
     import com.pulumi.core.Output;
     import com.pulumi.aws.ec2.Vpc;
     import com.pulumi.aws.ec2.VpcArgs;
     import com.pulumi.aws.ec2.VpcEncryptionControl;
     import com.pulumi.aws.ec2.VpcEncryptionControlArgs;
     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 exampleVpc = new Vpc("exampleVpc", VpcArgs.builder()
                 .cidrBlock("10.1.0.0/16")
                 .build());
     
             var example = new VpcEncryptionControl("example", VpcEncryptionControlArgs.builder()
                 .vpcId(exampleVpc.id())
                 .mode("monitor")
                 .build());
     
         }
     }
     
     
    ## Import ### Identity Schema #### Required * `id` (String) VPC Encryption Control ID. #### Optional * `accountId` (String) Account ID where this resource is managed. * `region` (String) Region where this resource is managed. Using `pulumi import`, import VPC Encryption Control using the `id`. For example: ```sh $ pulumi import aws:ec2/encryptionControl:EncryptionControl example vpcec-12345678901234567 ```
    • 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 Deprecated Methods 
      Modifier and Type Method Description
      com.pulumi.core.Output<java.lang.String> egressOnlyInternetGatewayExclusion()
      Deprecated.
       
      com.pulumi.core.Output<java.lang.String> elasticFileSystemExclusion()
      Deprecated.
       
      static EncryptionControl get​(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, EncryptionControlState state, com.pulumi.resources.CustomResourceOptions options)
      Deprecated.
      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> internetGatewayExclusion()
      Deprecated.
       
      com.pulumi.core.Output<java.lang.String> lambdaExclusion()
      Deprecated.
       
      com.pulumi.core.Output<java.lang.String> mode()
      Deprecated.
       
      com.pulumi.core.Output<java.lang.String> natGatewayExclusion()
      Deprecated.
       
      com.pulumi.core.Output<java.lang.String> region()
      Deprecated.
       
      com.pulumi.core.Output<EncryptionControlResourceExclusions> resourceExclusions()
      Deprecated.
       
      com.pulumi.core.Output<java.lang.String> state()
      Deprecated.
       
      com.pulumi.core.Output<java.lang.String> stateMessage()
      Deprecated.
       
      com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,​java.lang.String>>> tags()
      Deprecated.
       
      com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> tagsAll()
      Deprecated.
       
      com.pulumi.core.Output<java.util.Optional<EncryptionControlTimeouts>> timeouts()
      Deprecated.
       
      com.pulumi.core.Output<java.lang.String> virtualPrivateGatewayExclusion()
      Deprecated.
       
      com.pulumi.core.Output<java.lang.String> vpcId()
      Deprecated.
       
      com.pulumi.core.Output<java.lang.String> vpcLatticeExclusion()
      Deprecated.
       
      com.pulumi.core.Output<java.lang.String> vpcPeeringExclusion()
      Deprecated.
       
      • 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

      • EncryptionControl

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

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

        public EncryptionControl​(java.lang.String name,
                                 EncryptionControlArgs args,
                                 @Nullable
                                 com.pulumi.resources.CustomResourceOptions options)
        Deprecated.
        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

      • egressOnlyInternetGatewayExclusion

        public com.pulumi.core.Output<java.lang.String> egressOnlyInternetGatewayExclusion()
        Deprecated.
        Returns:
        Whether to exclude Egress-Only Internet Gateways from encryption enforcement. Valid values are `disable` or `enable`. Default is `disable`. Only valid when `mode` is `enforce`.
      • elasticFileSystemExclusion

        public com.pulumi.core.Output<java.lang.String> elasticFileSystemExclusion()
        Deprecated.
        Returns:
        Whether to exclude Elastic File System (EFS) from encryption enforcement. Valid values are `disable` or `enable`. Default is `disable`. Only valid when `mode` is `enforce`.
      • internetGatewayExclusion

        public com.pulumi.core.Output<java.lang.String> internetGatewayExclusion()
        Deprecated.
        Returns:
        Whether to exclude Internet Gateways from encryption enforcement. Valid values are `disable` or `enable`. Default is `disable`. Only valid when `mode` is `enforce`.
      • lambdaExclusion

        public com.pulumi.core.Output<java.lang.String> lambdaExclusion()
        Deprecated.
        Returns:
        Whether to exclude Lambda Functions from encryption enforcement. Valid values are `disable` or `enable`. Default is `disable`. Only valid when `mode` is `enforce`.
      • mode

        public com.pulumi.core.Output<java.lang.String> mode()
        Deprecated.
        Returns:
        Mode to enable for VPC Encryption Control. Valid values are `monitor` or `enforce`.
      • natGatewayExclusion

        public com.pulumi.core.Output<java.lang.String> natGatewayExclusion()
        Deprecated.
        Returns:
        Whether to exclude NAT Gateways from encryption enforcement. Valid values are `disable` or `enable`. Default is `disable`. Only valid when `mode` is `enforce`.
      • region

        public com.pulumi.core.Output<java.lang.String> region()
        Deprecated.
        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.
      • resourceExclusions

        public com.pulumi.core.Output<EncryptionControlResourceExclusions> resourceExclusions()
        Deprecated.
        Returns:
        State of exclusions from encryption enforcement. Will be `nil` if `mode` is `monitor`. See `resourceExclusions` below.
      • state

        public com.pulumi.core.Output<java.lang.String> state()
        Deprecated.
        Returns:
        Encryption enforcement state for peered VPCs.
      • stateMessage

        public com.pulumi.core.Output<java.lang.String> stateMessage()
        Deprecated.
        Returns:
        Message providing additional information about the encryption enforcement state.
      • tags

        public com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,​java.lang.String>>> tags()
        Deprecated.
        Returns:
        Map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
      • tagsAll

        public com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> tagsAll()
        Deprecated.
        Returns:
        Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
      • virtualPrivateGatewayExclusion

        public com.pulumi.core.Output<java.lang.String> virtualPrivateGatewayExclusion()
        Deprecated.
        Returns:
        Whether to exclude Virtual Private Gateways from encryption enforcement. Valid values are `disable` or `enable`. Default is `disable`. Only valid when `mode` is `enforce`.
      • vpcId

        public com.pulumi.core.Output<java.lang.String> vpcId()
        Deprecated.
        Returns:
        ID of the VPC the VPC Encryption Control is linked to. The following arguments are optional:
      • vpcLatticeExclusion

        public com.pulumi.core.Output<java.lang.String> vpcLatticeExclusion()
        Deprecated.
        Returns:
        Whether to exclude VPC Lattice from encryption enforcement. Valid values are `disable` or `enable`. Default is `disable`. Only valid when `mode` is `enforce`.
      • vpcPeeringExclusion

        public com.pulumi.core.Output<java.lang.String> vpcPeeringExclusion()
        Deprecated.
        Returns:
        Whether to exclude peered VPCs from encryption enforcement. Valid values are `disable` or `enable`. Default is `disable`. Only valid when `mode` is `enforce`.
      • get

        public static EncryptionControl get​(java.lang.String name,
                                            com.pulumi.core.Output<java.lang.String> id,
                                            @Nullable
                                            EncryptionControlState state,
                                            @Nullable
                                            com.pulumi.resources.CustomResourceOptions options)
        Deprecated.
        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.