1. Packages
  2. Google Cloud Native
  3. API Docs
  4. dns
  5. dns/v1beta2
  6. ResponsePolicy

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi

google-native.dns/v1beta2.ResponsePolicy

Explore with Pulumi AI

google-native logo

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi

    Creates a new Response Policy Auto-naming is currently not supported for this resource.

    Create ResponsePolicy Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new ResponsePolicy(name: string, args?: ResponsePolicyArgs, opts?: CustomResourceOptions);
    @overload
    def ResponsePolicy(resource_name: str,
                       args: Optional[ResponsePolicyArgs] = None,
                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def ResponsePolicy(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       client_operation_id: Optional[str] = None,
                       description: Optional[str] = None,
                       gke_clusters: Optional[Sequence[ResponsePolicyGKEClusterArgs]] = None,
                       kind: Optional[str] = None,
                       labels: Optional[Mapping[str, str]] = None,
                       networks: Optional[Sequence[ResponsePolicyNetworkArgs]] = None,
                       project: Optional[str] = None,
                       response_policy_name: Optional[str] = None)
    func NewResponsePolicy(ctx *Context, name string, args *ResponsePolicyArgs, opts ...ResourceOption) (*ResponsePolicy, error)
    public ResponsePolicy(string name, ResponsePolicyArgs? args = null, CustomResourceOptions? opts = null)
    public ResponsePolicy(String name, ResponsePolicyArgs args)
    public ResponsePolicy(String name, ResponsePolicyArgs args, CustomResourceOptions options)
    
    type: google-native:dns/v1beta2:ResponsePolicy
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args ResponsePolicyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args ResponsePolicyArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args ResponsePolicyArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ResponsePolicyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ResponsePolicyArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var responsePolicyResource = new GoogleNative.DNS.V1Beta2.ResponsePolicy("responsePolicyResource", new()
    {
        ClientOperationId = "string",
        Description = "string",
        GkeClusters = new[]
        {
            new GoogleNative.DNS.V1Beta2.Inputs.ResponsePolicyGKEClusterArgs
            {
                GkeClusterName = "string",
                Kind = "string",
            },
        },
        Kind = "string",
        Labels = 
        {
            { "string", "string" },
        },
        Networks = new[]
        {
            new GoogleNative.DNS.V1Beta2.Inputs.ResponsePolicyNetworkArgs
            {
                Kind = "string",
                NetworkUrl = "string",
            },
        },
        Project = "string",
        ResponsePolicyName = "string",
    });
    
    example, err := dnsv1beta2.NewResponsePolicy(ctx, "responsePolicyResource", &dnsv1beta2.ResponsePolicyArgs{
    ClientOperationId: pulumi.String("string"),
    Description: pulumi.String("string"),
    GkeClusters: dns.ResponsePolicyGKEClusterArray{
    &dns.ResponsePolicyGKEClusterArgs{
    GkeClusterName: pulumi.String("string"),
    Kind: pulumi.String("string"),
    },
    },
    Kind: pulumi.String("string"),
    Labels: pulumi.StringMap{
    "string": pulumi.String("string"),
    },
    Networks: dns.ResponsePolicyNetworkArray{
    &dns.ResponsePolicyNetworkArgs{
    Kind: pulumi.String("string"),
    NetworkUrl: pulumi.String("string"),
    },
    },
    Project: pulumi.String("string"),
    ResponsePolicyName: pulumi.String("string"),
    })
    
    var responsePolicyResource = new ResponsePolicy("responsePolicyResource", ResponsePolicyArgs.builder()        
        .clientOperationId("string")
        .description("string")
        .gkeClusters(ResponsePolicyGKEClusterArgs.builder()
            .gkeClusterName("string")
            .kind("string")
            .build())
        .kind("string")
        .labels(Map.of("string", "string"))
        .networks(ResponsePolicyNetworkArgs.builder()
            .kind("string")
            .networkUrl("string")
            .build())
        .project("string")
        .responsePolicyName("string")
        .build());
    
    response_policy_resource = google_native.dns.v1beta2.ResponsePolicy("responsePolicyResource",
        client_operation_id="string",
        description="string",
        gke_clusters=[google_native.dns.v1beta2.ResponsePolicyGKEClusterArgs(
            gke_cluster_name="string",
            kind="string",
        )],
        kind="string",
        labels={
            "string": "string",
        },
        networks=[google_native.dns.v1beta2.ResponsePolicyNetworkArgs(
            kind="string",
            network_url="string",
        )],
        project="string",
        response_policy_name="string")
    
    const responsePolicyResource = new google_native.dns.v1beta2.ResponsePolicy("responsePolicyResource", {
        clientOperationId: "string",
        description: "string",
        gkeClusters: [{
            gkeClusterName: "string",
            kind: "string",
        }],
        kind: "string",
        labels: {
            string: "string",
        },
        networks: [{
            kind: "string",
            networkUrl: "string",
        }],
        project: "string",
        responsePolicyName: "string",
    });
    
    type: google-native:dns/v1beta2:ResponsePolicy
    properties:
        clientOperationId: string
        description: string
        gkeClusters:
            - gkeClusterName: string
              kind: string
        kind: string
        labels:
            string: string
        networks:
            - kind: string
              networkUrl: string
        project: string
        responsePolicyName: string
    

    ResponsePolicy Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The ResponsePolicy resource accepts the following input properties:

    ClientOperationId string
    For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
    Description string
    User-provided description for this Response Policy.
    GkeClusters List<Pulumi.GoogleNative.DNS.V1Beta2.Inputs.ResponsePolicyGKECluster>
    The list of Google Kubernetes Engine clusters to which this response policy is applied.
    Kind string
    Labels Dictionary<string, string>
    User labels.
    Networks List<Pulumi.GoogleNative.DNS.V1Beta2.Inputs.ResponsePolicyNetwork>
    List of network names specifying networks to which this policy is applied.
    Project string
    ResponsePolicyName string
    User assigned name for this Response Policy.
    ClientOperationId string
    For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
    Description string
    User-provided description for this Response Policy.
    GkeClusters []ResponsePolicyGKEClusterArgs
    The list of Google Kubernetes Engine clusters to which this response policy is applied.
    Kind string
    Labels map[string]string
    User labels.
    Networks []ResponsePolicyNetworkArgs
    List of network names specifying networks to which this policy is applied.
    Project string
    ResponsePolicyName string
    User assigned name for this Response Policy.
    clientOperationId String
    For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
    description String
    User-provided description for this Response Policy.
    gkeClusters List<ResponsePolicyGKECluster>
    The list of Google Kubernetes Engine clusters to which this response policy is applied.
    kind String
    labels Map<String,String>
    User labels.
    networks List<ResponsePolicyNetwork>
    List of network names specifying networks to which this policy is applied.
    project String
    responsePolicyName String
    User assigned name for this Response Policy.
    clientOperationId string
    For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
    description string
    User-provided description for this Response Policy.
    gkeClusters ResponsePolicyGKECluster[]
    The list of Google Kubernetes Engine clusters to which this response policy is applied.
    kind string
    labels {[key: string]: string}
    User labels.
    networks ResponsePolicyNetwork[]
    List of network names specifying networks to which this policy is applied.
    project string
    responsePolicyName string
    User assigned name for this Response Policy.
    client_operation_id str
    For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
    description str
    User-provided description for this Response Policy.
    gke_clusters Sequence[ResponsePolicyGKEClusterArgs]
    The list of Google Kubernetes Engine clusters to which this response policy is applied.
    kind str
    labels Mapping[str, str]
    User labels.
    networks Sequence[ResponsePolicyNetworkArgs]
    List of network names specifying networks to which this policy is applied.
    project str
    response_policy_name str
    User assigned name for this Response Policy.
    clientOperationId String
    For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
    description String
    User-provided description for this Response Policy.
    gkeClusters List<Property Map>
    The list of Google Kubernetes Engine clusters to which this response policy is applied.
    kind String
    labels Map<String>
    User labels.
    networks List<Property Map>
    List of network names specifying networks to which this policy is applied.
    project String
    responsePolicyName String
    User assigned name for this Response Policy.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ResponsePolicy resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Supporting Types

    ResponsePolicyGKECluster, ResponsePolicyGKEClusterArgs

    GkeClusterName string
    The resource name of the cluster to bind this response policy to. This should be specified in the format like: projects//locations//clusters/*. This is referenced from GKE projects.locations.clusters.get API: https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters/get
    Kind string
    GkeClusterName string
    The resource name of the cluster to bind this response policy to. This should be specified in the format like: projects//locations//clusters/*. This is referenced from GKE projects.locations.clusters.get API: https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters/get
    Kind string
    gkeClusterName String
    The resource name of the cluster to bind this response policy to. This should be specified in the format like: projects//locations//clusters/*. This is referenced from GKE projects.locations.clusters.get API: https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters/get
    kind String
    gkeClusterName string
    The resource name of the cluster to bind this response policy to. This should be specified in the format like: projects//locations//clusters/*. This is referenced from GKE projects.locations.clusters.get API: https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters/get
    kind string
    gke_cluster_name str
    The resource name of the cluster to bind this response policy to. This should be specified in the format like: projects//locations//clusters/*. This is referenced from GKE projects.locations.clusters.get API: https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters/get
    kind str
    gkeClusterName String
    The resource name of the cluster to bind this response policy to. This should be specified in the format like: projects//locations//clusters/*. This is referenced from GKE projects.locations.clusters.get API: https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters/get
    kind String

    ResponsePolicyGKEClusterResponse, ResponsePolicyGKEClusterResponseArgs

    GkeClusterName string
    The resource name of the cluster to bind this response policy to. This should be specified in the format like: projects//locations//clusters/*. This is referenced from GKE projects.locations.clusters.get API: https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters/get
    Kind string
    GkeClusterName string
    The resource name of the cluster to bind this response policy to. This should be specified in the format like: projects//locations//clusters/*. This is referenced from GKE projects.locations.clusters.get API: https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters/get
    Kind string
    gkeClusterName String
    The resource name of the cluster to bind this response policy to. This should be specified in the format like: projects//locations//clusters/*. This is referenced from GKE projects.locations.clusters.get API: https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters/get
    kind String
    gkeClusterName string
    The resource name of the cluster to bind this response policy to. This should be specified in the format like: projects//locations//clusters/*. This is referenced from GKE projects.locations.clusters.get API: https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters/get
    kind string
    gke_cluster_name str
    The resource name of the cluster to bind this response policy to. This should be specified in the format like: projects//locations//clusters/*. This is referenced from GKE projects.locations.clusters.get API: https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters/get
    kind str
    gkeClusterName String
    The resource name of the cluster to bind this response policy to. This should be specified in the format like: projects//locations//clusters/*. This is referenced from GKE projects.locations.clusters.get API: https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters/get
    kind String

    ResponsePolicyNetwork, ResponsePolicyNetworkArgs

    Kind string
    NetworkUrl string
    The fully qualified URL of the VPC network to bind to. This should be formatted like https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}
    Kind string
    NetworkUrl string
    The fully qualified URL of the VPC network to bind to. This should be formatted like https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}
    kind String
    networkUrl String
    The fully qualified URL of the VPC network to bind to. This should be formatted like https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}
    kind string
    networkUrl string
    The fully qualified URL of the VPC network to bind to. This should be formatted like https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}
    kind str
    network_url str
    The fully qualified URL of the VPC network to bind to. This should be formatted like https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}
    kind String
    networkUrl String
    The fully qualified URL of the VPC network to bind to. This should be formatted like https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}

    ResponsePolicyNetworkResponse, ResponsePolicyNetworkResponseArgs

    Kind string
    NetworkUrl string
    The fully qualified URL of the VPC network to bind to. This should be formatted like https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}
    Kind string
    NetworkUrl string
    The fully qualified URL of the VPC network to bind to. This should be formatted like https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}
    kind String
    networkUrl String
    The fully qualified URL of the VPC network to bind to. This should be formatted like https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}
    kind string
    networkUrl string
    The fully qualified URL of the VPC network to bind to. This should be formatted like https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}
    kind str
    network_url str
    The fully qualified URL of the VPC network to bind to. This should be formatted like https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}
    kind String
    networkUrl String
    The fully qualified URL of the VPC network to bind to. This should be formatted like https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}

    Package Details

    Repository
    Google Cloud Native pulumi/pulumi-google-native
    License
    Apache-2.0
    google-native logo

    Google Cloud Native is in preview. Google Cloud Classic is fully supported.

    Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi