例如,我有这个代码:
import boto3
s3 = boto3.resource('s3')
bucket = s3.Bucket('my-bucket-name')
# Does it exist???
Run Code Online (Sandbox Code Playgroud) 例如,我有这个代码:
import boto3
ec2 = boto3.resource('ec2')
# Where is the client???
Run Code Online (Sandbox Code Playgroud)
我需要打电话boto3.client('ec2')还是有其他方式?