getOsPolicyAssignmentOsconfigV1alpha function
Future<GetOsPolicyAssignmentOsconfigV1alphaResult>
getOsPolicyAssignmentOsconfigV1alpha(
- GetOsPolicyAssignmentOsconfigV1alphaArgs args, {
- InvokeOptions? options,
Retrieve an existing OS policy assignment. This method always returns the latest revision. In order to retrieve a previous revision of the assignment, also provide the revision ID in the name parameter.
args Arguments passed to this invoke. Arguments for getOsPolicyAssignment.
options Invoke options controlling this call.
Implementation
Future<GetOsPolicyAssignmentOsconfigV1alphaResult> getOsPolicyAssignmentOsconfigV1alpha(
GetOsPolicyAssignmentOsconfigV1alphaArgs args, {
pulumi.InvokeOptions? options,
}) async {
final deployment = pulumi.Deployment.instance;
final result = await deployment.invoke<Map<String, dynamic>>(
'google-native:osconfig/v1alpha:getOsPolicyAssignment',
args.toMap(),
options: pulumi.toDeploymentInvokeOptions(options),
);
return GetOsPolicyAssignmentOsconfigV1alphaResult.fromMap(result);
}