mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-30 18:01:21 +00:00
Add all dependency of go-getter
This commit is contained in:
14294
vendor/github.com/aws/aws-sdk-go/service/organizations/api.go
generated
vendored
Normal file
14294
vendor/github.com/aws/aws-sdk-go/service/organizations/api.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
137
vendor/github.com/aws/aws-sdk-go/service/organizations/doc.go
generated
vendored
Normal file
137
vendor/github.com/aws/aws-sdk-go/service/organizations/doc.go
generated
vendored
Normal file
@@ -0,0 +1,137 @@
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
// Package organizations provides the client and types for making API
|
||||
// requests to AWS Organizations.
|
||||
//
|
||||
// AWS Organizations is a web service that enables you to consolidate your multiple
|
||||
// AWS accounts into an organization and centrally manage your accounts and
|
||||
// their resources.
|
||||
//
|
||||
// This guide provides descriptions of the Organizations API. For more information
|
||||
// about using this service, see the AWS Organizations User Guide (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_introduction.html).
|
||||
//
|
||||
// API Version
|
||||
//
|
||||
// This version of the Organizations API Reference documents the Organizations
|
||||
// API version 2016-11-28.
|
||||
//
|
||||
// As an alternative to using the API directly, you can use one of the AWS SDKs,
|
||||
// which consist of libraries and sample code for various programming languages
|
||||
// and platforms (Java, Ruby, .NET, iOS, Android, and more). The SDKs provide
|
||||
// a convenient way to create programmatic access to AWS Organizations. For
|
||||
// example, the SDKs take care of cryptographically signing requests, managing
|
||||
// errors, and retrying requests automatically. For more information about the
|
||||
// AWS SDKs, including how to download and install them, see Tools for Amazon
|
||||
// Web Services (http://aws.amazon.com/tools/).
|
||||
//
|
||||
// We recommend that you use the AWS SDKs to make programmatic API calls to
|
||||
// Organizations. However, you also can use the Organizations Query API to make
|
||||
// direct calls to the Organizations web service. To learn more about the Organizations
|
||||
// Query API, see Making Query Requests (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_query-requests.html)
|
||||
// in the AWS Organizations User Guide. Organizations supports GET and POST
|
||||
// requests for all actions. That is, the API does not require you to use GET
|
||||
// for some actions and POST for others. However, GET requests are subject to
|
||||
// the limitation size of a URL. Therefore, for operations that require larger
|
||||
// sizes, use a POST request.
|
||||
//
|
||||
// Signing Requests
|
||||
//
|
||||
// When you send HTTP requests to AWS, you must sign the requests so that AWS
|
||||
// can identify who sent them. You sign requests with your AWS access key, which
|
||||
// consists of an access key ID and a secret access key. We strongly recommend
|
||||
// that you do not create an access key for your root account. Anyone who has
|
||||
// the access key for your root account has unrestricted access to all the resources
|
||||
// in your account. Instead, create an access key for an IAM user account that
|
||||
// has administrative privileges. As another option, use AWS Security Token
|
||||
// Service to generate temporary security credentials, and use those credentials
|
||||
// to sign requests.
|
||||
//
|
||||
// To sign requests, we recommend that you use Signature Version 4 (http://docs.aws.amazon.com/general/latest/gr/signature-version-4.html).
|
||||
// If you have an existing application that uses Signature Version 2, you do
|
||||
// not have to update it to use Signature Version 4. However, some operations
|
||||
// now require Signature Version 4. The documentation for operations that require
|
||||
// version 4 indicate this requirement.
|
||||
//
|
||||
// When you use the AWS Command Line Interface (AWS CLI) or one of the AWS SDKs
|
||||
// to make requests to AWS, these tools automatically sign the requests for
|
||||
// you with the access key that you specify when you configure the tools.
|
||||
//
|
||||
// In this release, each organization can have only one root. In a future release,
|
||||
// a single organization will support multiple roots.
|
||||
//
|
||||
// Support and Feedback for AWS Organizations
|
||||
//
|
||||
// We welcome your feedback. Send your comments to feedback-awsorganizations@amazon.com
|
||||
// (mailto:feedback-awsorganizations@amazon.com) or post your feedback and questions
|
||||
// in the AWS Organizations support forum (http://forums.aws.amazon.com/forum.jspa?forumID=219).
|
||||
// For more information about the AWS support forums, see Forums Help (http://forums.aws.amazon.com/help.jspa).
|
||||
//
|
||||
// Endpoint to Call When Using the CLI or the AWS API
|
||||
//
|
||||
// For the current release of Organizations, you must specify the us-east-1
|
||||
// region for all AWS API and CLI calls. You can do this in the CLI by using
|
||||
// these parameters and commands:
|
||||
//
|
||||
// * Use the following parameter with each command to specify both the endpoint
|
||||
// and its region:
|
||||
//
|
||||
// --endpoint-url https://organizations.us-east-1.amazonaws.com
|
||||
//
|
||||
// * Use the default endpoint, but configure your default region with this
|
||||
// command:
|
||||
//
|
||||
// aws configure set default.region us-east-1
|
||||
//
|
||||
// * Use the following parameter with each command to specify the endpoint:
|
||||
//
|
||||
// --region us-east-1
|
||||
//
|
||||
// For the various SDKs used to call the APIs, see the documentation for the
|
||||
// SDK of interest to learn how to direct the requests to a specific endpoint.
|
||||
// For more information, see Regions and Endpoints (http://docs.aws.amazon.com/general/latest/gr/rande.html#sts_region)
|
||||
// in the AWS General Reference.
|
||||
//
|
||||
// How examples are presented
|
||||
//
|
||||
// The JSON returned by the AWS Organizations service as response to your requests
|
||||
// is returned as a single long string without line breaks or formatting whitespace.
|
||||
// Both line breaks and whitespace are included in the examples in this guide
|
||||
// to improve readability. When example input parameters also would result in
|
||||
// long strings that would extend beyond the screen, we insert line breaks to
|
||||
// enhance readability. You should always submit the input as a single JSON
|
||||
// text string.
|
||||
//
|
||||
// Recording API Requests
|
||||
//
|
||||
// AWS Organizations supports AWS CloudTrail, a service that records AWS API
|
||||
// calls for your AWS account and delivers log files to an Amazon S3 bucket.
|
||||
// By using information collected by AWS CloudTrail, you can determine which
|
||||
// requests were successfully made to Organizations, who made the request, when
|
||||
// it was made, and so on. For more about AWS Organizations and its support
|
||||
// for AWS CloudTrail, see Logging AWS Organizations Events with AWS CloudTrail
|
||||
// (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_monitoring.html#orgs_cloudtrail-integration)
|
||||
// in the AWS Organizations User Guide. To learn more about CloudTrail, including
|
||||
// how to turn it on and find your log files, see the AWS CloudTrail User Guide
|
||||
// (http://docs.aws.amazon.com/awscloudtrail/latest/userguide/what_is_cloud_trail_top_level.html).
|
||||
//
|
||||
// See https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28 for more information on this service.
|
||||
//
|
||||
// See organizations package documentation for more information.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/service/organizations/
|
||||
//
|
||||
// Using the Client
|
||||
//
|
||||
// To contact AWS Organizations with the SDK use the New function to create
|
||||
// a new service client. With that client you can make API requests to the service.
|
||||
// These clients are safe to use concurrently.
|
||||
//
|
||||
// See the SDK's documentation for more information on how to use the SDK.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/
|
||||
//
|
||||
// See aws.Config documentation for more information on configuring SDK clients.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config
|
||||
//
|
||||
// See the AWS Organizations client Organizations for more
|
||||
// information on creating client for this service.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/service/organizations/#New
|
||||
package organizations
|
||||
462
vendor/github.com/aws/aws-sdk-go/service/organizations/errors.go
generated
vendored
Normal file
462
vendor/github.com/aws/aws-sdk-go/service/organizations/errors.go
generated
vendored
Normal file
@@ -0,0 +1,462 @@
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
package organizations
|
||||
|
||||
const (
|
||||
|
||||
// ErrCodeAWSOrganizationsNotInUseException for service response error code
|
||||
// "AWSOrganizationsNotInUseException".
|
||||
//
|
||||
// Your account is not a member of an organization. To make this request, you
|
||||
// must use the credentials of an account that belongs to an organization.
|
||||
ErrCodeAWSOrganizationsNotInUseException = "AWSOrganizationsNotInUseException"
|
||||
|
||||
// ErrCodeAccessDeniedException for service response error code
|
||||
// "AccessDeniedException".
|
||||
//
|
||||
// You don't have permissions to perform the requested operation. The user or
|
||||
// role that is making the request must have at least one IAM permissions policy
|
||||
// attached that grants the required permissions. For more information, see
|
||||
// Access Management (http://docs.aws.amazon.com/IAM/latest/UserGuide/access.html)
|
||||
// in the IAM User Guide.
|
||||
ErrCodeAccessDeniedException = "AccessDeniedException"
|
||||
|
||||
// ErrCodeAccessDeniedForDependencyException for service response error code
|
||||
// "AccessDeniedForDependencyException".
|
||||
//
|
||||
// The operation you attempted requires you to have the iam:CreateServiceLinkedRole
|
||||
// so that Organizations can create the required service-linked role. You do
|
||||
// not have that permission.
|
||||
ErrCodeAccessDeniedForDependencyException = "AccessDeniedForDependencyException"
|
||||
|
||||
// ErrCodeAccountNotFoundException for service response error code
|
||||
// "AccountNotFoundException".
|
||||
//
|
||||
// We can't find an AWS account with the AccountId that you specified, or the
|
||||
// account whose credentials you used to make this request is not a member of
|
||||
// an organization.
|
||||
ErrCodeAccountNotFoundException = "AccountNotFoundException"
|
||||
|
||||
// ErrCodeAlreadyInOrganizationException for service response error code
|
||||
// "AlreadyInOrganizationException".
|
||||
//
|
||||
// This account is already a member of an organization. An account can belong
|
||||
// to only one organization at a time.
|
||||
ErrCodeAlreadyInOrganizationException = "AlreadyInOrganizationException"
|
||||
|
||||
// ErrCodeChildNotFoundException for service response error code
|
||||
// "ChildNotFoundException".
|
||||
//
|
||||
// We can't find an organizational unit (OU) or AWS account with the ChildId
|
||||
// that you specified.
|
||||
ErrCodeChildNotFoundException = "ChildNotFoundException"
|
||||
|
||||
// ErrCodeConcurrentModificationException for service response error code
|
||||
// "ConcurrentModificationException".
|
||||
//
|
||||
// The target of the operation is currently being modified by a different request.
|
||||
// Try again later.
|
||||
ErrCodeConcurrentModificationException = "ConcurrentModificationException"
|
||||
|
||||
// ErrCodeConstraintViolationException for service response error code
|
||||
// "ConstraintViolationException".
|
||||
//
|
||||
// Performing this operation violates a minimum or maximum value limit. For
|
||||
// example, attempting to removing the last SCP from an OU or root, inviting
|
||||
// or creating too many accounts to the organization, or attaching too many
|
||||
// policies to an account, OU, or root. This exception includes a reason that
|
||||
// contains additional information about the violated limit:
|
||||
//
|
||||
// Some of the reasons in the following list might not be applicable to this
|
||||
// specific API or operation:
|
||||
//
|
||||
// ACCOUNT_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the limit on the number
|
||||
// of accounts in an organization. If you need more accounts, contact AWS Support
|
||||
// to request an increase in your limit.
|
||||
//
|
||||
// Or, The number of invitations that you tried to send would cause you to exceed
|
||||
// the limit of accounts in your organization. Send fewer invitations, or contact
|
||||
// AWS Support to request an increase in the number of accounts.
|
||||
//
|
||||
// Note: deleted and closed accounts still count toward your limit.
|
||||
//
|
||||
// If you get receive this exception when running a command immediately after
|
||||
// creating the organization, wait one hour and try again. If after an hour
|
||||
// it continues to fail with this error, contact AWS Customer Support (https://console.aws.amazon.com/support/home#/).
|
||||
//
|
||||
// * HANDSHAKE_RATE_LIMIT_EXCEEDED: You attempted to exceed the number of
|
||||
// handshakes you can send in one day.
|
||||
//
|
||||
// * OU_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the number of organizational
|
||||
// units you can have in an organization.
|
||||
//
|
||||
// * OU_DEPTH_LIMIT_EXCEEDED: You attempted to create an organizational unit
|
||||
// tree that is too many levels deep.
|
||||
//
|
||||
// * ORGANIZATION_NOT_IN_ALL_FEATURES_MODE: You attempted to perform an operation
|
||||
// that requires the organization to be configured to support all features.
|
||||
// An organization that supports consolidated billing features only cannot
|
||||
// perform this operation.
|
||||
//
|
||||
// * POLICY_NUMBER_LIMIT_EXCEEDED. You attempted to exceed the number of
|
||||
// policies that you can have in an organization.
|
||||
//
|
||||
// * MAX_POLICY_TYPE_ATTACHMENT_LIMIT_EXCEEDED: You attempted to exceed the
|
||||
// number of policies of a certain type that can be attached to an entity
|
||||
// at one time.
|
||||
//
|
||||
// * MIN_POLICY_TYPE_ATTACHMENT_LIMIT_EXCEEDED: You attempted to detach a
|
||||
// policy from an entity that would cause the entity to have fewer than the
|
||||
// minimum number of policies of a certain type required.
|
||||
//
|
||||
// * ACCOUNT_CANNOT_LEAVE_WITHOUT_EULA: You attempted to remove an account
|
||||
// from the organization that does not yet have enough information to exist
|
||||
// as a stand-alone account. This account requires you to first agree to
|
||||
// the AWS Customer Agreement. Follow the steps at To leave an organization
|
||||
// when all required account information has not yet been provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info)
|
||||
// in the AWS Organizations User Guide.
|
||||
//
|
||||
// * ACCOUNT_CANNOT_LEAVE_WITHOUT_PHONE_VERIFICATION: You attempted to remove
|
||||
// an account from the organization that does not yet have enough information
|
||||
// to exist as a stand-alone account. This account requires you to first
|
||||
// complete phone verification. Follow the steps at To leave an organization
|
||||
// when all required account information has not yet been provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info)
|
||||
// in the AWS Organizations User Guide.
|
||||
//
|
||||
// * MASTER_ACCOUNT_PAYMENT_INSTRUMENT_REQUIRED: To create an organization
|
||||
// with this account, you first must associate a payment instrument, such
|
||||
// as a credit card, with the account. Follow the steps at To leave an organization
|
||||
// when all required account information has not yet been provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info)
|
||||
// in the AWS Organizations User Guide.
|
||||
//
|
||||
// * MEMBER_ACCOUNT_PAYMENT_INSTRUMENT_REQUIRED: To complete this operation
|
||||
// with this member account, you first must associate a payment instrument,
|
||||
// such as a credit card, with the account. Follow the steps at To leave
|
||||
// an organization when all required account information has not yet been
|
||||
// provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info)
|
||||
// in the AWS Organizations User Guide.
|
||||
//
|
||||
// * ACCOUNT_CREATION_RATE_LIMIT_EXCEEDED: You attempted to exceed the number
|
||||
// of accounts that you can create in one day.
|
||||
//
|
||||
// * MASTER_ACCOUNT_ADDRESS_DOES_NOT_MATCH_MARKETPLACE: To create an account
|
||||
// in this organization, you first must migrate the organization's master
|
||||
// account to the marketplace that corresponds to the master account's address.
|
||||
// For example, accounts with India addresses must be associated with the
|
||||
// AISPL marketplace. All accounts in an organization must be associated
|
||||
// with the same marketplace.
|
||||
//
|
||||
// * MASTER_ACCOUNT_MISSING_CONTACT_INFO: To complete this operation, you
|
||||
// must first provide contact a valid address and phone number for the master
|
||||
// account. Then try the operation again.
|
||||
ErrCodeConstraintViolationException = "ConstraintViolationException"
|
||||
|
||||
// ErrCodeCreateAccountStatusNotFoundException for service response error code
|
||||
// "CreateAccountStatusNotFoundException".
|
||||
//
|
||||
// We can't find an create account request with the CreateAccountRequestId that
|
||||
// you specified.
|
||||
ErrCodeCreateAccountStatusNotFoundException = "CreateAccountStatusNotFoundException"
|
||||
|
||||
// ErrCodeDestinationParentNotFoundException for service response error code
|
||||
// "DestinationParentNotFoundException".
|
||||
//
|
||||
// We can't find the destination container (a root or OU) with the ParentId
|
||||
// that you specified.
|
||||
ErrCodeDestinationParentNotFoundException = "DestinationParentNotFoundException"
|
||||
|
||||
// ErrCodeDuplicateAccountException for service response error code
|
||||
// "DuplicateAccountException".
|
||||
//
|
||||
// That account is already present in the specified destination.
|
||||
ErrCodeDuplicateAccountException = "DuplicateAccountException"
|
||||
|
||||
// ErrCodeDuplicateHandshakeException for service response error code
|
||||
// "DuplicateHandshakeException".
|
||||
//
|
||||
// A handshake with the same action and target already exists. For example,
|
||||
// if you invited an account to join your organization, the invited account
|
||||
// might already have a pending invitation from this organization. If you intend
|
||||
// to resend an invitation to an account, ensure that existing handshakes that
|
||||
// might be considered duplicates are canceled or declined.
|
||||
ErrCodeDuplicateHandshakeException = "DuplicateHandshakeException"
|
||||
|
||||
// ErrCodeDuplicateOrganizationalUnitException for service response error code
|
||||
// "DuplicateOrganizationalUnitException".
|
||||
//
|
||||
// An organizational unit (OU) with the same name already exists.
|
||||
ErrCodeDuplicateOrganizationalUnitException = "DuplicateOrganizationalUnitException"
|
||||
|
||||
// ErrCodeDuplicatePolicyAttachmentException for service response error code
|
||||
// "DuplicatePolicyAttachmentException".
|
||||
//
|
||||
// The selected policy is already attached to the specified target.
|
||||
ErrCodeDuplicatePolicyAttachmentException = "DuplicatePolicyAttachmentException"
|
||||
|
||||
// ErrCodeDuplicatePolicyException for service response error code
|
||||
// "DuplicatePolicyException".
|
||||
//
|
||||
// A policy with the same name already exists.
|
||||
ErrCodeDuplicatePolicyException = "DuplicatePolicyException"
|
||||
|
||||
// ErrCodeFinalizingOrganizationException for service response error code
|
||||
// "FinalizingOrganizationException".
|
||||
//
|
||||
// AWS Organizations could not perform the operation because your organization
|
||||
// has not finished initializing. This can take up to an hour. Try again later.
|
||||
// If after one hour you continue to receive this error, contact AWS Customer
|
||||
// Support (https://console.aws.amazon.com/support/home#/).
|
||||
ErrCodeFinalizingOrganizationException = "FinalizingOrganizationException"
|
||||
|
||||
// ErrCodeHandshakeAlreadyInStateException for service response error code
|
||||
// "HandshakeAlreadyInStateException".
|
||||
//
|
||||
// The specified handshake is already in the requested state. For example, you
|
||||
// can't accept a handshake that was already accepted.
|
||||
ErrCodeHandshakeAlreadyInStateException = "HandshakeAlreadyInStateException"
|
||||
|
||||
// ErrCodeHandshakeConstraintViolationException for service response error code
|
||||
// "HandshakeConstraintViolationException".
|
||||
//
|
||||
// The requested operation would violate the constraint identified in the reason
|
||||
// code.
|
||||
//
|
||||
// Some of the reasons in the following list might not be applicable to this
|
||||
// specific API or operation:
|
||||
//
|
||||
// * ACCOUNT_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the limit on
|
||||
// the number of accounts in an organization. Note: deleted and closed accounts
|
||||
// still count toward your limit.
|
||||
//
|
||||
// If you get this exception immediately after creating the organization, wait
|
||||
// one hour and try again. If after an hour it continues to fail with this
|
||||
// error, contact AWS Customer Support (https://console.aws.amazon.com/support/home#/).
|
||||
//
|
||||
// * HANDSHAKE_RATE_LIMIT_EXCEEDED: You attempted to exceed the number of
|
||||
// handshakes you can send in one day.
|
||||
//
|
||||
// * ALREADY_IN_AN_ORGANIZATION: The handshake request is invalid because
|
||||
// the invited account is already a member of an organization.
|
||||
//
|
||||
// * ORGANIZATION_ALREADY_HAS_ALL_FEATURES: The handshake request is invalid
|
||||
// because the organization has already enabled all features.
|
||||
//
|
||||
// * INVITE_DISABLED_DURING_ENABLE_ALL_FEATURES: You cannot issue new invitations
|
||||
// to join an organization while it is in the process of enabling all features.
|
||||
// You can resume inviting accounts after you finalize the process when all
|
||||
// accounts have agreed to the change.
|
||||
//
|
||||
// * PAYMENT_INSTRUMENT_REQUIRED: You cannot complete the operation with
|
||||
// an account that does not have a payment instrument, such as a credit card,
|
||||
// associated with it.
|
||||
//
|
||||
// * ORGANIZATION_FROM_DIFFERENT_SELLER_OF_RECORD: The request failed because
|
||||
// the account is from a different marketplace than the accounts in the organization.
|
||||
// For example, accounts with India addresses must be associated with the
|
||||
// AISPL marketplace. All accounts in an organization must be from the same
|
||||
// marketplace.
|
||||
//
|
||||
// * ORGANIZATION_MEMBERSHIP_CHANGE_RATE_LIMIT_EXCEEDED: You attempted to
|
||||
// change the membership of an account too quickly after its previous change.
|
||||
ErrCodeHandshakeConstraintViolationException = "HandshakeConstraintViolationException"
|
||||
|
||||
// ErrCodeHandshakeNotFoundException for service response error code
|
||||
// "HandshakeNotFoundException".
|
||||
//
|
||||
// We can't find a handshake with the HandshakeId that you specified.
|
||||
ErrCodeHandshakeNotFoundException = "HandshakeNotFoundException"
|
||||
|
||||
// ErrCodeInvalidHandshakeTransitionException for service response error code
|
||||
// "InvalidHandshakeTransitionException".
|
||||
//
|
||||
// You can't perform the operation on the handshake in its current state. For
|
||||
// example, you can't cancel a handshake that was already accepted, or accept
|
||||
// a handshake that was already declined.
|
||||
ErrCodeInvalidHandshakeTransitionException = "InvalidHandshakeTransitionException"
|
||||
|
||||
// ErrCodeInvalidInputException for service response error code
|
||||
// "InvalidInputException".
|
||||
//
|
||||
// The requested operation failed because you provided invalid values for one
|
||||
// or more of the request parameters. This exception includes a reason that
|
||||
// contains additional information about the violated limit:
|
||||
//
|
||||
// Some of the reasons in the following list might not be applicable to this
|
||||
// specific API or operation:
|
||||
//
|
||||
// * IMMUTABLE_POLICY: You specified a policy that is managed by AWS and
|
||||
// cannot be modified.
|
||||
//
|
||||
// * INPUT_REQUIRED: You must include a value for all required parameters.
|
||||
//
|
||||
// * INVALID_ENUM: You specified a value that is not valid for that parameter.
|
||||
//
|
||||
// * INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid
|
||||
// characters.
|
||||
//
|
||||
// * INVALID_LIST_MEMBER: You provided a list to a parameter that contains
|
||||
// at least one invalid value.
|
||||
//
|
||||
// * INVALID_PARTY_TYPE_TARGET: You specified the wrong type of entity (account,
|
||||
// organization, or email) as a party.
|
||||
//
|
||||
// * INVALID_PAGINATION_TOKEN: Get the value for the NextToken parameter
|
||||
// from the response to a previous call of the operation.
|
||||
//
|
||||
// * INVALID_PATTERN: You provided a value that doesn't match the required
|
||||
// pattern.
|
||||
//
|
||||
// * INVALID_PATTERN_TARGET_ID: You specified a policy target ID that doesn't
|
||||
// match the required pattern.
|
||||
//
|
||||
// * INVALID_ROLE_NAME: You provided a role name that is not valid. A role
|
||||
// name can’t begin with the reserved prefix 'AWSServiceRoleFor'.
|
||||
//
|
||||
// * INVALID_SYNTAX_ORGANIZATION_ARN: You specified an invalid ARN for the
|
||||
// organization.
|
||||
//
|
||||
// * INVALID_SYNTAX_POLICY_ID: You specified an invalid policy ID.
|
||||
//
|
||||
// * MAX_FILTER_LIMIT_EXCEEDED: You can specify only one filter parameter
|
||||
// for the operation.
|
||||
//
|
||||
// * MAX_LENGTH_EXCEEDED: You provided a string parameter that is longer
|
||||
// than allowed.
|
||||
//
|
||||
// * MAX_VALUE_EXCEEDED: You provided a numeric parameter that has a larger
|
||||
// value than allowed.
|
||||
//
|
||||
// * MIN_LENGTH_EXCEEDED: You provided a string parameter that is shorter
|
||||
// than allowed.
|
||||
//
|
||||
// * MIN_VALUE_EXCEEDED: You provided a numeric parameter that has a smaller
|
||||
// value than allowed.
|
||||
//
|
||||
// * MOVING_ACCOUNT_BETWEEN_DIFFERENT_ROOTS: You can move an account only
|
||||
// between entities in the same root.
|
||||
ErrCodeInvalidInputException = "InvalidInputException"
|
||||
|
||||
// ErrCodeMalformedPolicyDocumentException for service response error code
|
||||
// "MalformedPolicyDocumentException".
|
||||
//
|
||||
// The provided policy document does not meet the requirements of the specified
|
||||
// policy type. For example, the syntax might be incorrect. For details about
|
||||
// service control policy syntax, see Service Control Policy Syntax (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_reference_scp-syntax.html)
|
||||
// in the AWS Organizations User Guide.
|
||||
ErrCodeMalformedPolicyDocumentException = "MalformedPolicyDocumentException"
|
||||
|
||||
// ErrCodeMasterCannotLeaveOrganizationException for service response error code
|
||||
// "MasterCannotLeaveOrganizationException".
|
||||
//
|
||||
// You can't remove a master account from an organization. If you want the master
|
||||
// account to become a member account in another organization, you must first
|
||||
// delete the current organization of the master account.
|
||||
ErrCodeMasterCannotLeaveOrganizationException = "MasterCannotLeaveOrganizationException"
|
||||
|
||||
// ErrCodeOrganizationNotEmptyException for service response error code
|
||||
// "OrganizationNotEmptyException".
|
||||
//
|
||||
// The organization isn't empty. To delete an organization, you must first remove
|
||||
// all accounts except the master account, delete all organizational units (OUs),
|
||||
// and delete all policies.
|
||||
ErrCodeOrganizationNotEmptyException = "OrganizationNotEmptyException"
|
||||
|
||||
// ErrCodeOrganizationalUnitNotEmptyException for service response error code
|
||||
// "OrganizationalUnitNotEmptyException".
|
||||
//
|
||||
// The specified organizational unit (OU) is not empty. Move all accounts to
|
||||
// another root or to other OUs, remove all child OUs, and then try the operation
|
||||
// again.
|
||||
ErrCodeOrganizationalUnitNotEmptyException = "OrganizationalUnitNotEmptyException"
|
||||
|
||||
// ErrCodeOrganizationalUnitNotFoundException for service response error code
|
||||
// "OrganizationalUnitNotFoundException".
|
||||
//
|
||||
// We can't find an organizational unit (OU) with the OrganizationalUnitId that
|
||||
// you specified.
|
||||
ErrCodeOrganizationalUnitNotFoundException = "OrganizationalUnitNotFoundException"
|
||||
|
||||
// ErrCodeParentNotFoundException for service response error code
|
||||
// "ParentNotFoundException".
|
||||
//
|
||||
// We can't find a root or organizational unit (OU) with the ParentId that you
|
||||
// specified.
|
||||
ErrCodeParentNotFoundException = "ParentNotFoundException"
|
||||
|
||||
// ErrCodePolicyInUseException for service response error code
|
||||
// "PolicyInUseException".
|
||||
//
|
||||
// The policy is attached to one or more entities. You must detach it from all
|
||||
// roots, organizational units (OUs), and accounts before performing this operation.
|
||||
ErrCodePolicyInUseException = "PolicyInUseException"
|
||||
|
||||
// ErrCodePolicyNotAttachedException for service response error code
|
||||
// "PolicyNotAttachedException".
|
||||
//
|
||||
// The policy isn't attached to the specified target in the specified root.
|
||||
ErrCodePolicyNotAttachedException = "PolicyNotAttachedException"
|
||||
|
||||
// ErrCodePolicyNotFoundException for service response error code
|
||||
// "PolicyNotFoundException".
|
||||
//
|
||||
// We can't find a policy with the PolicyId that you specified.
|
||||
ErrCodePolicyNotFoundException = "PolicyNotFoundException"
|
||||
|
||||
// ErrCodePolicyTypeAlreadyEnabledException for service response error code
|
||||
// "PolicyTypeAlreadyEnabledException".
|
||||
//
|
||||
// The specified policy type is already enabled in the specified root.
|
||||
ErrCodePolicyTypeAlreadyEnabledException = "PolicyTypeAlreadyEnabledException"
|
||||
|
||||
// ErrCodePolicyTypeNotAvailableForOrganizationException for service response error code
|
||||
// "PolicyTypeNotAvailableForOrganizationException".
|
||||
//
|
||||
// You can't use the specified policy type with the feature set currently enabled
|
||||
// for this organization. For example, you can enable service control policies
|
||||
// (SCPs) only after you enable all features in the organization. For more information,
|
||||
// see Enabling and Disabling a Policy Type on a Root (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies.html#enable_policies_on_root)
|
||||
// in the AWS Organizations User Guide.
|
||||
ErrCodePolicyTypeNotAvailableForOrganizationException = "PolicyTypeNotAvailableForOrganizationException"
|
||||
|
||||
// ErrCodePolicyTypeNotEnabledException for service response error code
|
||||
// "PolicyTypeNotEnabledException".
|
||||
//
|
||||
// The specified policy type is not currently enabled in this root. You cannot
|
||||
// attach policies of the specified type to entities in a root until you enable
|
||||
// that type in the root. For more information, see Enabling All Features in
|
||||
// Your Organization (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html)
|
||||
// in the AWS Organizations User Guide.
|
||||
ErrCodePolicyTypeNotEnabledException = "PolicyTypeNotEnabledException"
|
||||
|
||||
// ErrCodeRootNotFoundException for service response error code
|
||||
// "RootNotFoundException".
|
||||
//
|
||||
// We can't find a root with the RootId that you specified.
|
||||
ErrCodeRootNotFoundException = "RootNotFoundException"
|
||||
|
||||
// ErrCodeServiceException for service response error code
|
||||
// "ServiceException".
|
||||
//
|
||||
// AWS Organizations can't complete your request because of an internal service
|
||||
// error. Try again later.
|
||||
ErrCodeServiceException = "ServiceException"
|
||||
|
||||
// ErrCodeSourceParentNotFoundException for service response error code
|
||||
// "SourceParentNotFoundException".
|
||||
//
|
||||
// We can't find a source root or OU with the ParentId that you specified.
|
||||
ErrCodeSourceParentNotFoundException = "SourceParentNotFoundException"
|
||||
|
||||
// ErrCodeTargetNotFoundException for service response error code
|
||||
// "TargetNotFoundException".
|
||||
//
|
||||
// We can't find a root, OU, or account with the TargetId that you specified.
|
||||
ErrCodeTargetNotFoundException = "TargetNotFoundException"
|
||||
|
||||
// ErrCodeTooManyRequestsException for service response error code
|
||||
// "TooManyRequestsException".
|
||||
//
|
||||
// You've sent too many requests in too short a period of time. The limit helps
|
||||
// protect against denial-of-service attacks. Try again later.
|
||||
ErrCodeTooManyRequestsException = "TooManyRequestsException"
|
||||
)
|
||||
1864
vendor/github.com/aws/aws-sdk-go/service/organizations/examples_test.go
generated
vendored
Normal file
1864
vendor/github.com/aws/aws-sdk-go/service/organizations/examples_test.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
271
vendor/github.com/aws/aws-sdk-go/service/organizations/organizationsiface/interface.go
generated
vendored
Normal file
271
vendor/github.com/aws/aws-sdk-go/service/organizations/organizationsiface/interface.go
generated
vendored
Normal file
@@ -0,0 +1,271 @@
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
// Package organizationsiface provides an interface to enable mocking the AWS Organizations service client
|
||||
// for testing your code.
|
||||
//
|
||||
// It is important to note that this interface will have breaking changes
|
||||
// when the service model is updated and adds new API operations, paginators,
|
||||
// and waiters.
|
||||
package organizationsiface
|
||||
|
||||
import (
|
||||
"github.com/aws/aws-sdk-go/aws"
|
||||
"github.com/aws/aws-sdk-go/aws/request"
|
||||
"github.com/aws/aws-sdk-go/service/organizations"
|
||||
)
|
||||
|
||||
// OrganizationsAPI provides an interface to enable mocking the
|
||||
// organizations.Organizations service client's API operation,
|
||||
// paginators, and waiters. This make unit testing your code that calls out
|
||||
// to the SDK's service client's calls easier.
|
||||
//
|
||||
// The best way to use this interface is so the SDK's service client's calls
|
||||
// can be stubbed out for unit testing your code with the SDK without needing
|
||||
// to inject custom request handlers into the SDK's request pipeline.
|
||||
//
|
||||
// // myFunc uses an SDK service client to make a request to
|
||||
// // AWS Organizations.
|
||||
// func myFunc(svc organizationsiface.OrganizationsAPI) bool {
|
||||
// // Make svc.AcceptHandshake request
|
||||
// }
|
||||
//
|
||||
// func main() {
|
||||
// sess := session.New()
|
||||
// svc := organizations.New(sess)
|
||||
//
|
||||
// myFunc(svc)
|
||||
// }
|
||||
//
|
||||
// In your _test.go file:
|
||||
//
|
||||
// // Define a mock struct to be used in your unit tests of myFunc.
|
||||
// type mockOrganizationsClient struct {
|
||||
// organizationsiface.OrganizationsAPI
|
||||
// }
|
||||
// func (m *mockOrganizationsClient) AcceptHandshake(input *organizations.AcceptHandshakeInput) (*organizations.AcceptHandshakeOutput, error) {
|
||||
// // mock response/functionality
|
||||
// }
|
||||
//
|
||||
// func TestMyFunc(t *testing.T) {
|
||||
// // Setup Test
|
||||
// mockSvc := &mockOrganizationsClient{}
|
||||
//
|
||||
// myfunc(mockSvc)
|
||||
//
|
||||
// // Verify myFunc's functionality
|
||||
// }
|
||||
//
|
||||
// It is important to note that this interface will have breaking changes
|
||||
// when the service model is updated and adds new API operations, paginators,
|
||||
// and waiters. Its suggested to use the pattern above for testing, or using
|
||||
// tooling to generate mocks to satisfy the interfaces.
|
||||
type OrganizationsAPI interface {
|
||||
AcceptHandshake(*organizations.AcceptHandshakeInput) (*organizations.AcceptHandshakeOutput, error)
|
||||
AcceptHandshakeWithContext(aws.Context, *organizations.AcceptHandshakeInput, ...request.Option) (*organizations.AcceptHandshakeOutput, error)
|
||||
AcceptHandshakeRequest(*organizations.AcceptHandshakeInput) (*request.Request, *organizations.AcceptHandshakeOutput)
|
||||
|
||||
AttachPolicy(*organizations.AttachPolicyInput) (*organizations.AttachPolicyOutput, error)
|
||||
AttachPolicyWithContext(aws.Context, *organizations.AttachPolicyInput, ...request.Option) (*organizations.AttachPolicyOutput, error)
|
||||
AttachPolicyRequest(*organizations.AttachPolicyInput) (*request.Request, *organizations.AttachPolicyOutput)
|
||||
|
||||
CancelHandshake(*organizations.CancelHandshakeInput) (*organizations.CancelHandshakeOutput, error)
|
||||
CancelHandshakeWithContext(aws.Context, *organizations.CancelHandshakeInput, ...request.Option) (*organizations.CancelHandshakeOutput, error)
|
||||
CancelHandshakeRequest(*organizations.CancelHandshakeInput) (*request.Request, *organizations.CancelHandshakeOutput)
|
||||
|
||||
CreateAccount(*organizations.CreateAccountInput) (*organizations.CreateAccountOutput, error)
|
||||
CreateAccountWithContext(aws.Context, *organizations.CreateAccountInput, ...request.Option) (*organizations.CreateAccountOutput, error)
|
||||
CreateAccountRequest(*organizations.CreateAccountInput) (*request.Request, *organizations.CreateAccountOutput)
|
||||
|
||||
CreateOrganization(*organizations.CreateOrganizationInput) (*organizations.CreateOrganizationOutput, error)
|
||||
CreateOrganizationWithContext(aws.Context, *organizations.CreateOrganizationInput, ...request.Option) (*organizations.CreateOrganizationOutput, error)
|
||||
CreateOrganizationRequest(*organizations.CreateOrganizationInput) (*request.Request, *organizations.CreateOrganizationOutput)
|
||||
|
||||
CreateOrganizationalUnit(*organizations.CreateOrganizationalUnitInput) (*organizations.CreateOrganizationalUnitOutput, error)
|
||||
CreateOrganizationalUnitWithContext(aws.Context, *organizations.CreateOrganizationalUnitInput, ...request.Option) (*organizations.CreateOrganizationalUnitOutput, error)
|
||||
CreateOrganizationalUnitRequest(*organizations.CreateOrganizationalUnitInput) (*request.Request, *organizations.CreateOrganizationalUnitOutput)
|
||||
|
||||
CreatePolicy(*organizations.CreatePolicyInput) (*organizations.CreatePolicyOutput, error)
|
||||
CreatePolicyWithContext(aws.Context, *organizations.CreatePolicyInput, ...request.Option) (*organizations.CreatePolicyOutput, error)
|
||||
CreatePolicyRequest(*organizations.CreatePolicyInput) (*request.Request, *organizations.CreatePolicyOutput)
|
||||
|
||||
DeclineHandshake(*organizations.DeclineHandshakeInput) (*organizations.DeclineHandshakeOutput, error)
|
||||
DeclineHandshakeWithContext(aws.Context, *organizations.DeclineHandshakeInput, ...request.Option) (*organizations.DeclineHandshakeOutput, error)
|
||||
DeclineHandshakeRequest(*organizations.DeclineHandshakeInput) (*request.Request, *organizations.DeclineHandshakeOutput)
|
||||
|
||||
DeleteOrganization(*organizations.DeleteOrganizationInput) (*organizations.DeleteOrganizationOutput, error)
|
||||
DeleteOrganizationWithContext(aws.Context, *organizations.DeleteOrganizationInput, ...request.Option) (*organizations.DeleteOrganizationOutput, error)
|
||||
DeleteOrganizationRequest(*organizations.DeleteOrganizationInput) (*request.Request, *organizations.DeleteOrganizationOutput)
|
||||
|
||||
DeleteOrganizationalUnit(*organizations.DeleteOrganizationalUnitInput) (*organizations.DeleteOrganizationalUnitOutput, error)
|
||||
DeleteOrganizationalUnitWithContext(aws.Context, *organizations.DeleteOrganizationalUnitInput, ...request.Option) (*organizations.DeleteOrganizationalUnitOutput, error)
|
||||
DeleteOrganizationalUnitRequest(*organizations.DeleteOrganizationalUnitInput) (*request.Request, *organizations.DeleteOrganizationalUnitOutput)
|
||||
|
||||
DeletePolicy(*organizations.DeletePolicyInput) (*organizations.DeletePolicyOutput, error)
|
||||
DeletePolicyWithContext(aws.Context, *organizations.DeletePolicyInput, ...request.Option) (*organizations.DeletePolicyOutput, error)
|
||||
DeletePolicyRequest(*organizations.DeletePolicyInput) (*request.Request, *organizations.DeletePolicyOutput)
|
||||
|
||||
DescribeAccount(*organizations.DescribeAccountInput) (*organizations.DescribeAccountOutput, error)
|
||||
DescribeAccountWithContext(aws.Context, *organizations.DescribeAccountInput, ...request.Option) (*organizations.DescribeAccountOutput, error)
|
||||
DescribeAccountRequest(*organizations.DescribeAccountInput) (*request.Request, *organizations.DescribeAccountOutput)
|
||||
|
||||
DescribeCreateAccountStatus(*organizations.DescribeCreateAccountStatusInput) (*organizations.DescribeCreateAccountStatusOutput, error)
|
||||
DescribeCreateAccountStatusWithContext(aws.Context, *organizations.DescribeCreateAccountStatusInput, ...request.Option) (*organizations.DescribeCreateAccountStatusOutput, error)
|
||||
DescribeCreateAccountStatusRequest(*organizations.DescribeCreateAccountStatusInput) (*request.Request, *organizations.DescribeCreateAccountStatusOutput)
|
||||
|
||||
DescribeHandshake(*organizations.DescribeHandshakeInput) (*organizations.DescribeHandshakeOutput, error)
|
||||
DescribeHandshakeWithContext(aws.Context, *organizations.DescribeHandshakeInput, ...request.Option) (*organizations.DescribeHandshakeOutput, error)
|
||||
DescribeHandshakeRequest(*organizations.DescribeHandshakeInput) (*request.Request, *organizations.DescribeHandshakeOutput)
|
||||
|
||||
DescribeOrganization(*organizations.DescribeOrganizationInput) (*organizations.DescribeOrganizationOutput, error)
|
||||
DescribeOrganizationWithContext(aws.Context, *organizations.DescribeOrganizationInput, ...request.Option) (*organizations.DescribeOrganizationOutput, error)
|
||||
DescribeOrganizationRequest(*organizations.DescribeOrganizationInput) (*request.Request, *organizations.DescribeOrganizationOutput)
|
||||
|
||||
DescribeOrganizationalUnit(*organizations.DescribeOrganizationalUnitInput) (*organizations.DescribeOrganizationalUnitOutput, error)
|
||||
DescribeOrganizationalUnitWithContext(aws.Context, *organizations.DescribeOrganizationalUnitInput, ...request.Option) (*organizations.DescribeOrganizationalUnitOutput, error)
|
||||
DescribeOrganizationalUnitRequest(*organizations.DescribeOrganizationalUnitInput) (*request.Request, *organizations.DescribeOrganizationalUnitOutput)
|
||||
|
||||
DescribePolicy(*organizations.DescribePolicyInput) (*organizations.DescribePolicyOutput, error)
|
||||
DescribePolicyWithContext(aws.Context, *organizations.DescribePolicyInput, ...request.Option) (*organizations.DescribePolicyOutput, error)
|
||||
DescribePolicyRequest(*organizations.DescribePolicyInput) (*request.Request, *organizations.DescribePolicyOutput)
|
||||
|
||||
DetachPolicy(*organizations.DetachPolicyInput) (*organizations.DetachPolicyOutput, error)
|
||||
DetachPolicyWithContext(aws.Context, *organizations.DetachPolicyInput, ...request.Option) (*organizations.DetachPolicyOutput, error)
|
||||
DetachPolicyRequest(*organizations.DetachPolicyInput) (*request.Request, *organizations.DetachPolicyOutput)
|
||||
|
||||
DisableAWSServiceAccess(*organizations.DisableAWSServiceAccessInput) (*organizations.DisableAWSServiceAccessOutput, error)
|
||||
DisableAWSServiceAccessWithContext(aws.Context, *organizations.DisableAWSServiceAccessInput, ...request.Option) (*organizations.DisableAWSServiceAccessOutput, error)
|
||||
DisableAWSServiceAccessRequest(*organizations.DisableAWSServiceAccessInput) (*request.Request, *organizations.DisableAWSServiceAccessOutput)
|
||||
|
||||
DisablePolicyType(*organizations.DisablePolicyTypeInput) (*organizations.DisablePolicyTypeOutput, error)
|
||||
DisablePolicyTypeWithContext(aws.Context, *organizations.DisablePolicyTypeInput, ...request.Option) (*organizations.DisablePolicyTypeOutput, error)
|
||||
DisablePolicyTypeRequest(*organizations.DisablePolicyTypeInput) (*request.Request, *organizations.DisablePolicyTypeOutput)
|
||||
|
||||
EnableAWSServiceAccess(*organizations.EnableAWSServiceAccessInput) (*organizations.EnableAWSServiceAccessOutput, error)
|
||||
EnableAWSServiceAccessWithContext(aws.Context, *organizations.EnableAWSServiceAccessInput, ...request.Option) (*organizations.EnableAWSServiceAccessOutput, error)
|
||||
EnableAWSServiceAccessRequest(*organizations.EnableAWSServiceAccessInput) (*request.Request, *organizations.EnableAWSServiceAccessOutput)
|
||||
|
||||
EnableAllFeatures(*organizations.EnableAllFeaturesInput) (*organizations.EnableAllFeaturesOutput, error)
|
||||
EnableAllFeaturesWithContext(aws.Context, *organizations.EnableAllFeaturesInput, ...request.Option) (*organizations.EnableAllFeaturesOutput, error)
|
||||
EnableAllFeaturesRequest(*organizations.EnableAllFeaturesInput) (*request.Request, *organizations.EnableAllFeaturesOutput)
|
||||
|
||||
EnablePolicyType(*organizations.EnablePolicyTypeInput) (*organizations.EnablePolicyTypeOutput, error)
|
||||
EnablePolicyTypeWithContext(aws.Context, *organizations.EnablePolicyTypeInput, ...request.Option) (*organizations.EnablePolicyTypeOutput, error)
|
||||
EnablePolicyTypeRequest(*organizations.EnablePolicyTypeInput) (*request.Request, *organizations.EnablePolicyTypeOutput)
|
||||
|
||||
InviteAccountToOrganization(*organizations.InviteAccountToOrganizationInput) (*organizations.InviteAccountToOrganizationOutput, error)
|
||||
InviteAccountToOrganizationWithContext(aws.Context, *organizations.InviteAccountToOrganizationInput, ...request.Option) (*organizations.InviteAccountToOrganizationOutput, error)
|
||||
InviteAccountToOrganizationRequest(*organizations.InviteAccountToOrganizationInput) (*request.Request, *organizations.InviteAccountToOrganizationOutput)
|
||||
|
||||
LeaveOrganization(*organizations.LeaveOrganizationInput) (*organizations.LeaveOrganizationOutput, error)
|
||||
LeaveOrganizationWithContext(aws.Context, *organizations.LeaveOrganizationInput, ...request.Option) (*organizations.LeaveOrganizationOutput, error)
|
||||
LeaveOrganizationRequest(*organizations.LeaveOrganizationInput) (*request.Request, *organizations.LeaveOrganizationOutput)
|
||||
|
||||
ListAWSServiceAccessForOrganization(*organizations.ListAWSServiceAccessForOrganizationInput) (*organizations.ListAWSServiceAccessForOrganizationOutput, error)
|
||||
ListAWSServiceAccessForOrganizationWithContext(aws.Context, *organizations.ListAWSServiceAccessForOrganizationInput, ...request.Option) (*organizations.ListAWSServiceAccessForOrganizationOutput, error)
|
||||
ListAWSServiceAccessForOrganizationRequest(*organizations.ListAWSServiceAccessForOrganizationInput) (*request.Request, *organizations.ListAWSServiceAccessForOrganizationOutput)
|
||||
|
||||
ListAWSServiceAccessForOrganizationPages(*organizations.ListAWSServiceAccessForOrganizationInput, func(*organizations.ListAWSServiceAccessForOrganizationOutput, bool) bool) error
|
||||
ListAWSServiceAccessForOrganizationPagesWithContext(aws.Context, *organizations.ListAWSServiceAccessForOrganizationInput, func(*organizations.ListAWSServiceAccessForOrganizationOutput, bool) bool, ...request.Option) error
|
||||
|
||||
ListAccounts(*organizations.ListAccountsInput) (*organizations.ListAccountsOutput, error)
|
||||
ListAccountsWithContext(aws.Context, *organizations.ListAccountsInput, ...request.Option) (*organizations.ListAccountsOutput, error)
|
||||
ListAccountsRequest(*organizations.ListAccountsInput) (*request.Request, *organizations.ListAccountsOutput)
|
||||
|
||||
ListAccountsPages(*organizations.ListAccountsInput, func(*organizations.ListAccountsOutput, bool) bool) error
|
||||
ListAccountsPagesWithContext(aws.Context, *organizations.ListAccountsInput, func(*organizations.ListAccountsOutput, bool) bool, ...request.Option) error
|
||||
|
||||
ListAccountsForParent(*organizations.ListAccountsForParentInput) (*organizations.ListAccountsForParentOutput, error)
|
||||
ListAccountsForParentWithContext(aws.Context, *organizations.ListAccountsForParentInput, ...request.Option) (*organizations.ListAccountsForParentOutput, error)
|
||||
ListAccountsForParentRequest(*organizations.ListAccountsForParentInput) (*request.Request, *organizations.ListAccountsForParentOutput)
|
||||
|
||||
ListAccountsForParentPages(*organizations.ListAccountsForParentInput, func(*organizations.ListAccountsForParentOutput, bool) bool) error
|
||||
ListAccountsForParentPagesWithContext(aws.Context, *organizations.ListAccountsForParentInput, func(*organizations.ListAccountsForParentOutput, bool) bool, ...request.Option) error
|
||||
|
||||
ListChildren(*organizations.ListChildrenInput) (*organizations.ListChildrenOutput, error)
|
||||
ListChildrenWithContext(aws.Context, *organizations.ListChildrenInput, ...request.Option) (*organizations.ListChildrenOutput, error)
|
||||
ListChildrenRequest(*organizations.ListChildrenInput) (*request.Request, *organizations.ListChildrenOutput)
|
||||
|
||||
ListChildrenPages(*organizations.ListChildrenInput, func(*organizations.ListChildrenOutput, bool) bool) error
|
||||
ListChildrenPagesWithContext(aws.Context, *organizations.ListChildrenInput, func(*organizations.ListChildrenOutput, bool) bool, ...request.Option) error
|
||||
|
||||
ListCreateAccountStatus(*organizations.ListCreateAccountStatusInput) (*organizations.ListCreateAccountStatusOutput, error)
|
||||
ListCreateAccountStatusWithContext(aws.Context, *organizations.ListCreateAccountStatusInput, ...request.Option) (*organizations.ListCreateAccountStatusOutput, error)
|
||||
ListCreateAccountStatusRequest(*organizations.ListCreateAccountStatusInput) (*request.Request, *organizations.ListCreateAccountStatusOutput)
|
||||
|
||||
ListCreateAccountStatusPages(*organizations.ListCreateAccountStatusInput, func(*organizations.ListCreateAccountStatusOutput, bool) bool) error
|
||||
ListCreateAccountStatusPagesWithContext(aws.Context, *organizations.ListCreateAccountStatusInput, func(*organizations.ListCreateAccountStatusOutput, bool) bool, ...request.Option) error
|
||||
|
||||
ListHandshakesForAccount(*organizations.ListHandshakesForAccountInput) (*organizations.ListHandshakesForAccountOutput, error)
|
||||
ListHandshakesForAccountWithContext(aws.Context, *organizations.ListHandshakesForAccountInput, ...request.Option) (*organizations.ListHandshakesForAccountOutput, error)
|
||||
ListHandshakesForAccountRequest(*organizations.ListHandshakesForAccountInput) (*request.Request, *organizations.ListHandshakesForAccountOutput)
|
||||
|
||||
ListHandshakesForAccountPages(*organizations.ListHandshakesForAccountInput, func(*organizations.ListHandshakesForAccountOutput, bool) bool) error
|
||||
ListHandshakesForAccountPagesWithContext(aws.Context, *organizations.ListHandshakesForAccountInput, func(*organizations.ListHandshakesForAccountOutput, bool) bool, ...request.Option) error
|
||||
|
||||
ListHandshakesForOrganization(*organizations.ListHandshakesForOrganizationInput) (*organizations.ListHandshakesForOrganizationOutput, error)
|
||||
ListHandshakesForOrganizationWithContext(aws.Context, *organizations.ListHandshakesForOrganizationInput, ...request.Option) (*organizations.ListHandshakesForOrganizationOutput, error)
|
||||
ListHandshakesForOrganizationRequest(*organizations.ListHandshakesForOrganizationInput) (*request.Request, *organizations.ListHandshakesForOrganizationOutput)
|
||||
|
||||
ListHandshakesForOrganizationPages(*organizations.ListHandshakesForOrganizationInput, func(*organizations.ListHandshakesForOrganizationOutput, bool) bool) error
|
||||
ListHandshakesForOrganizationPagesWithContext(aws.Context, *organizations.ListHandshakesForOrganizationInput, func(*organizations.ListHandshakesForOrganizationOutput, bool) bool, ...request.Option) error
|
||||
|
||||
ListOrganizationalUnitsForParent(*organizations.ListOrganizationalUnitsForParentInput) (*organizations.ListOrganizationalUnitsForParentOutput, error)
|
||||
ListOrganizationalUnitsForParentWithContext(aws.Context, *organizations.ListOrganizationalUnitsForParentInput, ...request.Option) (*organizations.ListOrganizationalUnitsForParentOutput, error)
|
||||
ListOrganizationalUnitsForParentRequest(*organizations.ListOrganizationalUnitsForParentInput) (*request.Request, *organizations.ListOrganizationalUnitsForParentOutput)
|
||||
|
||||
ListOrganizationalUnitsForParentPages(*organizations.ListOrganizationalUnitsForParentInput, func(*organizations.ListOrganizationalUnitsForParentOutput, bool) bool) error
|
||||
ListOrganizationalUnitsForParentPagesWithContext(aws.Context, *organizations.ListOrganizationalUnitsForParentInput, func(*organizations.ListOrganizationalUnitsForParentOutput, bool) bool, ...request.Option) error
|
||||
|
||||
ListParents(*organizations.ListParentsInput) (*organizations.ListParentsOutput, error)
|
||||
ListParentsWithContext(aws.Context, *organizations.ListParentsInput, ...request.Option) (*organizations.ListParentsOutput, error)
|
||||
ListParentsRequest(*organizations.ListParentsInput) (*request.Request, *organizations.ListParentsOutput)
|
||||
|
||||
ListParentsPages(*organizations.ListParentsInput, func(*organizations.ListParentsOutput, bool) bool) error
|
||||
ListParentsPagesWithContext(aws.Context, *organizations.ListParentsInput, func(*organizations.ListParentsOutput, bool) bool, ...request.Option) error
|
||||
|
||||
ListPolicies(*organizations.ListPoliciesInput) (*organizations.ListPoliciesOutput, error)
|
||||
ListPoliciesWithContext(aws.Context, *organizations.ListPoliciesInput, ...request.Option) (*organizations.ListPoliciesOutput, error)
|
||||
ListPoliciesRequest(*organizations.ListPoliciesInput) (*request.Request, *organizations.ListPoliciesOutput)
|
||||
|
||||
ListPoliciesPages(*organizations.ListPoliciesInput, func(*organizations.ListPoliciesOutput, bool) bool) error
|
||||
ListPoliciesPagesWithContext(aws.Context, *organizations.ListPoliciesInput, func(*organizations.ListPoliciesOutput, bool) bool, ...request.Option) error
|
||||
|
||||
ListPoliciesForTarget(*organizations.ListPoliciesForTargetInput) (*organizations.ListPoliciesForTargetOutput, error)
|
||||
ListPoliciesForTargetWithContext(aws.Context, *organizations.ListPoliciesForTargetInput, ...request.Option) (*organizations.ListPoliciesForTargetOutput, error)
|
||||
ListPoliciesForTargetRequest(*organizations.ListPoliciesForTargetInput) (*request.Request, *organizations.ListPoliciesForTargetOutput)
|
||||
|
||||
ListPoliciesForTargetPages(*organizations.ListPoliciesForTargetInput, func(*organizations.ListPoliciesForTargetOutput, bool) bool) error
|
||||
ListPoliciesForTargetPagesWithContext(aws.Context, *organizations.ListPoliciesForTargetInput, func(*organizations.ListPoliciesForTargetOutput, bool) bool, ...request.Option) error
|
||||
|
||||
ListRoots(*organizations.ListRootsInput) (*organizations.ListRootsOutput, error)
|
||||
ListRootsWithContext(aws.Context, *organizations.ListRootsInput, ...request.Option) (*organizations.ListRootsOutput, error)
|
||||
ListRootsRequest(*organizations.ListRootsInput) (*request.Request, *organizations.ListRootsOutput)
|
||||
|
||||
ListRootsPages(*organizations.ListRootsInput, func(*organizations.ListRootsOutput, bool) bool) error
|
||||
ListRootsPagesWithContext(aws.Context, *organizations.ListRootsInput, func(*organizations.ListRootsOutput, bool) bool, ...request.Option) error
|
||||
|
||||
ListTargetsForPolicy(*organizations.ListTargetsForPolicyInput) (*organizations.ListTargetsForPolicyOutput, error)
|
||||
ListTargetsForPolicyWithContext(aws.Context, *organizations.ListTargetsForPolicyInput, ...request.Option) (*organizations.ListTargetsForPolicyOutput, error)
|
||||
ListTargetsForPolicyRequest(*organizations.ListTargetsForPolicyInput) (*request.Request, *organizations.ListTargetsForPolicyOutput)
|
||||
|
||||
ListTargetsForPolicyPages(*organizations.ListTargetsForPolicyInput, func(*organizations.ListTargetsForPolicyOutput, bool) bool) error
|
||||
ListTargetsForPolicyPagesWithContext(aws.Context, *organizations.ListTargetsForPolicyInput, func(*organizations.ListTargetsForPolicyOutput, bool) bool, ...request.Option) error
|
||||
|
||||
MoveAccount(*organizations.MoveAccountInput) (*organizations.MoveAccountOutput, error)
|
||||
MoveAccountWithContext(aws.Context, *organizations.MoveAccountInput, ...request.Option) (*organizations.MoveAccountOutput, error)
|
||||
MoveAccountRequest(*organizations.MoveAccountInput) (*request.Request, *organizations.MoveAccountOutput)
|
||||
|
||||
RemoveAccountFromOrganization(*organizations.RemoveAccountFromOrganizationInput) (*organizations.RemoveAccountFromOrganizationOutput, error)
|
||||
RemoveAccountFromOrganizationWithContext(aws.Context, *organizations.RemoveAccountFromOrganizationInput, ...request.Option) (*organizations.RemoveAccountFromOrganizationOutput, error)
|
||||
RemoveAccountFromOrganizationRequest(*organizations.RemoveAccountFromOrganizationInput) (*request.Request, *organizations.RemoveAccountFromOrganizationOutput)
|
||||
|
||||
UpdateOrganizationalUnit(*organizations.UpdateOrganizationalUnitInput) (*organizations.UpdateOrganizationalUnitOutput, error)
|
||||
UpdateOrganizationalUnitWithContext(aws.Context, *organizations.UpdateOrganizationalUnitInput, ...request.Option) (*organizations.UpdateOrganizationalUnitOutput, error)
|
||||
UpdateOrganizationalUnitRequest(*organizations.UpdateOrganizationalUnitInput) (*request.Request, *organizations.UpdateOrganizationalUnitOutput)
|
||||
|
||||
UpdatePolicy(*organizations.UpdatePolicyInput) (*organizations.UpdatePolicyOutput, error)
|
||||
UpdatePolicyWithContext(aws.Context, *organizations.UpdatePolicyInput, ...request.Option) (*organizations.UpdatePolicyOutput, error)
|
||||
UpdatePolicyRequest(*organizations.UpdatePolicyInput) (*request.Request, *organizations.UpdatePolicyOutput)
|
||||
}
|
||||
|
||||
var _ OrganizationsAPI = (*organizations.Organizations)(nil)
|
||||
97
vendor/github.com/aws/aws-sdk-go/service/organizations/service.go
generated
vendored
Normal file
97
vendor/github.com/aws/aws-sdk-go/service/organizations/service.go
generated
vendored
Normal file
@@ -0,0 +1,97 @@
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
package organizations
|
||||
|
||||
import (
|
||||
"github.com/aws/aws-sdk-go/aws"
|
||||
"github.com/aws/aws-sdk-go/aws/client"
|
||||
"github.com/aws/aws-sdk-go/aws/client/metadata"
|
||||
"github.com/aws/aws-sdk-go/aws/request"
|
||||
"github.com/aws/aws-sdk-go/aws/signer/v4"
|
||||
"github.com/aws/aws-sdk-go/private/protocol/jsonrpc"
|
||||
)
|
||||
|
||||
// Organizations provides the API operation methods for making requests to
|
||||
// AWS Organizations. See this package's package overview docs
|
||||
// for details on the service.
|
||||
//
|
||||
// Organizations methods are safe to use concurrently. It is not safe to
|
||||
// modify mutate any of the struct's properties though.
|
||||
type Organizations struct {
|
||||
*client.Client
|
||||
}
|
||||
|
||||
// Used for custom client initialization logic
|
||||
var initClient func(*client.Client)
|
||||
|
||||
// Used for custom request initialization logic
|
||||
var initRequest func(*request.Request)
|
||||
|
||||
// Service information constants
|
||||
const (
|
||||
ServiceName = "organizations" // Name of service.
|
||||
EndpointsID = ServiceName // ID to lookup a service endpoint with.
|
||||
ServiceID = "Organizations" // ServiceID is a unique identifer of a specific service.
|
||||
)
|
||||
|
||||
// New creates a new instance of the Organizations client with a session.
|
||||
// If additional configuration is needed for the client instance use the optional
|
||||
// aws.Config parameter to add your extra config.
|
||||
//
|
||||
// Example:
|
||||
// // Create a Organizations client from just a session.
|
||||
// svc := organizations.New(mySession)
|
||||
//
|
||||
// // Create a Organizations client with additional configuration
|
||||
// svc := organizations.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
|
||||
func New(p client.ConfigProvider, cfgs ...*aws.Config) *Organizations {
|
||||
c := p.ClientConfig(EndpointsID, cfgs...)
|
||||
return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName)
|
||||
}
|
||||
|
||||
// newClient creates, initializes and returns a new service client instance.
|
||||
func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *Organizations {
|
||||
svc := &Organizations{
|
||||
Client: client.New(
|
||||
cfg,
|
||||
metadata.ClientInfo{
|
||||
ServiceName: ServiceName,
|
||||
ServiceID: ServiceID,
|
||||
SigningName: signingName,
|
||||
SigningRegion: signingRegion,
|
||||
Endpoint: endpoint,
|
||||
APIVersion: "2016-11-28",
|
||||
JSONVersion: "1.1",
|
||||
TargetPrefix: "AWSOrganizationsV20161128",
|
||||
},
|
||||
handlers,
|
||||
),
|
||||
}
|
||||
|
||||
// Handlers
|
||||
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
|
||||
svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler)
|
||||
svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler)
|
||||
svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler)
|
||||
svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler)
|
||||
|
||||
// Run custom client initialization if present
|
||||
if initClient != nil {
|
||||
initClient(svc.Client)
|
||||
}
|
||||
|
||||
return svc
|
||||
}
|
||||
|
||||
// newRequest creates a new request for a Organizations operation and runs any
|
||||
// custom request initialization.
|
||||
func (c *Organizations) newRequest(op *request.Operation, params, data interface{}) *request.Request {
|
||||
req := c.NewRequest(op, params, data)
|
||||
|
||||
// Run custom request initialization if present
|
||||
if initRequest != nil {
|
||||
initRequest(req)
|
||||
}
|
||||
|
||||
return req
|
||||
}
|
||||
Reference in New Issue
Block a user