Google Cloud Native is in preview. Google Cloud Classic is fully supported.
google-native.dns/v1beta2.ResponsePolicy
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
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.
Constructor 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=[{
"gke_cluster_name": "string",
"kind": "string",
}],
kind="string",
labels={
"string": "string",
},
networks=[{
"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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The ResponsePolicy resource accepts the following input properties:
- Client
Operation stringId - 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.
- Gke
Clusters List<Pulumi.Google Native. DNS. V1Beta2. Inputs. Response Policy GKECluster> - 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.
Google Native. DNS. V1Beta2. Inputs. Response Policy Network> - List of network names specifying networks to which this policy is applied.
- Project string
- Response
Policy stringName - User assigned name for this Response Policy.
- Client
Operation stringId - 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.
- Gke
Clusters []ResponsePolicy GKECluster Args - The list of Google Kubernetes Engine clusters to which this response policy is applied.
- Kind string
- Labels map[string]string
- User labels.
- Networks
[]Response
Policy Network Args - List of network names specifying networks to which this policy is applied.
- Project string
- Response
Policy stringName - User assigned name for this Response Policy.
- client
Operation StringId - 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.
- gke
Clusters List<ResponsePolicy GKECluster> - The list of Google Kubernetes Engine clusters to which this response policy is applied.
- kind String
- labels Map<String,String>
- User labels.
- networks
List<Response
Policy Network> - List of network names specifying networks to which this policy is applied.
- project String
- response
Policy StringName - User assigned name for this Response Policy.
- client
Operation stringId - 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.
- gke
Clusters ResponsePolicy GKECluster[] - The list of Google Kubernetes Engine clusters to which this response policy is applied.
- kind string
- labels {[key: string]: string}
- User labels.
- networks
Response
Policy Network[] - List of network names specifying networks to which this policy is applied.
- project string
- response
Policy stringName - User assigned name for this Response Policy.
- client_
operation_ strid - 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[ResponsePolicy GKECluster Args] - The list of Google Kubernetes Engine clusters to which this response policy is applied.
- kind str
- labels Mapping[str, str]
- User labels.
- networks
Sequence[Response
Policy Network Args] - List of network names specifying networks to which this policy is applied.
- project str
- response_
policy_ strname - User assigned name for this Response Policy.
- client
Operation StringId - 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.
- gke
Clusters 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
- response
Policy StringName - 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
- Gke
Cluster stringName - 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 stringName - 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 StringName - 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 stringName - 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_ strname - 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
- gke
Cluster StringName - 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
- Gke
Cluster stringName - 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 stringName - 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 StringName - 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 stringName - 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_ strname - 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
- gke
Cluster StringName - 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
- Network
Url 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
- Network
Url 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
- network
Url 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
- network
Url 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
- network
Url 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
- Network
Url 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
- Network
Url 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
- network
Url 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
- network
Url 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
- network
Url 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 Cloud Native is in preview. Google Cloud Classic is fully supported.