/*
* 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
{
///
/// A resource related to a finding.
///
public partial class Resource
{
private DataClassificationDetails _dataClassification;
private ResourceDetails _details;
private string _id;
private Partition _partition;
private string _region;
private string _resourceRole;
private Dictionary _tags = new Dictionary();
private string _type;
///
/// Gets and sets the property DataClassification.
///
/// Contains information about sensitive data that was detected on the resource.
///
///
public DataClassificationDetails DataClassification
{
get { return this._dataClassification; }
set { this._dataClassification = value; }
}
// Check to see if DataClassification property is set
internal bool IsSetDataClassification()
{
return this._dataClassification != null;
}
///
/// Gets and sets the property Details.
///
/// Additional details about the resource related to a finding.
///
///
public ResourceDetails Details
{
get { return this._details; }
set { this._details = value; }
}
// Check to see if Details property is set
internal bool IsSetDetails()
{
return this._details != null;
}
///
/// Gets and sets the property Id.
///
/// The canonical identifier for the given resource type.
///
///
[AWSProperty(Required=true)]
public string Id
{
get { return this._id; }
set { this._id = value; }
}
// Check to see if Id property is set
internal bool IsSetId()
{
return this._id != null;
}
///
/// Gets and sets the property Partition.
///
/// The canonical Amazon Web Services partition name that the Region is assigned to.
///
///
public Partition Partition
{
get { return this._partition; }
set { this._partition = value; }
}
// Check to see if Partition property is set
internal bool IsSetPartition()
{
return this._partition != null;
}
///
/// Gets and sets the property Region.
///
/// The canonical Amazon Web Services external Region name where this resource is located.
///
///
public string Region
{
get { return this._region; }
set { this._region = value; }
}
// Check to see if Region property is set
internal bool IsSetRegion()
{
return this._region != null;
}
///
/// Gets and sets the property ResourceRole.
///
/// Identifies the role of the resource in the finding. A resource is either the actor
/// or target of the finding activity,
///
///
public string ResourceRole
{
get { return this._resourceRole; }
set { this._resourceRole = value; }
}
// Check to see if ResourceRole property is set
internal bool IsSetResourceRole()
{
return this._resourceRole != null;
}
///
/// Gets and sets the property Tags.
///
/// A list of Amazon Web Services tags associated with a resource at the time the finding
/// was processed.
///
///
public Dictionary Tags
{
get { return this._tags; }
set { this._tags = value; }
}
// Check to see if Tags property is set
internal bool IsSetTags()
{
return this._tags != null && this._tags.Count > 0;
}
///
/// Gets and sets the property Type.
///
/// The type of the resource that details are provided for. If possible, set Type
/// to one of the supported resource types. For example, if the resource is an EC2 instance,
/// then set Type
to AwsEc2Instance
.
///
///
///
/// If the resource does not match any of the provided types, then set Type
/// to Other
.
///
///
[AWSProperty(Required=true)]
public string Type
{
get { return this._type; }
set { this._type = value; }
}
// Check to see if Type property is set
internal bool IsSetType()
{
return this._type != null;
}
}
}