Share via


ArmSecurityCenterModelFactory.AwsEnvironment Method

Definition

Initializes a new instance of AwsEnvironment.

public static Azure.ResourceManager.SecurityCenter.Models.AwsEnvironment AwsEnvironment (Azure.ResourceManager.SecurityCenter.Models.AwsOrganizationalInfo organizationalData = default, System.Collections.Generic.IEnumerable<string> regions = default, string accountName = default, long? scanInterval = default);
static member AwsEnvironment : Azure.ResourceManager.SecurityCenter.Models.AwsOrganizationalInfo * seq<string> * string * Nullable<int64> -> Azure.ResourceManager.SecurityCenter.Models.AwsEnvironment
Public Shared Function AwsEnvironment (Optional organizationalData As AwsOrganizationalInfo = Nothing, Optional regions As IEnumerable(Of String) = Nothing, Optional accountName As String = Nothing, Optional scanInterval As Nullable(Of Long) = Nothing) As AwsEnvironment

Parameters

organizationalData
AwsOrganizationalInfo

The AWS account's organizational data Please note AwsOrganizationalInfo is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include AwsOrganizationalDataMember and AwsOrganizationalDataMaster.

regions
IEnumerable<String>

list of regions to scan.

accountName
String

The AWS account name.

scanInterval
Nullable<Int64>

Scan interval in hours (value should be between 1-hour to 24-hours).

Returns

A new AwsEnvironment instance for mocking.

Applies to