ServiceSpecificCredential

class ServiceSpecificCredential : KotlinCustomResource

Provides an IAM Service Specific Credential.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.iam.User;
import com.pulumi.aws.iam.ServiceSpecificCredential;
import com.pulumi.aws.iam.ServiceSpecificCredentialArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var exampleUser = new User("exampleUser");
var exampleServiceSpecificCredential = new ServiceSpecificCredential("exampleServiceSpecificCredential", ServiceSpecificCredentialArgs.builder()
.serviceName("codecommit.amazonaws.com")
.userName(exampleUser.name())
.build());
}
}

Import

IAM Service Specific Credentials can be imported using the service_name:user_name:service_specific_credential_id, e.g.

$ pulumi import aws:iam/serviceSpecificCredential:ServiceSpecificCredential default `codecommit.amazonaws.com:example:some-id`

Properties

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val serviceName: Output<String>

The name of the AWS service that is to be associated with the credentials. The service you specify here is the only service that can be accessed using these credentials.

Link copied to clipboard
val servicePassword: Output<String>

The generated password for the service-specific credential.

Link copied to clipboard

The unique identifier for the service-specific credential.

Link copied to clipboard
val serviceUserName: Output<String>

The generated user name for the service-specific credential. This value is generated by combining the IAM user's name combined with the ID number of the AWS account, as in jane-at-123456789012, for example.

Link copied to clipboard
val status: Output<String>?

The status to be assigned to the service-specific credential. Valid values are Active and Inactive. Default value is Active.

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val userName: Output<String>

The name of the IAM user that is to be associated with the credentials. The new service-specific credentials have the same permissions as the associated user except that they can be used only to access the specified service.