EC2.Client.
get_network_insights_access_scope_content
(**kwargs)¶Gets the content for the specified Network Access Scope.
See also: AWS API Documentation
Request Syntax
response = client.get_network_insights_access_scope_content(
NetworkInsightsAccessScopeId='string',
DryRun=True|False
)
[REQUIRED]
The ID of the Network Access Scope.
DryRunOperation
. Otherwise, it is UnauthorizedOperation
.dict
Response Syntax
{
'NetworkInsightsAccessScopeContent': {
'NetworkInsightsAccessScopeId': 'string',
'MatchPaths': [
{
'Source': {
'PacketHeaderStatement': {
'SourceAddresses': [
'string',
],
'DestinationAddresses': [
'string',
],
'SourcePorts': [
'string',
],
'DestinationPorts': [
'string',
],
'SourcePrefixLists': [
'string',
],
'DestinationPrefixLists': [
'string',
],
'Protocols': [
'tcp'|'udp',
]
},
'ResourceStatement': {
'Resources': [
'string',
],
'ResourceTypes': [
'string',
]
}
},
'Destination': {
'PacketHeaderStatement': {
'SourceAddresses': [
'string',
],
'DestinationAddresses': [
'string',
],
'SourcePorts': [
'string',
],
'DestinationPorts': [
'string',
],
'SourcePrefixLists': [
'string',
],
'DestinationPrefixLists': [
'string',
],
'Protocols': [
'tcp'|'udp',
]
},
'ResourceStatement': {
'Resources': [
'string',
],
'ResourceTypes': [
'string',
]
}
},
'ThroughResources': [
{
'ResourceStatement': {
'Resources': [
'string',
],
'ResourceTypes': [
'string',
]
}
},
]
},
],
'ExcludePaths': [
{
'Source': {
'PacketHeaderStatement': {
'SourceAddresses': [
'string',
],
'DestinationAddresses': [
'string',
],
'SourcePorts': [
'string',
],
'DestinationPorts': [
'string',
],
'SourcePrefixLists': [
'string',
],
'DestinationPrefixLists': [
'string',
],
'Protocols': [
'tcp'|'udp',
]
},
'ResourceStatement': {
'Resources': [
'string',
],
'ResourceTypes': [
'string',
]
}
},
'Destination': {
'PacketHeaderStatement': {
'SourceAddresses': [
'string',
],
'DestinationAddresses': [
'string',
],
'SourcePorts': [
'string',
],
'DestinationPorts': [
'string',
],
'SourcePrefixLists': [
'string',
],
'DestinationPrefixLists': [
'string',
],
'Protocols': [
'tcp'|'udp',
]
},
'ResourceStatement': {
'Resources': [
'string',
],
'ResourceTypes': [
'string',
]
}
},
'ThroughResources': [
{
'ResourceStatement': {
'Resources': [
'string',
],
'ResourceTypes': [
'string',
]
}
},
]
},
]
}
}
Response Structure
(dict) --
NetworkInsightsAccessScopeContent (dict) --
The Network Access Scope content.
NetworkInsightsAccessScopeId (string) --
The ID of the Network Access Scope.
MatchPaths (list) --
The paths to match.
(dict) --
Describes a path.
Source (dict) --
The source.
PacketHeaderStatement (dict) --
The packet header statement.
SourceAddresses (list) --
The source addresses.
DestinationAddresses (list) --
The destination addresses.
SourcePorts (list) --
The source ports.
DestinationPorts (list) --
The destination ports.
SourcePrefixLists (list) --
The source prefix lists.
DestinationPrefixLists (list) --
The destination prefix lists.
Protocols (list) --
The protocols.
ResourceStatement (dict) --
The resource statement.
Resources (list) --
The resources.
ResourceTypes (list) --
The resource types.
Destination (dict) --
The destination.
PacketHeaderStatement (dict) --
The packet header statement.
SourceAddresses (list) --
The source addresses.
DestinationAddresses (list) --
The destination addresses.
SourcePorts (list) --
The source ports.
DestinationPorts (list) --
The destination ports.
SourcePrefixLists (list) --
The source prefix lists.
DestinationPrefixLists (list) --
The destination prefix lists.
Protocols (list) --
The protocols.
ResourceStatement (dict) --
The resource statement.
Resources (list) --
The resources.
ResourceTypes (list) --
The resource types.
ThroughResources (list) --
The through resources.
(dict) --
Describes a through resource statement.
ResourceStatement (dict) --
The resource statement.
Resources (list) --
The resources.
ResourceTypes (list) --
The resource types.
ExcludePaths (list) --
The paths to exclude.
(dict) --
Describes a path.
Source (dict) --
The source.
PacketHeaderStatement (dict) --
The packet header statement.
SourceAddresses (list) --
The source addresses.
DestinationAddresses (list) --
The destination addresses.
SourcePorts (list) --
The source ports.
DestinationPorts (list) --
The destination ports.
SourcePrefixLists (list) --
The source prefix lists.
DestinationPrefixLists (list) --
The destination prefix lists.
Protocols (list) --
The protocols.
ResourceStatement (dict) --
The resource statement.
Resources (list) --
The resources.
ResourceTypes (list) --
The resource types.
Destination (dict) --
The destination.
PacketHeaderStatement (dict) --
The packet header statement.
SourceAddresses (list) --
The source addresses.
DestinationAddresses (list) --
The destination addresses.
SourcePorts (list) --
The source ports.
DestinationPorts (list) --
The destination ports.
SourcePrefixLists (list) --
The source prefix lists.
DestinationPrefixLists (list) --
The destination prefix lists.
Protocols (list) --
The protocols.
ResourceStatement (dict) --
The resource statement.
Resources (list) --
The resources.
ResourceTypes (list) --
The resource types.
ThroughResources (list) --
The through resources.
(dict) --
Describes a through resource statement.
ResourceStatement (dict) --
The resource statement.
Resources (list) --
The resources.
ResourceTypes (list) --
The resource types.