Freigeben über


ArmSearchModelFactory.SearchEncryptionWithCmk Method

Definition

Initializes a new instance of SearchEncryptionWithCmk.

public static Azure.ResourceManager.Search.Models.SearchEncryptionWithCmk SearchEncryptionWithCmk(Azure.ResourceManager.Search.Models.SearchEncryptionWithCmkEnforcement? enforcement = default, Azure.ResourceManager.Search.Models.SearchEncryptionComplianceStatus? encryptionComplianceStatus = default);
static member SearchEncryptionWithCmk : Nullable<Azure.ResourceManager.Search.Models.SearchEncryptionWithCmkEnforcement> * Nullable<Azure.ResourceManager.Search.Models.SearchEncryptionComplianceStatus> -> Azure.ResourceManager.Search.Models.SearchEncryptionWithCmk
Public Shared Function SearchEncryptionWithCmk (Optional enforcement As Nullable(Of SearchEncryptionWithCmkEnforcement) = Nothing, Optional encryptionComplianceStatus As Nullable(Of SearchEncryptionComplianceStatus) = Nothing) As SearchEncryptionWithCmk

Parameters

enforcement
Nullable<SearchEncryptionWithCmkEnforcement>

Describes how a search service should enforce compliance if it finds objects that aren't encrypted with the customer-managed key.

encryptionComplianceStatus
Nullable<SearchEncryptionComplianceStatus>

Returns the status of search service compliance with respect to non-CMK-encrypted objects. If a service has more than one unencrypted object, and enforcement is enabled, the service is marked as noncompliant.

Returns

A new SearchEncryptionWithCmk instance for mocking.

Applies to