getNoteIamPolicy function
Future<GetNoteIamPolicyResult>
getNoteIamPolicy(
- GetNoteIamPolicyArgs args, {
- InvokeOptions? options,
Gets the access control policy for a note or an occurrence resource. Requires containeranalysis.notes.setIamPolicy or containeranalysis.occurrences.setIamPolicy permission if the resource is a note or occurrence, respectively. The resource takes the format projects/[PROJECT_ID]/notes/[NOTE_ID] for notes and projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID] for occurrences.
args Arguments passed to this invoke. Arguments for getNoteIamPolicy.
options Invoke options controlling this call.
Implementation
Future<GetNoteIamPolicyResult> getNoteIamPolicy(
GetNoteIamPolicyArgs args, {
pulumi.InvokeOptions? options,
}) async {
final deployment = pulumi.Deployment.instance;
final result = await deployment.invoke<Map<String, dynamic>>(
'google-native:containeranalysis/v1:getNoteIamPolicy',
args.toMap(),
options: pulumi.toDeploymentInvokeOptions(options),
);
return GetNoteIamPolicyResult.fromMap(result);
}