Resource

public struct Resource : AWSShape

Undocumented

  • Declaration

    Swift

    public static var _members: [AWSShapeMember]
  • Additional details about the resource related to a finding.

    Declaration

    Swift

    public let details: ResourceDetails?
  • id

    The canonical identifier for the given resource type.

    Declaration

    Swift

    public let id: String
  • The canonical AWS partition name that the Region is assigned to.

    Declaration

    Swift

    public let partition: Partition?
  • The canonical AWS external Region name where this resource is located.

    Declaration

    Swift

    public let region: String?
  • A list of AWS tags associated with a resource at the time the finding was processed.

    Declaration

    Swift

    public let tags: [String : String]?
  • 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.

    Declaration

    Swift

    public let type: String
  • Undocumented

    Declaration

    Swift

    public init(details: ResourceDetails? = nil, id: String, partition: Partition? = nil, region: String? = nil, tags: [String : String]? = nil, type: String)
  • Declaration

    Swift

    public func validate(name: String) throws