Protocolswift-cloud 0.31.0CloudCore
Linkable
Linkable.swift:1protocol Linkable
Browse conforming typesprotocol Linkable
import CloudCore
associatedtype NameType : Input where Self.NameType.ValueType == String
associatedtype ResourceType : Input where Self.ResourceType.ValueType == String
var actions: [String] { get }
var effect: String { get }
var name: NameType { get }
var properties: LinkProperties? { get }
var resources: [ResourceType] { get }
var actions: [String] { get }
var effect: String { get }
var environmentVariables: [String : any Input<String>] { get }
var policy: AnyEncodable { get }
var properties: LinkProperties? { get }
@discardableResult func linkTo(_ provider: any RoleProvider) -> Self
@discardableResult func linkTo(_ providers: any RoleProvider...) -> Self
@discardableResult func linkTo(_ providers: [any RoleProvider]) -> Self
@discardableResult func linked() -> Self
Links the current resource to the current context, ensuring it is written to the CloudSDK resources.