DenySettings Class
- java.
lang. Object - com.
azure. resourcemanager. resources. models. DenySettings
- com.
Implements
public final class DenySettings
implements JsonSerializable<DenySettings>
Defines how resources deployed by the Deployment stack are locked.
Constructor Summary
Constructor | Description |
---|---|
DenySettings() |
Creates an instance of Deny |
Method Summary
Modifier and Type | Method and Description |
---|---|
Boolean |
applyToChildScopes()
Get the apply |
List<String> |
excludedActions()
Get the excluded |
List<String> |
excludedPrincipals()
Get the excluded |
static
Deny |
fromJson(JsonReader jsonReader)
Reads an instance of Deny |
Deny |
mode()
Get the mode property: deny |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Deny |
withApplyToChildScopes(Boolean applyToChildScopes)
Set the apply |
Deny |
withExcludedActions(List<String> excludedActions)
Set the excluded |
Deny |
withExcludedPrincipals(List<String> excludedPrincipals)
Set the excluded |
Deny |
withMode(DenySettingsMode mode)
Set the mode property: deny |
Methods inherited from java.lang.Object
Constructor Details
DenySettings
public DenySettings()
Creates an instance of DenySettings class.
Method Details
applyToChildScopes
public Boolean applyToChildScopes()
Get the applyToChildScopes property: DenySettings will be applied to child resource scopes of every managed resource with a deny assignment.
Returns:
excludedActions
public List
Get the excludedActions property: List of role-based management operations that are excluded from the denySettings. Up to 200 actions are permitted. If the denySetting mode is set to 'denyWriteAndDelete', then the following actions are automatically appended to 'excludedActions': '*\/read' and 'Microsoft.Authorization/locks/delete'. If the denySetting mode is set to 'denyDelete', then the following actions are automatically appended to 'excludedActions': 'Microsoft.Authorization/locks/delete'. Duplicate actions will be removed.
Returns:
excludedPrincipals
public List
Get the excludedPrincipals property: List of AAD principal IDs excluded from the lock. Up to 5 principals are permitted.
Returns:
fromJson
public static DenySettings fromJson(JsonReader jsonReader)
Reads an instance of DenySettings from the JsonReader.
Parameters:
Returns:
Throws:
mode
public DenySettingsMode mode()
Get the mode property: denySettings Mode that defines denied actions.
Returns:
toJson
validate
public void validate()
Validates the instance.
withApplyToChildScopes
public DenySettings withApplyToChildScopes(Boolean applyToChildScopes)
Set the applyToChildScopes property: DenySettings will be applied to child resource scopes of every managed resource with a deny assignment.
Parameters:
Returns:
withExcludedActions
public DenySettings withExcludedActions(List
Set the excludedActions property: List of role-based management operations that are excluded from the denySettings. Up to 200 actions are permitted. If the denySetting mode is set to 'denyWriteAndDelete', then the following actions are automatically appended to 'excludedActions': '*\/read' and 'Microsoft.Authorization/locks/delete'. If the denySetting mode is set to 'denyDelete', then the following actions are automatically appended to 'excludedActions': 'Microsoft.Authorization/locks/delete'. Duplicate actions will be removed.
Parameters:
Returns:
withExcludedPrincipals
public DenySettings withExcludedPrincipals(List
Set the excludedPrincipals property: List of AAD principal IDs excluded from the lock. Up to 5 principals are permitted.
Parameters:
Returns:
withMode
public DenySettings withMode(DenySettingsMode mode)
Set the mode property: denySettings Mode that defines denied actions.
Parameters:
Returns:
Applies to
Azure SDK for Java