Documentation
¶
Index ¶
- func AllRegionNames() []string
- func AllServiceNames() []string
- func List() (aws.ServiceSchemas, error)
- func ServiceMeta() (aws.ServiceSchemas, error)
- func ServiceMetaForRegion(regionName string) (aws.ServiceSchemas, error)
- func ServiceOperations(serviceId string) ([]string, error)
- func ServiceOperationsByServiceId(serviceId string) ([]string, error)
- func ServiceOperationsByServiceName(serviceName string) ([]string, error)
- func ServicesInRegion(regionName string) ([]string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllRegionNames ¶
func AllRegionNames() []string
func AllServiceNames ¶
func AllServiceNames() []string
func List ¶ added in v0.69.0
func List() (aws.ServiceSchemas, error)
List returns detailed information about all AWS services. This includes service metadata such as service IDs, full names, operations, and regional availability information.
Returns:
- aws.ServiceSchemas: A map of service schemas containing detailed service information
- error: An error if there's an issue reading the manifest
Example:
services, err := services.List()
if err != nil {
log.Fatal(err)
}
for serviceId, service := range services {
fmt.Printf("Service: %s\n", service.ServiceFullName)
fmt.Printf(" ID: %s\n", service.ServiceId)
fmt.Printf(" Operations: %d\n", len(service.Operations))
}
func ServiceMeta ¶
func ServiceMeta() (aws.ServiceSchemas, error)
ServiceMeta returns detailed information about all AWS services. This includes service metadata such as service IDs, full names, operations, and regional availability information.
Returns:
- aws.ServiceSchemas: A slice of service schemas containing detailed service information
- error: An error if there's an issue reading the manifest
Example:
services, err := services.ServiceMeta()
if err != nil {
log.Fatal(err)
}
for _, service := range services {
fmt.Printf("Service: %s\n", service.ServiceFullName)
fmt.Printf(" ID: %s\n", service.ServiceId)
fmt.Printf(" Operations: %d\n", len(service.Operations))
}
func ServiceMetaForRegion ¶
func ServiceMetaForRegion(regionName string) (aws.ServiceSchemas, error)
ServiceMetaForRegion returns detailed information about AWS services available in the specified region. This includes service metadata such as service IDs, full names, operations, and protocols for only the services that are available in the given region.
Parameters:
- regionName: The AWS region name (e.g., "us-east-1", "eu-west-1")
Returns:
- aws.ServiceSchemas: A map of service schemas containing detailed service information for services available in the region
- error: An error if the region name is invalid or if there's an issue reading the manifest
Example:
services, err := services.ServiceMetaForRegion("us-east-1")
if err != nil {
log.Fatal(err)
}
for serviceId, service := range services {
fmt.Printf("Service: %s (available in us-east-1)\n", service.ServiceFullName)
fmt.Printf(" ID: %s\n", service.ServiceId)
fmt.Printf(" Operations: %d\n", len(service.Operations))
}
func ServiceOperations ¶
ServiceOperations returns a list of operation names available for the specified service ID. This is an alias for ServiceOperationsByServiceId for convenience. The returned operations are sorted alphabetically.
Parameters:
- serviceId: The AWS service ID (e.g., "ACM", "S3", "EC2")
Returns:
- []string: A sorted list of operation names available for the service
- error: An error if the service ID is invalid or if there's an issue reading the manifest
Example:
operations, err := ServiceOperations("ACM")
if err != nil {
log.Fatal(err)
}
fmt.Printf("Found %d operations for ACM\n", len(operations))
func ServiceOperationsByServiceId ¶
ServiceOperationsByServiceId returns a list of operation names available for the specified service ID. The returned operations are sorted alphabetically.
Parameters:
- serviceId: The AWS service ID (e.g., "ACM", "S3", "EC2")
Returns:
- []string: A sorted list of operation names available for the service
- error: An error if the service ID is invalid or if there's an issue reading the manifest
Example:
operations, err := ServiceOperationsByServiceId("ACM")
if err != nil {
log.Fatal(err)
}
fmt.Printf("Found %d operations for ACM\n", len(operations))
func ServiceOperationsByServiceName ¶
ServiceOperationsByServiceName returns a list of operation names available for the specified service name. The returned operations are sorted alphabetically.
Parameters:
- serviceName: The AWS service full name (e.g., "AWS Certificate Manager", "Amazon Simple Storage Service", "Amazon Elastic Compute Cloud")
Returns:
- []string: A sorted list of operation names available for the service
- error: An error if the service name is invalid or if there's an issue reading the manifest
Example:
operations, err := ServiceOperationsByServiceName("AWS Certificate Manager")
if err != nil {
log.Fatal(err)
}
fmt.Printf("Found %d operations for AWS Certificate Manager\n", len(operations))
func ServicesInRegion ¶
ServicesInRegion returns a list of service names available in the specified region. The returned services are sorted alphabetically.
Parameters:
- regionName: The AWS region name (e.g., "us-east-1", "eu-west-1")
Returns:
- []string: A sorted list of service names available in the region
- error: An error if the region name is invalid or if there's an issue reading the manifest
Example:
services, err := ServicesInRegion("us-east-1")
if err != nil {
log.Fatal(err)
}
fmt.Printf("Found %d services in us-east-1\n", len(services))
Types ¶
This section is empty.