Class IpSecPolicy


  • public class IpSecPolicy
    extends com.pulumi.resources.CustomResource
    Manages a V2 Neutron IPSec policy resource within OpenStack. ## Example Usage ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.openstack.vpnaas.IpSecPolicy; import java.util.List; import java.util.ArrayList; 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 policy1 = new IpSecPolicy("policy1"); } } ``` ## Import Policies can be imported using the `id`, e.g. ```sh $ pulumi import openstack:vpnaas/ipSecPolicy:IpSecPolicy policy_1 832cb7f3-59fe-40cf-8f64-8350ffc03272 ```
    • 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.lang.String> authAlgorithm()  
      com.pulumi.core.Output<java.util.Optional<java.lang.String>> description()  
      com.pulumi.core.Output<java.lang.String> encapsulationMode()  
      com.pulumi.core.Output<java.lang.String> encryptionAlgorithm()  
      static IpSecPolicy get​(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, IpSecPolicyState 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.List<IpSecPolicyLifetime>> lifetimes()  
      com.pulumi.core.Output<java.lang.String> name()  
      com.pulumi.core.Output<java.lang.String> pfs()  
      com.pulumi.core.Output<java.lang.String> region()  
      com.pulumi.core.Output<java.lang.String> tenantId()  
      com.pulumi.core.Output<java.lang.String> transformProtocol()  
      com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,​java.lang.Object>>> valueSpecs()  
      • 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

      • IpSecPolicy

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

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

        public IpSecPolicy​(java.lang.String name,
                           @Nullable
                           IpSecPolicyArgs 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

      • authAlgorithm

        public com.pulumi.core.Output<java.lang.String> authAlgorithm()
        Returns:
        The authentication hash algorithm. Valid values are sha1, sha256, sha384, sha512. Default is sha1. Changing this updates the algorithm of the existing policy.
      • description

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> description()
        Returns:
        The human-readable description for the policy. Changing this updates the description of the existing policy.
      • encapsulationMode

        public com.pulumi.core.Output<java.lang.String> encapsulationMode()
        Returns:
        The encapsulation mode. Valid values are tunnel and transport. Default is tunnel. Changing this updates the existing policy.
      • encryptionAlgorithm

        public com.pulumi.core.Output<java.lang.String> encryptionAlgorithm()
        Returns:
        The encryption algorithm. Valid values are 3des, aes-128, aes-192 and so on. The default value is aes-128. Changing this updates the existing policy.
      • lifetimes

        public com.pulumi.core.Output<java.util.List<IpSecPolicyLifetime>> lifetimes()
        Returns:
        The lifetime of the security association. Consists of Unit and Value.
      • name

        public com.pulumi.core.Output<java.lang.String> name()
        Returns:
        The name of the policy. Changing this updates the name of the existing policy.
      • pfs

        public com.pulumi.core.Output<java.lang.String> pfs()
        Returns:
        The perfect forward secrecy mode. Valid values are group2, group5 and group14. Default is group5. Changing this updates the existing policy.
      • region

        public com.pulumi.core.Output<java.lang.String> region()
        Returns:
        The region in which to obtain the V2 Networking client. A Networking client is needed to create an IPSec policy. If omitted, the `region` argument of the provider is used. Changing this creates a new policy.
      • tenantId

        public com.pulumi.core.Output<java.lang.String> tenantId()
        Returns:
        The owner of the policy. Required if admin wants to create a policy for another project. Changing this creates a new policy.
      • transformProtocol

        public com.pulumi.core.Output<java.lang.String> transformProtocol()
        Returns:
        The transform protocol. Valid values are esp, ah and ah-esp. Changing this updates the existing policy. Default is ESP.
      • valueSpecs

        public com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,​java.lang.Object>>> valueSpecs()
        Returns:
        Map of additional options.
      • get

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