Google Cloud Native is in preview. Google Cloud Classic is fully supported.
google-native.containeranalysis/v1beta1.OccurrenceIamBinding
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Sets the access control policy on the specified note or occurrence. Requires containeranalysis.notes.setIamPolicy
or containeranalysis.occurrences.setIamPolicy
permission if the resource is a note or an occurrence, respectively. The resource takes the format projects/[PROJECT_ID]/notes/[NOTE_ID]
for notes and projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]
for occurrences.
Create OccurrenceIamBinding Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new OccurrenceIamBinding(name: string, args: OccurrenceIamBindingArgs, opts?: CustomResourceOptions);
@overload
def OccurrenceIamBinding(resource_name: str,
args: OccurrenceIamBindingArgs,
opts: Optional[ResourceOptions] = None)
@overload
def OccurrenceIamBinding(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 NewOccurrenceIamBinding(ctx *Context, name string, args OccurrenceIamBindingArgs, opts ...ResourceOption) (*OccurrenceIamBinding, error)
public OccurrenceIamBinding(string name, OccurrenceIamBindingArgs args, CustomResourceOptions? opts = null)
public OccurrenceIamBinding(String name, OccurrenceIamBindingArgs args)
public OccurrenceIamBinding(String name, OccurrenceIamBindingArgs args, CustomResourceOptions options)
type: google-native:containeranalysis/v1beta1:OccurrenceIamBinding
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 OccurrenceIamBindingArgs
- 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 OccurrenceIamBindingArgs
- 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 OccurrenceIamBindingArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args OccurrenceIamBindingArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args OccurrenceIamBindingArgs
- 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 exampleoccurrenceIamBindingResourceResourceFromContaineranalysisv1beta1 = new GoogleNative.ContainerAnalysis.V1Beta1.OccurrenceIamBinding("exampleoccurrenceIamBindingResourceResourceFromContaineranalysisv1beta1", new()
{
Members = new[]
{
"string",
},
Name = "string",
Role = "string",
Condition = new GoogleNative.IAM.V1.Inputs.ConditionArgs
{
Expression = "string",
Title = "string",
Description = "string",
},
});
example, err := containeranalysisv1beta1.NewOccurrenceIamBinding(ctx, "exampleoccurrenceIamBindingResourceResourceFromContaineranalysisv1beta1", &containeranalysisv1beta1.OccurrenceIamBindingArgs{
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 exampleoccurrenceIamBindingResourceResourceFromContaineranalysisv1beta1 = new OccurrenceIamBinding("exampleoccurrenceIamBindingResourceResourceFromContaineranalysisv1beta1", OccurrenceIamBindingArgs.builder()
.members("string")
.name("string")
.role("string")
.condition(ConditionArgs.builder()
.expression("string")
.title("string")
.description("string")
.build())
.build());
exampleoccurrence_iam_binding_resource_resource_from_containeranalysisv1beta1 = google_native.containeranalysis.v1beta1.OccurrenceIamBinding("exampleoccurrenceIamBindingResourceResourceFromContaineranalysisv1beta1",
members=["string"],
name="string",
role="string",
condition=google_native.iam.v1.ConditionArgs(
expression="string",
title="string",
description="string",
))
const exampleoccurrenceIamBindingResourceResourceFromContaineranalysisv1beta1 = new google_native.containeranalysis.v1beta1.OccurrenceIamBinding("exampleoccurrenceIamBindingResourceResourceFromContaineranalysisv1beta1", {
members: ["string"],
name: "string",
role: "string",
condition: {
expression: "string",
title: "string",
description: "string",
},
});
type: google-native:containeranalysis/v1beta1:OccurrenceIamBinding
properties:
condition:
description: string
expression: string
title: string
members:
- string
name: string
role: string
OccurrenceIamBinding 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 OccurrenceIamBinding resource accepts the following input properties:
- Members 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 string
- The name of the resource to manage IAM policies for.
- Role 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 []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 string
- The name of the resource to manage IAM policies for.
- Role 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 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 String
- The name of the resource to manage IAM policies for.
- role 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 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 string
- The name of the resource to manage IAM policies for.
- role 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 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 str
- The name of the resource to manage IAM policies for.
- role 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 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 String
- The name of the resource to manage IAM policies for.
- role 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 OccurrenceIamBinding resource produces the following output properties:
Supporting Types
Condition, ConditionArgs
- Expression string
- Textual representation of an expression in Common Expression Language syntax.
- Title 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 string
- Textual representation of an expression in Common Expression Language syntax.
- Title 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 String
- Textual representation of an expression in Common Expression Language syntax.
- title 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 string
- Textual representation of an expression in Common Expression Language syntax.
- title 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 str
- Textual representation of an expression in Common Expression Language syntax.
- title 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 String
- Textual representation of an expression in Common Expression Language syntax.
- title 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.