/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the securityhub-2018-10-26.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.SecurityHub.Model
{
///
/// Provided if ActionType
is AWS_API_CALL
. It provides details
/// about the API call that was detected.
///
public partial class AwsApiCallAction
{
private Dictionary _affectedResources = new Dictionary();
private string _api;
private string _callerType;
private AwsApiCallActionDomainDetails _domainDetails;
private string _firstSeen;
private string _lastSeen;
private ActionRemoteIpDetails _remoteIpDetails;
private string _serviceName;
///
/// Gets and sets the property AffectedResources.
///
/// Identifies the resources that were affected by the API call.
///
///
public Dictionary AffectedResources
{
get { return this._affectedResources; }
set { this._affectedResources = value; }
}
// Check to see if AffectedResources property is set
internal bool IsSetAffectedResources()
{
return this._affectedResources != null && this._affectedResources.Count > 0;
}
///
/// Gets and sets the property Api.
///
/// The name of the API method that was issued.
///
///
public string Api
{
get { return this._api; }
set { this._api = value; }
}
// Check to see if Api property is set
internal bool IsSetApi()
{
return this._api != null;
}
///
/// Gets and sets the property CallerType.
///
/// Indicates whether the API call originated from a remote IP address (remoteip
)
/// or from a DNS domain (domain
).
///
///
public string CallerType
{
get { return this._callerType; }
set { this._callerType = value; }
}
// Check to see if CallerType property is set
internal bool IsSetCallerType()
{
return this._callerType != null;
}
///
/// Gets and sets the property DomainDetails.
///
/// Provided if CallerType
is domain
. Provides information about
/// the DNS domain that the API call originated from.
///
///
public AwsApiCallActionDomainDetails DomainDetails
{
get { return this._domainDetails; }
set { this._domainDetails = value; }
}
// Check to see if DomainDetails property is set
internal bool IsSetDomainDetails()
{
return this._domainDetails != null;
}
///
/// Gets and sets the property FirstSeen.
///
/// An ISO8601-formatted timestamp that indicates when the API call was first observed.
///
///
///
/// A correctly formatted example is 2020-05-21T20:16:34.724Z
. The value
/// cannot contain spaces, and date and time should be separated by T
. For
/// more information, see RFC
/// 3339 section 5.6, Internet Date/Time Format.
///
///
public string FirstSeen
{
get { return this._firstSeen; }
set { this._firstSeen = value; }
}
// Check to see if FirstSeen property is set
internal bool IsSetFirstSeen()
{
return this._firstSeen != null;
}
///
/// Gets and sets the property LastSeen.
///
/// An ISO8601-formatted timestamp that indicates when the API call was most recently
/// observed.
///
///
///
/// A correctly formatted example is 2020-05-21T20:16:34.724Z
. The value
/// cannot contain spaces, and date and time should be separated by T
. For
/// more information, see RFC
/// 3339 section 5.6, Internet Date/Time Format.
///
///
public string LastSeen
{
get { return this._lastSeen; }
set { this._lastSeen = value; }
}
// Check to see if LastSeen property is set
internal bool IsSetLastSeen()
{
return this._lastSeen != null;
}
///
/// Gets and sets the property RemoteIpDetails.
///
/// Provided if CallerType
is remoteIp
. Provides information
/// about the remote IP address that the API call originated from.
///
///
public ActionRemoteIpDetails RemoteIpDetails
{
get { return this._remoteIpDetails; }
set { this._remoteIpDetails = value; }
}
// Check to see if RemoteIpDetails property is set
internal bool IsSetRemoteIpDetails()
{
return this._remoteIpDetails != null;
}
///
/// Gets and sets the property ServiceName.
///
/// The name of the Amazon Web Services service that the API method belongs to.
///
///
public string ServiceName
{
get { return this._serviceName; }
set { this._serviceName = value; }
}
// Check to see if ServiceName property is set
internal bool IsSetServiceName()
{
return this._serviceName != null;
}
}
}