Class BackendServiceSignedUrlKey


  • public class BackendServiceSignedUrlKey
    extends com.pulumi.resources.CustomResource
    A key for signing Cloud CDN signed URLs for Backend Services. To get more information about BackendServiceSignedUrlKey, see: * [API documentation](https://cloud.google.com/compute/docs/reference/rest/v1/backendServices) * How-to Guides * [Using Signed URLs](https://cloud.google.com/cdn/docs/using-signed-urls/) > **Warning:** All arguments including `key_value` will be stored in the raw state as plain-text. ## Example Usage ### Backend Service Signed Url Key ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.random.RandomId; import com.pulumi.random.RandomIdArgs; import com.pulumi.gcp.compute.InstanceTemplate; import com.pulumi.gcp.compute.InstanceTemplateArgs; import com.pulumi.gcp.compute.inputs.InstanceTemplateNetworkInterfaceArgs; import com.pulumi.gcp.compute.inputs.InstanceTemplateDiskArgs; import com.pulumi.gcp.compute.InstanceGroupManager; import com.pulumi.gcp.compute.InstanceGroupManagerArgs; import com.pulumi.gcp.compute.inputs.InstanceGroupManagerVersionArgs; import com.pulumi.gcp.compute.HttpHealthCheck; import com.pulumi.gcp.compute.HttpHealthCheckArgs; import com.pulumi.gcp.compute.BackendService; import com.pulumi.gcp.compute.BackendServiceArgs; import com.pulumi.gcp.compute.inputs.BackendServiceBackendArgs; import com.pulumi.gcp.compute.BackendServiceSignedUrlKey; import com.pulumi.gcp.compute.BackendServiceSignedUrlKeyArgs; 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 urlSignature = new RandomId("urlSignature", RandomIdArgs.builder() .byteLength(16) .build()); var webserver = new InstanceTemplate("webserver", InstanceTemplateArgs.builder() .machineType("e2-medium") .networkInterfaces(InstanceTemplateNetworkInterfaceArgs.builder() .network("default") .build()) .disks(InstanceTemplateDiskArgs.builder() .sourceImage("debian-cloud/debian-11") .autoDelete(true) .boot(true) .build()) .build()); var webservers = new InstanceGroupManager("webservers", InstanceGroupManagerArgs.builder() .versions(InstanceGroupManagerVersionArgs.builder() .instanceTemplate(webserver.id()) .name("primary") .build()) .baseInstanceName("webserver") .zone("us-central1-f") .targetSize(1) .build()); var default_ = new HttpHealthCheck("default", HttpHealthCheckArgs.builder() .requestPath("/") .checkIntervalSec(1) .timeoutSec(1) .build()); var exampleBackend = new BackendService("exampleBackend", BackendServiceArgs.builder() .description("Our company website") .portName("http") .protocol("HTTP") .timeoutSec(10) .enableCdn(true) .backends(BackendServiceBackendArgs.builder() .group(webservers.instanceGroup()) .build()) .healthChecks(default_.id()) .build()); var backendKey = new BackendServiceSignedUrlKey("backendKey", BackendServiceSignedUrlKeyArgs.builder() .keyValue(urlSignature.b64Url()) .backendService(exampleBackend.name()) .build()); } } ``` ## Import This resource does not support import.
    • 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> backendService()  
      static BackendServiceSignedUrlKey get​(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, BackendServiceSignedUrlKeyState 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> keyValue()  
      com.pulumi.core.Output<java.lang.String> name()  
      com.pulumi.core.Output<java.lang.String> project()  
      • 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

      • BackendServiceSignedUrlKey

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

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

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

      • backendService

        public com.pulumi.core.Output<java.lang.String> backendService()
        Returns:
        The backend service this signed URL key belongs. ***
      • keyValue

        public com.pulumi.core.Output<java.lang.String> keyValue()
        Returns:
        128-bit key value used for signing the URL. The key value must be a valid RFC 4648 Section 5 base64url encoded string. **Note**: This property is sensitive and will not be displayed in the plan.
      • name

        public com.pulumi.core.Output<java.lang.String> name()
        Returns:
        Name of the signed URL key.
      • project

        public com.pulumi.core.Output<java.lang.String> project()
        Returns:
        The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
      • get

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