Create ClusterProxyConfigV2 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ClusterProxyConfigV2(name: string, args: ClusterProxyConfigV2Args, opts?: CustomResourceOptions);@overload
def ClusterProxyConfigV2(resource_name: str,
args: ClusterProxyConfigV2Args,
opts: Optional[ResourceOptions] = None)
@overload
def ClusterProxyConfigV2(resource_name: str,
opts: Optional[ResourceOptions] = None,
cluster_id: Optional[str] = None,
enabled: Optional[bool] = None,
annotations: Optional[Mapping[str, str]] = None,
labels: Optional[Mapping[str, str]] = None)func NewClusterProxyConfigV2(ctx *Context, name string, args ClusterProxyConfigV2Args, opts ...ResourceOption) (*ClusterProxyConfigV2, error)public ClusterProxyConfigV2(string name, ClusterProxyConfigV2Args args, CustomResourceOptions? opts = null)
public ClusterProxyConfigV2(String name, ClusterProxyConfigV2Args args)
public ClusterProxyConfigV2(String name, ClusterProxyConfigV2Args args, CustomResourceOptions options)
type: rancher2:ClusterProxyConfigV2
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 ClusterProxyConfigV2Args
- 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 ClusterProxyConfigV2Args
- 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 ClusterProxyConfigV2Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ClusterProxyConfigV2Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ClusterProxyConfigV2Args
- 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 clusterProxyConfigV2Resource = new Rancher2.ClusterProxyConfigV2("clusterProxyConfigV2Resource", new()
{
ClusterId = "string",
Enabled = false,
Annotations =
{
{ "string", "string" },
},
Labels =
{
{ "string", "string" },
},
});
example, err := rancher2.NewClusterProxyConfigV2(ctx, "clusterProxyConfigV2Resource", &rancher2.ClusterProxyConfigV2Args{
ClusterId: pulumi.String("string"),
Enabled: pulumi.Bool(false),
Annotations: pulumi.StringMap{
"string": pulumi.String("string"),
},
Labels: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var clusterProxyConfigV2Resource = new ClusterProxyConfigV2("clusterProxyConfigV2Resource", ClusterProxyConfigV2Args.builder()
.clusterId("string")
.enabled(false)
.annotations(Map.of("string", "string"))
.labels(Map.of("string", "string"))
.build());
cluster_proxy_config_v2_resource = rancher2.ClusterProxyConfigV2("clusterProxyConfigV2Resource",
cluster_id="string",
enabled=False,
annotations={
"string": "string",
},
labels={
"string": "string",
})
const clusterProxyConfigV2Resource = new rancher2.ClusterProxyConfigV2("clusterProxyConfigV2Resource", {
clusterId: "string",
enabled: false,
annotations: {
string: "string",
},
labels: {
string: "string",
},
});
type: rancher2:ClusterProxyConfigV2
properties:
annotations:
string: string
clusterId: string
enabled: false
labels:
string: string
ClusterProxyConfigV2 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 ClusterProxyConfigV2 resource accepts the following input properties:
- Cluster
Id string - Cluster ID where the ClusterProxyConfig should be created
- Enabled bool
- Indicates whether downstream proxy requests for service account tokens is enabled
- Annotations Dictionary<string, string>
- Annotations of the resource
- Labels Dictionary<string, string>
- Labels of the resource
- Cluster
Id string - Cluster ID where the ClusterProxyConfig should be created
- Enabled bool
- Indicates whether downstream proxy requests for service account tokens is enabled
- Annotations map[string]string
- Annotations of the resource
- Labels map[string]string
- Labels of the resource
- cluster
Id String - Cluster ID where the ClusterProxyConfig should be created
- enabled Boolean
- Indicates whether downstream proxy requests for service account tokens is enabled
- annotations Map<String,String>
- Annotations of the resource
- labels Map<String,String>
- Labels of the resource
- cluster
Id string - Cluster ID where the ClusterProxyConfig should be created
- enabled boolean
- Indicates whether downstream proxy requests for service account tokens is enabled
- annotations {[key: string]: string}
- Annotations of the resource
- labels {[key: string]: string}
- Labels of the resource
- cluster_
id str - Cluster ID where the ClusterProxyConfig should be created
- enabled bool
- Indicates whether downstream proxy requests for service account tokens is enabled
- annotations Mapping[str, str]
- Annotations of the resource
- labels Mapping[str, str]
- Labels of the resource
- cluster
Id String - Cluster ID where the ClusterProxyConfig should be created
- enabled Boolean
- Indicates whether downstream proxy requests for service account tokens is enabled
- annotations Map<String>
- Annotations of the resource
- labels Map<String>
- Labels of the resource
Outputs
All input properties are implicitly available as output properties. Additionally, the ClusterProxyConfigV2 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.
Look up Existing ClusterProxyConfigV2 Resource
Get an existing ClusterProxyConfigV2 resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ClusterProxyConfigV2State, opts?: CustomResourceOptions): ClusterProxyConfigV2@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
annotations: Optional[Mapping[str, str]] = None,
cluster_id: Optional[str] = None,
enabled: Optional[bool] = None,
labels: Optional[Mapping[str, str]] = None) -> ClusterProxyConfigV2func GetClusterProxyConfigV2(ctx *Context, name string, id IDInput, state *ClusterProxyConfigV2State, opts ...ResourceOption) (*ClusterProxyConfigV2, error)public static ClusterProxyConfigV2 Get(string name, Input<string> id, ClusterProxyConfigV2State? state, CustomResourceOptions? opts = null)public static ClusterProxyConfigV2 get(String name, Output<String> id, ClusterProxyConfigV2State state, CustomResourceOptions options)resources: _: type: rancher2:ClusterProxyConfigV2 get: id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Annotations Dictionary<string, string>
- Annotations of the resource
- Cluster
Id string - Cluster ID where the ClusterProxyConfig should be created
- Enabled bool
- Indicates whether downstream proxy requests for service account tokens is enabled
- Labels Dictionary<string, string>
- Labels of the resource
- Annotations map[string]string
- Annotations of the resource
- Cluster
Id string - Cluster ID where the ClusterProxyConfig should be created
- Enabled bool
- Indicates whether downstream proxy requests for service account tokens is enabled
- Labels map[string]string
- Labels of the resource
- annotations Map<String,String>
- Annotations of the resource
- cluster
Id String - Cluster ID where the ClusterProxyConfig should be created
- enabled Boolean
- Indicates whether downstream proxy requests for service account tokens is enabled
- labels Map<String,String>
- Labels of the resource
- annotations {[key: string]: string}
- Annotations of the resource
- cluster
Id string - Cluster ID where the ClusterProxyConfig should be created
- enabled boolean
- Indicates whether downstream proxy requests for service account tokens is enabled
- labels {[key: string]: string}
- Labels of the resource
- annotations Mapping[str, str]
- Annotations of the resource
- cluster_
id str - Cluster ID where the ClusterProxyConfig should be created
- enabled bool
- Indicates whether downstream proxy requests for service account tokens is enabled
- labels Mapping[str, str]
- Labels of the resource
- annotations Map<String>
- Annotations of the resource
- cluster
Id String - Cluster ID where the ClusterProxyConfig should be created
- enabled Boolean
- Indicates whether downstream proxy requests for service account tokens is enabled
- labels Map<String>
- Labels of the resource
Package Details
- Repository
- Rancher2 pulumi/pulumi-rancher2
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
rancher2Terraform Provider.
