@Generated(value="software.amazon.awssdk:codegen") public final class AccessDeniedForDependencyException extends OrganizationsException implements ToCopyableBuilder<AccessDeniedForDependencyException.Builder,AccessDeniedForDependencyException>
The operation that you attempted requires you to have the iam:CreateServiceLinkedRole
so that AWS
Organizations can create the required service-linked role. You don't have that permission.
Modifier and Type | Class and Description |
---|---|
static interface |
AccessDeniedForDependencyException.Builder |
Modifier and Type | Method and Description |
---|---|
static AccessDeniedForDependencyException.Builder |
builder() |
AccessDeniedForDependencyExceptionReason |
reason()
Returns the value of the Reason property for this object.
|
String |
reasonAsString()
Returns the value of the Reason property for this object.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends AccessDeniedForDependencyException.Builder> |
serializableBuilderClass() |
AccessDeniedForDependencyException.Builder |
toBuilder()
Create a
AwsServiceException.Builder initialized with the properties of this AwsServiceException . |
awsErrorDetails, getMessage, isClockSkewException, isThrottlingException
requestId, statusCode
retryable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
copy
public AccessDeniedForDependencyException.Builder toBuilder()
AwsServiceException
AwsServiceException.Builder
initialized with the properties of this AwsServiceException
.toBuilder
in interface ToCopyableBuilder<AccessDeniedForDependencyException.Builder,AccessDeniedForDependencyException>
toBuilder
in class OrganizationsException
public static AccessDeniedForDependencyException.Builder builder()
public static Class<? extends AccessDeniedForDependencyException.Builder> serializableBuilderClass()
public AccessDeniedForDependencyExceptionReason reason()
If the service returns an enum value that is not available in the current SDK version, reason
will
return AccessDeniedForDependencyExceptionReason.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the
service is available from reasonAsString()
.
AccessDeniedForDependencyExceptionReason
public String reasonAsString()
If the service returns an enum value that is not available in the current SDK version, reason
will
return AccessDeniedForDependencyExceptionReason.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the
service is available from reasonAsString()
.
AccessDeniedForDependencyExceptionReason
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.