https://pulumi.com logo
Title
o

orange-airport-64592

11/01/2022, 9:58 AM
Hi, everyone, I would like to know what is the difference between the following two packages and their positioning? I see a big difference in their interfaces, some options are in 1 instead of 2
from pulumi_aws.apigateway import RestApi
from pulumi_aws_apigateway import RestAPI
e

echoing-dinner-19531

11/01/2022, 1:46 PM
pulumi_aws_apigateway is https://github.com/pulumi/pulumi-aws-apigateway, a helper library to make it easier to write api gateway setups. pulumi_aws.apigateway is is the apigateway module of https://github.com/pulumi/pulumi-aws, the direct interface exposed by the aws resource provider.
c

cuddly-magician-97620

11/01/2022, 2:51 PM
In other words,
pulumi_aws_apigateway
is not meant for direct imports, right?
e

echoing-dinner-19531

11/01/2022, 2:53 PM
It is, it serves a similar role to the awsx library. Makes it easier to use aws resources without having to set up everything directly via aws resources.