Google Cloud Native is in preview. Google Cloud Classic is fully supported.
google-native.beyondcorp/v1alpha.ApplicationIamBinding
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Sets the access control policy on the specified resource. Replaces any existing policy. Can return NOT_FOUND
, INVALID_ARGUMENT
, and PERMISSION_DENIED
errors.
Create ApplicationIamBinding Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ApplicationIamBinding(name: string, args: ApplicationIamBindingArgs, opts?: CustomResourceOptions);
@overload
def ApplicationIamBinding(resource_name: str,
args: ApplicationIamBindingArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ApplicationIamBinding(resource_name: str,
opts: Optional[ResourceOptions] = None,
members: Optional[Sequence[str]] = None,
name: Optional[str] = None,
role: Optional[str] = None,
condition: Optional[_iam.v1.ConditionArgs] = None)
func NewApplicationIamBinding(ctx *Context, name string, args ApplicationIamBindingArgs, opts ...ResourceOption) (*ApplicationIamBinding, error)
public ApplicationIamBinding(string name, ApplicationIamBindingArgs args, CustomResourceOptions? opts = null)
public ApplicationIamBinding(String name, ApplicationIamBindingArgs args)
public ApplicationIamBinding(String name, ApplicationIamBindingArgs args, CustomResourceOptions options)
type: google-native:beyondcorp/v1alpha:ApplicationIamBinding
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. ApplicationIamBindingArgs - 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. ApplicationIamBindingArgs - 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. ApplicationIamBindingArgs - 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. ApplicationIamBindingArgs - 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. ApplicationIamBindingArgs - 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 applicationIamBindingResource = new GoogleNative.BeyondCorp.V1Alpha.ApplicationIamBinding("applicationIamBindingResource", new()
{
Members = new[]
{
"string",
},
Name = "string",
Role = "string",
Condition = new GoogleNative.IAM.V1.Inputs.ConditionArgs
{
Expression = "string",
Title = "string",
Description = "string",
},
});
example, err := beyondcorpv1alpha.NewApplicationIamBinding(ctx, "applicationIamBindingResource", &beyondcorpv1alpha.ApplicationIamBindingArgs{
Members: pulumi.StringArray{
pulumi.String("string"),
},
Name: pulumi.String("string"),
Role: pulumi.String("string"),
Condition: &iam.ConditionArgs{
Expression: pulumi.String("string"),
Title: pulumi.String("string"),
Description: pulumi.String("string"),
},
})
var applicationIamBindingResource = new ApplicationIamBinding("applicationIamBindingResource", ApplicationIamBindingArgs.builder()
.members("string")
.name("string")
.role("string")
.condition(ConditionArgs.builder()
.expression("string")
.title("string")
.description("string")
.build())
.build());
application_iam_binding_resource = google_native.beyondcorp.v1alpha.ApplicationIamBinding("applicationIamBindingResource",
members=["string"],
name="string",
role="string",
condition={
"expression": "string",
"title": "string",
"description": "string",
})
const applicationIamBindingResource = new google_native.beyondcorp.v1alpha.ApplicationIamBinding("applicationIamBindingResource", {
members: ["string"],
name: "string",
role: "string",
condition: {
expression: "string",
title: "string",
description: "string",
},
});
type: google-native:beyondcorp/v1alpha:ApplicationIamBinding
properties:
condition:
description: string
expression: string
title: string
members:
- string
name: string
role: string
ApplicationIamBinding 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 ApplicationIamBinding resource accepts the following input properties:
- Members
This property is required. List<string> - Identities that will be granted the privilege in role. Each entry can have one of the following values:
- user:{emailid}: An email address that represents a specific Google account. For example, alice@gmail.com or joe@example.com.
- serviceAccount:{emailid}: An email address that represents a service account. For example, my-other-app@appspot.gserviceaccount.com.
- group:{emailid}: An email address that represents a Google group. For example, admins@example.com.
- domain:{domain}: A G Suite domain (primary, instead of alias) name that represents all the users of that domain. For example, google.com or example.com.
- Name
This property is required. string - The name of the resource to manage IAM policies for.
- Role
This property is required. string - The role that should be applied. Only one
IamBinding
can be used per role. - Condition
Pulumi.
Google Native. IAM. V1. Inputs. Condition - An IAM Condition for a given binding.
- Members
This property is required. []string - Identities that will be granted the privilege in role. Each entry can have one of the following values:
- user:{emailid}: An email address that represents a specific Google account. For example, alice@gmail.com or joe@example.com.
- serviceAccount:{emailid}: An email address that represents a service account. For example, my-other-app@appspot.gserviceaccount.com.
- group:{emailid}: An email address that represents a Google group. For example, admins@example.com.
- domain:{domain}: A G Suite domain (primary, instead of alias) name that represents all the users of that domain. For example, google.com or example.com.
- Name
This property is required. string - The name of the resource to manage IAM policies for.
- Role
This property is required. string - The role that should be applied. Only one
IamBinding
can be used per role. - Condition
Condition
Args - An IAM Condition for a given binding.
- members
This property is required. List<String> - Identities that will be granted the privilege in role. Each entry can have one of the following values:
- user:{emailid}: An email address that represents a specific Google account. For example, alice@gmail.com or joe@example.com.
- serviceAccount:{emailid}: An email address that represents a service account. For example, my-other-app@appspot.gserviceaccount.com.
- group:{emailid}: An email address that represents a Google group. For example, admins@example.com.
- domain:{domain}: A G Suite domain (primary, instead of alias) name that represents all the users of that domain. For example, google.com or example.com.
- name
This property is required. String - The name of the resource to manage IAM policies for.
- role
This property is required. String - The role that should be applied. Only one
IamBinding
can be used per role. - condition Condition
- An IAM Condition for a given binding.
- members
This property is required. string[] - Identities that will be granted the privilege in role. Each entry can have one of the following values:
- user:{emailid}: An email address that represents a specific Google account. For example, alice@gmail.com or joe@example.com.
- serviceAccount:{emailid}: An email address that represents a service account. For example, my-other-app@appspot.gserviceaccount.com.
- group:{emailid}: An email address that represents a Google group. For example, admins@example.com.
- domain:{domain}: A G Suite domain (primary, instead of alias) name that represents all the users of that domain. For example, google.com or example.com.
- name
This property is required. string - The name of the resource to manage IAM policies for.
- role
This property is required. string - The role that should be applied. Only one
IamBinding
can be used per role. - condition
iam.v1.
Condition - An IAM Condition for a given binding.
- members
This property is required. Sequence[str] - Identities that will be granted the privilege in role. Each entry can have one of the following values:
- user:{emailid}: An email address that represents a specific Google account. For example, alice@gmail.com or joe@example.com.
- serviceAccount:{emailid}: An email address that represents a service account. For example, my-other-app@appspot.gserviceaccount.com.
- group:{emailid}: An email address that represents a Google group. For example, admins@example.com.
- domain:{domain}: A G Suite domain (primary, instead of alias) name that represents all the users of that domain. For example, google.com or example.com.
- name
This property is required. str - The name of the resource to manage IAM policies for.
- role
This property is required. str - The role that should be applied. Only one
IamBinding
can be used per role. - condition
iam.v1.
Condition Args - An IAM Condition for a given binding.
- members
This property is required. List<String> - Identities that will be granted the privilege in role. Each entry can have one of the following values:
- user:{emailid}: An email address that represents a specific Google account. For example, alice@gmail.com or joe@example.com.
- serviceAccount:{emailid}: An email address that represents a service account. For example, my-other-app@appspot.gserviceaccount.com.
- group:{emailid}: An email address that represents a Google group. For example, admins@example.com.
- domain:{domain}: A G Suite domain (primary, instead of alias) name that represents all the users of that domain. For example, google.com or example.com.
- name
This property is required. String - The name of the resource to manage IAM policies for.
- role
This property is required. String - The role that should be applied. Only one
IamBinding
can be used per role. - condition Property Map
- An IAM Condition for a given binding.
Outputs
All input properties are implicitly available as output properties. Additionally, the ApplicationIamBinding resource produces the following output properties:
Supporting Types
Condition, ConditionArgs
- Expression
This property is required. string - Textual representation of an expression in Common Expression Language syntax.
- Title
This property is required. string - A title for the expression, i.e. a short string describing its purpose.
- Description string
- An optional description of the expression. This is a longer text which describes the expression, e.g., when hovering over it in a UI.
- Expression
This property is required. string - Textual representation of an expression in Common Expression Language syntax.
- Title
This property is required. string - A title for the expression, i.e. a short string describing its purpose.
- Description string
- An optional description of the expression. This is a longer text which describes the expression, e.g., when hovering over it in a UI.
- expression
This property is required. String - Textual representation of an expression in Common Expression Language syntax.
- title
This property is required. String - A title for the expression, i.e. a short string describing its purpose.
- description String
- An optional description of the expression. This is a longer text which describes the expression, e.g., when hovering over it in a UI.
- expression
This property is required. string - Textual representation of an expression in Common Expression Language syntax.
- title
This property is required. string - A title for the expression, i.e. a short string describing its purpose.
- description string
- An optional description of the expression. This is a longer text which describes the expression, e.g., when hovering over it in a UI.
- expression
This property is required. str - Textual representation of an expression in Common Expression Language syntax.
- title
This property is required. str - A title for the expression, i.e. a short string describing its purpose.
- description str
- An optional description of the expression. This is a longer text which describes the expression, e.g., when hovering over it in a UI.
- expression
This property is required. String - Textual representation of an expression in Common Expression Language syntax.
- title
This property is required. String - A title for the expression, i.e. a short string describing its purpose.
- description String
- An optional description of the expression. This is a longer text which describes the expression, e.g., when hovering over it in a UI.
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.