// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.6
// 	protoc        v3.21.12
// source: yandex/cloud/iam/v1/awscompatibility/temporary_access_key_service.proto

package awscompatibility

import (
	_ "github.com/yandex-cloud/go-genproto/yandex/cloud"
	_ "google.golang.org/genproto/googleapis/api/annotations"
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	durationpb "google.golang.org/protobuf/types/known/durationpb"
	timestamppb "google.golang.org/protobuf/types/known/timestamppb"
	reflect "reflect"
	sync "sync"
	unsafe "unsafe"
)

const (
	// Verify that this generated code is sufficiently up-to-date.
	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
	// Verify that runtime/protoimpl is sufficiently up-to-date.
	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)

type CreateEphemeralAccessKeyRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The subject identifier for whom the ephemeral access key will be created.
	// If not specified, it defaults to the subject that made the request.
	SubjectId string `protobuf:"bytes,1,opt,name=subject_id,json=subjectId,proto3" json:"subject_id,omitempty"`
	// Use the session name to uniquely identify a session when the same SA is impersonated by different principals or for different reasons
	// Pattern: [\w+=,.@-]*
	SessionName string `protobuf:"bytes,2,opt,name=session_name,json=sessionName,proto3" json:"session_name,omitempty"`
	// AWS-compatible policy in JSON format that you want to use as an inline session policy.
	Policy string `protobuf:"bytes,3,opt,name=policy,proto3" json:"policy,omitempty"`
	// Duration, which specifies the duration of the ephemeral access key,
	// but duration won't be longer than the lifetime of the authentication token that made the request
	Duration      *durationpb.Duration `protobuf:"bytes,4,opt,name=duration,proto3" json:"duration,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *CreateEphemeralAccessKeyRequest) Reset() {
	*x = CreateEphemeralAccessKeyRequest{}
	mi := &file_yandex_cloud_iam_v1_awscompatibility_temporary_access_key_service_proto_msgTypes[0]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *CreateEphemeralAccessKeyRequest) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*CreateEphemeralAccessKeyRequest) ProtoMessage() {}

func (x *CreateEphemeralAccessKeyRequest) ProtoReflect() protoreflect.Message {
	mi := &file_yandex_cloud_iam_v1_awscompatibility_temporary_access_key_service_proto_msgTypes[0]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use CreateEphemeralAccessKeyRequest.ProtoReflect.Descriptor instead.
func (*CreateEphemeralAccessKeyRequest) Descriptor() ([]byte, []int) {
	return file_yandex_cloud_iam_v1_awscompatibility_temporary_access_key_service_proto_rawDescGZIP(), []int{0}
}

func (x *CreateEphemeralAccessKeyRequest) GetSubjectId() string {
	if x != nil {
		return x.SubjectId
	}
	return ""
}

func (x *CreateEphemeralAccessKeyRequest) GetSessionName() string {
	if x != nil {
		return x.SessionName
	}
	return ""
}

func (x *CreateEphemeralAccessKeyRequest) GetPolicy() string {
	if x != nil {
		return x.Policy
	}
	return ""
}

func (x *CreateEphemeralAccessKeyRequest) GetDuration() *durationpb.Duration {
	if x != nil {
		return x.Duration
	}
	return nil
}

type CreateEphemeralAccessKeyResponse struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// ID of the access key.
	// The key is AWS compatible.
	AccessKeyId string `protobuf:"bytes,1,opt,name=access_key_id,json=accessKeyId,proto3" json:"access_key_id,omitempty"`
	// Secret access key.
	// The key is AWS compatible.
	Secret string `protobuf:"bytes,2,opt,name=secret,proto3" json:"secret,omitempty"`
	// Session token.
	// The token is AWS compatible. Should be attached to any call made by provided credentials.
	SessionToken string `protobuf:"bytes,3,opt,name=session_token,json=sessionToken,proto3" json:"session_token,omitempty"`
	// Expiration time.
	// The date on which the current credentials expire.
	ExpiresAt     *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *CreateEphemeralAccessKeyResponse) Reset() {
	*x = CreateEphemeralAccessKeyResponse{}
	mi := &file_yandex_cloud_iam_v1_awscompatibility_temporary_access_key_service_proto_msgTypes[1]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *CreateEphemeralAccessKeyResponse) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*CreateEphemeralAccessKeyResponse) ProtoMessage() {}

func (x *CreateEphemeralAccessKeyResponse) ProtoReflect() protoreflect.Message {
	mi := &file_yandex_cloud_iam_v1_awscompatibility_temporary_access_key_service_proto_msgTypes[1]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use CreateEphemeralAccessKeyResponse.ProtoReflect.Descriptor instead.
func (*CreateEphemeralAccessKeyResponse) Descriptor() ([]byte, []int) {
	return file_yandex_cloud_iam_v1_awscompatibility_temporary_access_key_service_proto_rawDescGZIP(), []int{1}
}

func (x *CreateEphemeralAccessKeyResponse) GetAccessKeyId() string {
	if x != nil {
		return x.AccessKeyId
	}
	return ""
}

func (x *CreateEphemeralAccessKeyResponse) GetSecret() string {
	if x != nil {
		return x.Secret
	}
	return ""
}

func (x *CreateEphemeralAccessKeyResponse) GetSessionToken() string {
	if x != nil {
		return x.SessionToken
	}
	return ""
}

func (x *CreateEphemeralAccessKeyResponse) GetExpiresAt() *timestamppb.Timestamp {
	if x != nil {
		return x.ExpiresAt
	}
	return nil
}

var File_yandex_cloud_iam_v1_awscompatibility_temporary_access_key_service_proto protoreflect.FileDescriptor

const file_yandex_cloud_iam_v1_awscompatibility_temporary_access_key_service_proto_rawDesc = "" +
	"\n" +
	"Gyandex/cloud/iam/v1/awscompatibility/temporary_access_key_service.proto\x12$yandex.cloud.iam.v1.awscompatibility\x1a\x1cgoogle/api/annotations.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1dyandex/cloud/validation.proto\"\xe1\x01\n" +
	"\x1fCreateEphemeralAccessKeyRequest\x12'\n" +
	"\n" +
	"subject_id\x18\x01 \x01(\tB\b\x8a\xc81\x04<=50R\tsubjectId\x12/\n" +
	"\fsession_name\x18\x02 \x01(\tB\f\xe8\xc71\x01\x8a\xc81\x041-64R\vsessionName\x12\"\n" +
	"\x06policy\x18\x03 \x01(\tB\n" +
	"\x8a\xc81\x06<=2048R\x06policy\x12@\n" +
	"\bduration\x18\x04 \x01(\v2\x19.google.protobuf.DurationB\t\xfa\xc71\x05>=15mR\bduration\"\xbe\x01\n" +
	" CreateEphemeralAccessKeyResponse\x12\"\n" +
	"\raccess_key_id\x18\x01 \x01(\tR\vaccessKeyId\x12\x16\n" +
	"\x06secret\x18\x02 \x01(\tR\x06secret\x12#\n" +
	"\rsession_token\x18\x03 \x01(\tR\fsessionToken\x129\n" +
	"\n" +
	"expires_at\x18\x04 \x01(\v2\x1a.google.protobuf.TimestampR\texpiresAt2\xf8\x01\n" +
	"\x19TemporaryAccessKeyService\x12\xda\x01\n" +
	"\x0fCreateEphemeral\x12E.yandex.cloud.iam.v1.awscompatibility.CreateEphemeralAccessKeyRequest\x1aF.yandex.cloud.iam.v1.awscompatibility.CreateEphemeralAccessKeyResponse\"8\x82\xd3\xe4\x93\x022:\x01*\"-/iam/aws-compatibility/v1/ephemeralAccessKeysB\x85\x01\n" +
	"(yandex.cloud.api.iam.v1.awscompatibilityZYgithub.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1/awscompatibility;awscompatibilityb\x06proto3"

var (
	file_yandex_cloud_iam_v1_awscompatibility_temporary_access_key_service_proto_rawDescOnce sync.Once
	file_yandex_cloud_iam_v1_awscompatibility_temporary_access_key_service_proto_rawDescData []byte
)

func file_yandex_cloud_iam_v1_awscompatibility_temporary_access_key_service_proto_rawDescGZIP() []byte {
	file_yandex_cloud_iam_v1_awscompatibility_temporary_access_key_service_proto_rawDescOnce.Do(func() {
		file_yandex_cloud_iam_v1_awscompatibility_temporary_access_key_service_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_yandex_cloud_iam_v1_awscompatibility_temporary_access_key_service_proto_rawDesc), len(file_yandex_cloud_iam_v1_awscompatibility_temporary_access_key_service_proto_rawDesc)))
	})
	return file_yandex_cloud_iam_v1_awscompatibility_temporary_access_key_service_proto_rawDescData
}

var file_yandex_cloud_iam_v1_awscompatibility_temporary_access_key_service_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_yandex_cloud_iam_v1_awscompatibility_temporary_access_key_service_proto_goTypes = []any{
	(*CreateEphemeralAccessKeyRequest)(nil),  // 0: yandex.cloud.iam.v1.awscompatibility.CreateEphemeralAccessKeyRequest
	(*CreateEphemeralAccessKeyResponse)(nil), // 1: yandex.cloud.iam.v1.awscompatibility.CreateEphemeralAccessKeyResponse
	(*durationpb.Duration)(nil),              // 2: google.protobuf.Duration
	(*timestamppb.Timestamp)(nil),            // 3: google.protobuf.Timestamp
}
var file_yandex_cloud_iam_v1_awscompatibility_temporary_access_key_service_proto_depIdxs = []int32{
	2, // 0: yandex.cloud.iam.v1.awscompatibility.CreateEphemeralAccessKeyRequest.duration:type_name -> google.protobuf.Duration
	3, // 1: yandex.cloud.iam.v1.awscompatibility.CreateEphemeralAccessKeyResponse.expires_at:type_name -> google.protobuf.Timestamp
	0, // 2: yandex.cloud.iam.v1.awscompatibility.TemporaryAccessKeyService.CreateEphemeral:input_type -> yandex.cloud.iam.v1.awscompatibility.CreateEphemeralAccessKeyRequest
	1, // 3: yandex.cloud.iam.v1.awscompatibility.TemporaryAccessKeyService.CreateEphemeral:output_type -> yandex.cloud.iam.v1.awscompatibility.CreateEphemeralAccessKeyResponse
	3, // [3:4] is the sub-list for method output_type
	2, // [2:3] is the sub-list for method input_type
	2, // [2:2] is the sub-list for extension type_name
	2, // [2:2] is the sub-list for extension extendee
	0, // [0:2] is the sub-list for field type_name
}

func init() { file_yandex_cloud_iam_v1_awscompatibility_temporary_access_key_service_proto_init() }
func file_yandex_cloud_iam_v1_awscompatibility_temporary_access_key_service_proto_init() {
	if File_yandex_cloud_iam_v1_awscompatibility_temporary_access_key_service_proto != nil {
		return
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_yandex_cloud_iam_v1_awscompatibility_temporary_access_key_service_proto_rawDesc), len(file_yandex_cloud_iam_v1_awscompatibility_temporary_access_key_service_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   2,
			NumExtensions: 0,
			NumServices:   1,
		},
		GoTypes:           file_yandex_cloud_iam_v1_awscompatibility_temporary_access_key_service_proto_goTypes,
		DependencyIndexes: file_yandex_cloud_iam_v1_awscompatibility_temporary_access_key_service_proto_depIdxs,
		MessageInfos:      file_yandex_cloud_iam_v1_awscompatibility_temporary_access_key_service_proto_msgTypes,
	}.Build()
	File_yandex_cloud_iam_v1_awscompatibility_temporary_access_key_service_proto = out.File
	file_yandex_cloud_iam_v1_awscompatibility_temporary_access_key_service_proto_goTypes = nil
	file_yandex_cloud_iam_v1_awscompatibility_temporary_access_key_service_proto_depIdxs = nil
}
