dynatrace.PolicyBindings
Explore with Pulumi AI
Create PolicyBindings Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PolicyBindings(name: string, args: PolicyBindingsArgs, opts?: CustomResourceOptions);
@overload
def PolicyBindings(resource_name: str,
args: PolicyBindingsArgs,
opts: Optional[ResourceOptions] = None)
@overload
def PolicyBindings(resource_name: str,
opts: Optional[ResourceOptions] = None,
group: Optional[str] = None,
policies: Optional[Sequence[str]] = None,
cluster: Optional[str] = None,
environment: Optional[str] = None)
func NewPolicyBindings(ctx *Context, name string, args PolicyBindingsArgs, opts ...ResourceOption) (*PolicyBindings, error)
public PolicyBindings(string name, PolicyBindingsArgs args, CustomResourceOptions? opts = null)
public PolicyBindings(String name, PolicyBindingsArgs args)
public PolicyBindings(String name, PolicyBindingsArgs args, CustomResourceOptions options)
type: dynatrace:PolicyBindings
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name
This property is required. string - The unique name of the resource.
- args
This property is required. PolicyBindingsArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name
This property is required. str - The unique name of the resource.
- args
This property is required. PolicyBindingsArgs - The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. PolicyBindingsArgs - The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. PolicyBindingsArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name
This property is required. String - The unique name of the resource.
- args
This property is required. PolicyBindingsArgs - 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 policyBindingsResource = new Dynatrace.PolicyBindings("policyBindingsResource", new()
{
Group = "string",
Policies = new[]
{
"string",
},
Cluster = "string",
Environment = "string",
});
example, err := dynatrace.NewPolicyBindings(ctx, "policyBindingsResource", &dynatrace.PolicyBindingsArgs{
Group: pulumi.String("string"),
Policies: pulumi.StringArray{
pulumi.String("string"),
},
Cluster: pulumi.String("string"),
Environment: pulumi.String("string"),
})
var policyBindingsResource = new PolicyBindings("policyBindingsResource", PolicyBindingsArgs.builder()
.group("string")
.policies("string")
.cluster("string")
.environment("string")
.build());
policy_bindings_resource = dynatrace.PolicyBindings("policyBindingsResource",
group="string",
policies=["string"],
cluster="string",
environment="string")
const policyBindingsResource = new dynatrace.PolicyBindings("policyBindingsResource", {
group: "string",
policies: ["string"],
cluster: "string",
environment: "string",
});
type: dynatrace:PolicyBindings
properties:
cluster: string
environment: string
group: string
policies:
- string
PolicyBindings 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 PolicyBindings resource accepts the following input properties:
- Group
This property is required. Changes to this property will trigger replacement.
- The name of the policy
- Policies
This property is required. List<string> - A list of IDs referring to policies bound to that group. It's not possible to mix policies here that are defined for
different scopes (different clusters or environments) than specified via attributes
cluster
orenvironment
. - Cluster
Changes to this property will trigger replacement.
- The UUID of the cluster. The attribute
policies
must contain ONLY policies defined for that cluster. - Environment
Changes to this property will trigger replacement.
- The ID of the environment (https://.live.dynatrace.com). The attribute
policies
must contain ONLY policies defined for that environment.
- Group
This property is required. Changes to this property will trigger replacement.
- The name of the policy
- Policies
This property is required. []string - A list of IDs referring to policies bound to that group. It's not possible to mix policies here that are defined for
different scopes (different clusters or environments) than specified via attributes
cluster
orenvironment
. - Cluster
Changes to this property will trigger replacement.
- The UUID of the cluster. The attribute
policies
must contain ONLY policies defined for that cluster. - Environment
Changes to this property will trigger replacement.
- The ID of the environment (https://.live.dynatrace.com). The attribute
policies
must contain ONLY policies defined for that environment.
- group
This property is required. Changes to this property will trigger replacement.
- The name of the policy
- policies
This property is required. List<String> - A list of IDs referring to policies bound to that group. It's not possible to mix policies here that are defined for
different scopes (different clusters or environments) than specified via attributes
cluster
orenvironment
. - cluster
Changes to this property will trigger replacement.
- The UUID of the cluster. The attribute
policies
must contain ONLY policies defined for that cluster. - environment
Changes to this property will trigger replacement.
- The ID of the environment (https://.live.dynatrace.com). The attribute
policies
must contain ONLY policies defined for that environment.
- group
This property is required. Changes to this property will trigger replacement.
- The name of the policy
- policies
This property is required. string[] - A list of IDs referring to policies bound to that group. It's not possible to mix policies here that are defined for
different scopes (different clusters or environments) than specified via attributes
cluster
orenvironment
. - cluster
Changes to this property will trigger replacement.
- The UUID of the cluster. The attribute
policies
must contain ONLY policies defined for that cluster. - environment
Changes to this property will trigger replacement.
- The ID of the environment (https://.live.dynatrace.com). The attribute
policies
must contain ONLY policies defined for that environment.
- group
This property is required. Changes to this property will trigger replacement.
- The name of the policy
- policies
This property is required. Sequence[str] - A list of IDs referring to policies bound to that group. It's not possible to mix policies here that are defined for
different scopes (different clusters or environments) than specified via attributes
cluster
orenvironment
. - cluster
Changes to this property will trigger replacement.
- The UUID of the cluster. The attribute
policies
must contain ONLY policies defined for that cluster. - environment
Changes to this property will trigger replacement.
- The ID of the environment (https://.live.dynatrace.com). The attribute
policies
must contain ONLY policies defined for that environment.
- group
This property is required. Changes to this property will trigger replacement.
- The name of the policy
- policies
This property is required. List<String> - A list of IDs referring to policies bound to that group. It's not possible to mix policies here that are defined for
different scopes (different clusters or environments) than specified via attributes
cluster
orenvironment
. - cluster
Changes to this property will trigger replacement.
- The UUID of the cluster. The attribute
policies
must contain ONLY policies defined for that cluster. - environment
Changes to this property will trigger replacement.
- The ID of the environment (https://.live.dynatrace.com). The attribute
policies
must contain ONLY policies defined for that environment.
Outputs
All input properties are implicitly available as output properties. Additionally, the PolicyBindings 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 PolicyBindings Resource
Get an existing PolicyBindings 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?: PolicyBindingsState, opts?: CustomResourceOptions): PolicyBindings
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cluster: Optional[str] = None,
environment: Optional[str] = None,
group: Optional[str] = None,
policies: Optional[Sequence[str]] = None) -> PolicyBindings
func GetPolicyBindings(ctx *Context, name string, id IDInput, state *PolicyBindingsState, opts ...ResourceOption) (*PolicyBindings, error)
public static PolicyBindings Get(string name, Input<string> id, PolicyBindingsState? state, CustomResourceOptions? opts = null)
public static PolicyBindings get(String name, Output<String> id, PolicyBindingsState state, CustomResourceOptions options)
resources: _: type: dynatrace:PolicyBindings get: id: ${id}
- name
This property is required. - The unique name of the resulting resource.
- id
This property is required. - 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
This property is required. - The unique name of the resulting resource.
- id
This property is required. - The unique provider ID of the resource to lookup.
- name
This property is required. - The unique name of the resulting resource.
- id
This property is required. - 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
This property is required. - The unique name of the resulting resource.
- id
This property is required. - 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
This property is required. - The unique name of the resulting resource.
- id
This property is required. - 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.
- Cluster
Changes to this property will trigger replacement.
- The UUID of the cluster. The attribute
policies
must contain ONLY policies defined for that cluster. - Environment
Changes to this property will trigger replacement.
- The ID of the environment (https://.live.dynatrace.com). The attribute
policies
must contain ONLY policies defined for that environment. - Group
Changes to this property will trigger replacement.
- The name of the policy
- Policies List<string>
- A list of IDs referring to policies bound to that group. It's not possible to mix policies here that are defined for
different scopes (different clusters or environments) than specified via attributes
cluster
orenvironment
.
- Cluster
Changes to this property will trigger replacement.
- The UUID of the cluster. The attribute
policies
must contain ONLY policies defined for that cluster. - Environment
Changes to this property will trigger replacement.
- The ID of the environment (https://.live.dynatrace.com). The attribute
policies
must contain ONLY policies defined for that environment. - Group
Changes to this property will trigger replacement.
- The name of the policy
- Policies []string
- A list of IDs referring to policies bound to that group. It's not possible to mix policies here that are defined for
different scopes (different clusters or environments) than specified via attributes
cluster
orenvironment
.
- cluster
Changes to this property will trigger replacement.
- The UUID of the cluster. The attribute
policies
must contain ONLY policies defined for that cluster. - environment
Changes to this property will trigger replacement.
- The ID of the environment (https://.live.dynatrace.com). The attribute
policies
must contain ONLY policies defined for that environment. - group
Changes to this property will trigger replacement.
- The name of the policy
- policies List<String>
- A list of IDs referring to policies bound to that group. It's not possible to mix policies here that are defined for
different scopes (different clusters or environments) than specified via attributes
cluster
orenvironment
.
- cluster
Changes to this property will trigger replacement.
- The UUID of the cluster. The attribute
policies
must contain ONLY policies defined for that cluster. - environment
Changes to this property will trigger replacement.
- The ID of the environment (https://.live.dynatrace.com). The attribute
policies
must contain ONLY policies defined for that environment. - group
Changes to this property will trigger replacement.
- The name of the policy
- policies string[]
- A list of IDs referring to policies bound to that group. It's not possible to mix policies here that are defined for
different scopes (different clusters or environments) than specified via attributes
cluster
orenvironment
.
- cluster
Changes to this property will trigger replacement.
- The UUID of the cluster. The attribute
policies
must contain ONLY policies defined for that cluster. - environment
Changes to this property will trigger replacement.
- The ID of the environment (https://.live.dynatrace.com). The attribute
policies
must contain ONLY policies defined for that environment. - group
Changes to this property will trigger replacement.
- The name of the policy
- policies Sequence[str]
- A list of IDs referring to policies bound to that group. It's not possible to mix policies here that are defined for
different scopes (different clusters or environments) than specified via attributes
cluster
orenvironment
.
- cluster
Changes to this property will trigger replacement.
- The UUID of the cluster. The attribute
policies
must contain ONLY policies defined for that cluster. - environment
Changes to this property will trigger replacement.
- The ID of the environment (https://.live.dynatrace.com). The attribute
policies
must contain ONLY policies defined for that environment. - group
Changes to this property will trigger replacement.
- The name of the policy
- policies List<String>
- A list of IDs referring to policies bound to that group. It's not possible to mix policies here that are defined for
different scopes (different clusters or environments) than specified via attributes
cluster
orenvironment
.
Package Details
- Repository
- dynatrace pulumiverse/pulumi-dynatrace
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
dynatrace
Terraform Provider.