Exemple #1
0
def client():
    return session.get_session().create_client("ess")
def client():
    return session.get_session().create_client("nas", region_name="jp-west-1")
Exemple #3
0
def client():
    return session.get_session().create_client("script")
Exemple #4
0
# containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# All configuration values have a default; values that are commented out
# serve to show the default.

import os
import sys

from nifcloud import __version__
from nifcloud.docs import generate_docs
from nifcloud.session import get_session

generate_docs(os.path.dirname(os.path.abspath(__file__)), get_session())

# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
#sys.path.insert(0, os.path.abspath('.'))

# -- General configuration ------------------------------------------------

# If your documentation needs a minimal Sphinx version, state it here.
#needs_sphinx = '1.0'

# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = []
def client():
    return session.get_session().create_client("computing")
 def __init__(self):
     self.client = session.get_session().create_client(
         "computing",
         region_name=os.environ['AWS_DEFAULT_REGION'],
         aws_access_key_id=os.environ['AWS_ACCESS_KEY_ID'],
         aws_secret_access_key=os.environ['AWS_SECRET_ACCESS_KEY'])