Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
oci.Waa.getAppAccelerationPolicy
Explore with Pulumi AI
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
This data source provides details about a specific Web App Acceleration Policy resource in Oracle Cloud Infrastructure Waa service.
Gets a WebAppAccelerationPolicy with the given OCID.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testWebAppAccelerationPolicy = oci.Waa.getAppAccelerationPolicy({
    webAppAccelerationPolicyId: testWebAppAccelerationPolicyOciWaaWebAppAccelerationPolicy.id,
});
import pulumi
import pulumi_oci as oci
test_web_app_acceleration_policy = oci.Waa.get_app_acceleration_policy(web_app_acceleration_policy_id=test_web_app_acceleration_policy_oci_waa_web_app_acceleration_policy["id"])
package main
import (
	"github.com/pulumi/pulumi-oci/sdk/go/oci/Waa"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Waa.GetAppAccelerationPolicy(ctx, &waa.GetAppAccelerationPolicyArgs{
			WebAppAccelerationPolicyId: testWebAppAccelerationPolicyOciWaaWebAppAccelerationPolicy.Id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() => 
{
    var testWebAppAccelerationPolicy = Oci.Waa.GetAppAccelerationPolicy.Invoke(new()
    {
        WebAppAccelerationPolicyId = testWebAppAccelerationPolicyOciWaaWebAppAccelerationPolicy.Id,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Waa.WaaFunctions;
import com.pulumi.oci.Waa.inputs.GetAppAccelerationPolicyArgs;
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) {
        final var testWebAppAccelerationPolicy = WaaFunctions.getAppAccelerationPolicy(GetAppAccelerationPolicyArgs.builder()
            .webAppAccelerationPolicyId(testWebAppAccelerationPolicyOciWaaWebAppAccelerationPolicy.id())
            .build());
    }
}
variables:
  testWebAppAccelerationPolicy:
    fn::invoke:
      Function: oci:Waa:getAppAccelerationPolicy
      Arguments:
        webAppAccelerationPolicyId: ${testWebAppAccelerationPolicyOciWaaWebAppAccelerationPolicy.id}
Using getAppAccelerationPolicy
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getAppAccelerationPolicy(args: GetAppAccelerationPolicyArgs, opts?: InvokeOptions): Promise<GetAppAccelerationPolicyResult>
function getAppAccelerationPolicyOutput(args: GetAppAccelerationPolicyOutputArgs, opts?: InvokeOptions): Output<GetAppAccelerationPolicyResult>def get_app_acceleration_policy(web_app_acceleration_policy_id: Optional[str] = None,
                                opts: Optional[InvokeOptions] = None) -> GetAppAccelerationPolicyResult
def get_app_acceleration_policy_output(web_app_acceleration_policy_id: Optional[pulumi.Input[str]] = None,
                                opts: Optional[InvokeOptions] = None) -> Output[GetAppAccelerationPolicyResult]func GetAppAccelerationPolicy(ctx *Context, args *GetAppAccelerationPolicyArgs, opts ...InvokeOption) (*GetAppAccelerationPolicyResult, error)
func GetAppAccelerationPolicyOutput(ctx *Context, args *GetAppAccelerationPolicyOutputArgs, opts ...InvokeOption) GetAppAccelerationPolicyResultOutput> Note: This function is named GetAppAccelerationPolicy in the Go SDK.
public static class GetAppAccelerationPolicy 
{
    public static Task<GetAppAccelerationPolicyResult> InvokeAsync(GetAppAccelerationPolicyArgs args, InvokeOptions? opts = null)
    public static Output<GetAppAccelerationPolicyResult> Invoke(GetAppAccelerationPolicyInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetAppAccelerationPolicyResult> getAppAccelerationPolicy(GetAppAccelerationPolicyArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: oci:Waa/getAppAccelerationPolicy:getAppAccelerationPolicy
  arguments:
    # arguments dictionaryThe following arguments are supported:
- WebApp stringAcceleration Policy Id 
- The OCID of the WebAppAccelerationPolicy.
- WebApp stringAcceleration Policy Id 
- The OCID of the WebAppAccelerationPolicy.
- webApp StringAcceleration Policy Id 
- The OCID of the WebAppAccelerationPolicy.
- webApp stringAcceleration Policy Id 
- The OCID of the WebAppAccelerationPolicy.
- web_app_ stracceleration_ policy_ id 
- The OCID of the WebAppAccelerationPolicy.
- webApp StringAcceleration Policy Id 
- The OCID of the WebAppAccelerationPolicy.
getAppAccelerationPolicy Result
The following output properties are available:
- CompartmentId string
- The OCID of the compartment.
- Dictionary<string, object>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- DisplayName string
- WebAppAccelerationPolicy display name, can be renamed.
- Dictionary<string, object>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
- Id string
- The OCID of the WebAppAccelerationPolicy.
- LifecycleDetails string
- A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in FAILED state.
- ResponseCaching List<GetPolicies App Acceleration Policy Response Caching Policy> 
- An object that specifies an HTTP response caching policy.
- ResponseCompression List<GetPolicies App Acceleration Policy Response Compression Policy> 
- An object that specifies a compression policy for HTTP response from ENABLEMENT POINT to the client.
- State string
- The current state of the WebAppAccelerationPolicy.
- Dictionary<string, object>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
- TimeCreated string
- The time the WebAppAccelerationPolicy was created. An RFC3339 formatted datetime string.
- TimeUpdated string
- The time the WebAppAccelerationPolicy was updated. An RFC3339 formatted datetime string.
- WebApp stringAcceleration Policy Id 
- CompartmentId string
- The OCID of the compartment.
- map[string]interface{}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- DisplayName string
- WebAppAccelerationPolicy display name, can be renamed.
- map[string]interface{}
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
- Id string
- The OCID of the WebAppAccelerationPolicy.
- LifecycleDetails string
- A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in FAILED state.
- ResponseCaching []GetPolicies App Acceleration Policy Response Caching Policy 
- An object that specifies an HTTP response caching policy.
- ResponseCompression []GetPolicies App Acceleration Policy Response Compression Policy 
- An object that specifies a compression policy for HTTP response from ENABLEMENT POINT to the client.
- State string
- The current state of the WebAppAccelerationPolicy.
- map[string]interface{}
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
- TimeCreated string
- The time the WebAppAccelerationPolicy was created. An RFC3339 formatted datetime string.
- TimeUpdated string
- The time the WebAppAccelerationPolicy was updated. An RFC3339 formatted datetime string.
- WebApp stringAcceleration Policy Id 
- compartmentId String
- The OCID of the compartment.
- Map<String,Object>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- displayName String
- WebAppAccelerationPolicy display name, can be renamed.
- Map<String,Object>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
- id String
- The OCID of the WebAppAccelerationPolicy.
- lifecycleDetails String
- A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in FAILED state.
- responseCaching List<GetPolicies App Acceleration Policy Response Caching Policy> 
- An object that specifies an HTTP response caching policy.
- responseCompression List<GetPolicies App Acceleration Policy Response Compression Policy> 
- An object that specifies a compression policy for HTTP response from ENABLEMENT POINT to the client.
- state String
- The current state of the WebAppAccelerationPolicy.
- Map<String,Object>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
- timeCreated String
- The time the WebAppAccelerationPolicy was created. An RFC3339 formatted datetime string.
- timeUpdated String
- The time the WebAppAccelerationPolicy was updated. An RFC3339 formatted datetime string.
- webApp StringAcceleration Policy Id 
- compartmentId string
- The OCID of the compartment.
- {[key: string]: any}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- displayName string
- WebAppAccelerationPolicy display name, can be renamed.
- {[key: string]: any}
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
- id string
- The OCID of the WebAppAccelerationPolicy.
- lifecycleDetails string
- A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in FAILED state.
- responseCaching GetPolicies App Acceleration Policy Response Caching Policy[] 
- An object that specifies an HTTP response caching policy.
- responseCompression GetPolicies App Acceleration Policy Response Compression Policy[] 
- An object that specifies a compression policy for HTTP response from ENABLEMENT POINT to the client.
- state string
- The current state of the WebAppAccelerationPolicy.
- {[key: string]: any}
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
- timeCreated string
- The time the WebAppAccelerationPolicy was created. An RFC3339 formatted datetime string.
- timeUpdated string
- The time the WebAppAccelerationPolicy was updated. An RFC3339 formatted datetime string.
- webApp stringAcceleration Policy Id 
- compartment_id str
- The OCID of the compartment.
- Mapping[str, Any]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- display_name str
- WebAppAccelerationPolicy display name, can be renamed.
- Mapping[str, Any]
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
- id str
- The OCID of the WebAppAccelerationPolicy.
- lifecycle_details str
- A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in FAILED state.
- response_caching_ Sequence[waa.policies Get App Acceleration Policy Response Caching Policy] 
- An object that specifies an HTTP response caching policy.
- response_compression_ Sequence[waa.policies Get App Acceleration Policy Response Compression Policy] 
- An object that specifies a compression policy for HTTP response from ENABLEMENT POINT to the client.
- state str
- The current state of the WebAppAccelerationPolicy.
- Mapping[str, Any]
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
- time_created str
- The time the WebAppAccelerationPolicy was created. An RFC3339 formatted datetime string.
- time_updated str
- The time the WebAppAccelerationPolicy was updated. An RFC3339 formatted datetime string.
- web_app_ stracceleration_ policy_ id 
- compartmentId String
- The OCID of the compartment.
- Map<Any>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- displayName String
- WebAppAccelerationPolicy display name, can be renamed.
- Map<Any>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
- id String
- The OCID of the WebAppAccelerationPolicy.
- lifecycleDetails String
- A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in FAILED state.
- responseCaching List<Property Map>Policies 
- An object that specifies an HTTP response caching policy.
- responseCompression List<Property Map>Policies 
- An object that specifies a compression policy for HTTP response from ENABLEMENT POINT to the client.
- state String
- The current state of the WebAppAccelerationPolicy.
- Map<Any>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
- timeCreated String
- The time the WebAppAccelerationPolicy was created. An RFC3339 formatted datetime string.
- timeUpdated String
- The time the WebAppAccelerationPolicy was updated. An RFC3339 formatted datetime string.
- webApp StringAcceleration Policy Id 
Supporting Types
GetAppAccelerationPolicyResponseCachingPolicy      
- IsResponse boolHeader Based Caching Enabled 
- When false, responses will not be cached by the backend based on response headers.
- IsResponse boolHeader Based Caching Enabled 
- When false, responses will not be cached by the backend based on response headers.
- isResponse BooleanHeader Based Caching Enabled 
- When false, responses will not be cached by the backend based on response headers.
- isResponse booleanHeader Based Caching Enabled 
- When false, responses will not be cached by the backend based on response headers.
- is_response_ boolheader_ based_ caching_ enabled 
- When false, responses will not be cached by the backend based on response headers.
- isResponse BooleanHeader Based Caching Enabled 
- When false, responses will not be cached by the backend based on response headers.
GetAppAccelerationPolicyResponseCompressionPolicy      
- GzipCompressions List<GetApp Acceleration Policy Response Compression Policy Gzip Compression> 
- An object that specifies the gzip compression policy.
- GzipCompressions []GetApp Acceleration Policy Response Compression Policy Gzip Compression 
- An object that specifies the gzip compression policy.
- gzipCompressions List<GetApp Acceleration Policy Response Compression Policy Gzip Compression> 
- An object that specifies the gzip compression policy.
- gzipCompressions GetApp Acceleration Policy Response Compression Policy Gzip Compression[] 
- An object that specifies the gzip compression policy.
- gzip_compressions Sequence[waa.Get App Acceleration Policy Response Compression Policy Gzip Compression] 
- An object that specifies the gzip compression policy.
- gzipCompressions List<Property Map>
- An object that specifies the gzip compression policy.
GetAppAccelerationPolicyResponseCompressionPolicyGzipCompression        
- IsEnabled bool
- When true, support for gzip compression is enabled. HTTP responses will be compressed with gzip only if the client indicates support for gzip via the "Accept-Encoding: gzip" request header.
- IsEnabled bool
- When true, support for gzip compression is enabled. HTTP responses will be compressed with gzip only if the client indicates support for gzip via the "Accept-Encoding: gzip" request header.
- isEnabled Boolean
- When true, support for gzip compression is enabled. HTTP responses will be compressed with gzip only if the client indicates support for gzip via the "Accept-Encoding: gzip" request header.
- isEnabled boolean
- When true, support for gzip compression is enabled. HTTP responses will be compressed with gzip only if the client indicates support for gzip via the "Accept-Encoding: gzip" request header.
- is_enabled bool
- When true, support for gzip compression is enabled. HTTP responses will be compressed with gzip only if the client indicates support for gzip via the "Accept-Encoding: gzip" request header.
- isEnabled Boolean
- When true, support for gzip compression is enabled. HTTP responses will be compressed with gzip only if the client indicates support for gzip via the "Accept-Encoding: gzip" request header.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi