PolicyAssignment.DefinitionStages.WithScope Interface
public static interface PolicyAssignment.DefinitionStages.WithScope
A policy assignment specifying the scope of the policy.
Method Summary
Modifier and Type | Method and Description |
---|---|
abstract
With |
forResource(GenericResource genericResource)
Specifies the scope of the policy assignment to be a resource. |
abstract
With |
forResourceGroup(ResourceGroup resourceGroup)
Specifies the scope of the policy assignment to be a resource group. |
abstract
With |
forScope(String scope)
Specifies the scope of the policy assignment. |
Method Details
forResource
public abstract PolicyAssignment.DefinitionStages.WithPolicyDefinition forResource(GenericResource genericResource)
Specifies the scope of the policy assignment to be a resource.
Parameters:
Returns:
forResourceGroup
public abstract PolicyAssignment.DefinitionStages.WithPolicyDefinition forResourceGroup(ResourceGroup resourceGroup)
Specifies the scope of the policy assignment to be a resource group.
Parameters:
Returns:
forScope
public abstract PolicyAssignment.DefinitionStages.WithPolicyDefinition forScope(String scope)
Specifies the scope of the policy assignment.
Parameters:
Returns:
Applies to
Azure SDK for Java
Comentários
https://aka.ms/ContentUserFeedback.
Em breve: Ao longo de 2024, eliminaremos os problemas do GitHub como o mecanismo de comentários para conteúdo e o substituiremos por um novo sistema de comentários. Para obter mais informações, consulteEnviar e exibir comentários de