"""vpclattice base URL and path."""

from .responses import VPCLatticeResponse

url_bases = [
    r"https?://vpc-lattice\.(.+)\.amazonaws\.com",
]

url_paths = {
    "{0}/accesslogsubscriptions$": VPCLatticeResponse.dispatch,
    "{0}/accesslogsubscriptions/(?P<accessLogSubscriptionIdentifier>.+)$": VPCLatticeResponse.dispatch,
    "{0}/services$": VPCLatticeResponse.dispatch,
    "{0}/servicenetworks$": VPCLatticeResponse.dispatch,
    "{0}/servicenetworkvpcassociations$": VPCLatticeResponse.dispatch,
    "{0}/services/(?P<serviceIdentifier>[^/]+)/listeners$": VPCLatticeResponse.dispatch,
    "{0}/services/(?P<serviceIdentifier>[^/]+)/listeners/(?P<listenerIdentifier>[^/]+)$": VPCLatticeResponse.dispatch,
    "{0}/services/(?P<serviceIdentifier>[^/]+)/listeners/(?P<listenerIdentifier>[^/]+)/rules$": VPCLatticeResponse.dispatch,
    "{0}/tags/(?P<resourceArn>.+)$": VPCLatticeResponse.dispatch,
    "{0}/services/(?P<serviceIdentifier>.+)$": VPCLatticeResponse.dispatch,
    "{0}/servicenetworks/(?P<serviceNetworkIdentifier>.+)$": VPCLatticeResponse.dispatch,
    "{0}/tags/(?P<resourceArn>[^/]+)?tagKeys=(?P<tagKeys>[^/]+)$": VPCLatticeResponse.dispatch,
    "{0}/resourcepolicy/(?P<resourceIdentifier>.+)$": VPCLatticeResponse.dispatch,
    "{0}/authpolicy/(?P<resourceIdentifier>.+)$": VPCLatticeResponse.dispatch,
    "{0}/servicenetworkvpcassociations/(?P<serviceNetworkIdentifier>.+)$": VPCLatticeResponse.dispatch,
    "{0}/targetgroups$": VPCLatticeResponse.dispatch,
    "{0}/targetgroups/(?P<targetGroupIdentifier>.+)$": VPCLatticeResponse.dispatch,
    "{0}/servicenetworkresourceassociations$": VPCLatticeResponse.dispatch,
    "{0}/servicenetworkresourceassociations/(?P<serviceNetworkResourceAssociationIdentifie>.+)$": VPCLatticeResponse.dispatch,
    "{0}/servicenetworkserviceassociations$": VPCLatticeResponse.dispatch,
    "{0}/servicenetworkserviceassociations/(?P<serviceNetworkServiceAssociationIdentifier>.+)$": VPCLatticeResponse.dispatch,
}
