-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
CspmMonitorAwsOffering.cs
47 lines (41 loc) · 2.1 KB
/
CspmMonitorAwsOffering.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using System.Collections.Generic;
namespace Azure.ResourceManager.SecurityCenter.Models
{
/// <summary> The CSPM monitoring for AWS offering. </summary>
public partial class CspmMonitorAwsOffering : SecurityCenterCloudOffering
{
/// <summary> Initializes a new instance of <see cref="CspmMonitorAwsOffering"/>. </summary>
public CspmMonitorAwsOffering()
{
OfferingType = OfferingType.CspmMonitorAws;
}
/// <summary> Initializes a new instance of <see cref="CspmMonitorAwsOffering"/>. </summary>
/// <param name="offeringType"> The type of the security offering. </param>
/// <param name="description"> The offering description. </param>
/// <param name="serializedAdditionalRawData"> Keeps track of any properties unknown to the library. </param>
/// <param name="nativeCloudConnection"> The native cloud connection configuration. </param>
internal CspmMonitorAwsOffering(OfferingType offeringType, string description, IDictionary<string, BinaryData> serializedAdditionalRawData, CspmMonitorAwsOfferingNativeCloudConnection nativeCloudConnection) : base(offeringType, description, serializedAdditionalRawData)
{
NativeCloudConnection = nativeCloudConnection;
OfferingType = offeringType;
}
/// <summary> The native cloud connection configuration. </summary>
internal CspmMonitorAwsOfferingNativeCloudConnection NativeCloudConnection { get; set; }
/// <summary> The cloud role ARN in AWS for this feature. </summary>
public string CloudRoleArn
{
get => NativeCloudConnection is null ? default : NativeCloudConnection.CloudRoleArn;
set
{
if (NativeCloudConnection is null)
NativeCloudConnection = new CspmMonitorAwsOfferingNativeCloudConnection();
NativeCloudConnection.CloudRoleArn = value;
}
}
}
}